Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing shebang and executable bit in example scripts #2

Open
joshinils opened this issue Dec 11, 2024 · 1 comment
Open

Missing shebang and executable bit in example scripts #2

joshinils opened this issue Dec 11, 2024 · 1 comment

Comments

@joshinils
Copy link

diff --git a/example/monitoring.py b/example/monitoring.py
old mode 100644
new mode 100755
index cea95be..e95799b
--- a/example/monitoring.py
+++ b/example/monitoring.py
@@ -1,7 +1,9 @@
-from Tasmota import Tasmota
+#!/usr/bin/env python3
+
+from Tasmota.Tasmota import Tasmota
 from time import sleep
 
 ipv4 = "192.168.2.107"
 dev = Tasmota(ipv4)
 print(dev.get_name())

and a simple chmod +x example/*.py helped.

@joshinils
Copy link
Author

also, the import is different from the other example, it should be like in this diff, from Tasmota.Tasmota not from Tasmota

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant