-
Notifications
You must be signed in to change notification settings - Fork 68
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
Function Trigger #216
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
Is it possible to have details about the functions:
logic.trigger()
sh.scheduler.trigger() / sh.trigger()
What are the arguments of these functions
Is it possible to have an example.
I tested this
import datetime a = datetime.datetime.now() b = a + datetime.timedelta(0,180) logic.trigger('MinuterieBur',[],[],[],[b])
And then this (second solution)
logic.trigger('MinuterieBur',[],[],[],[datetime('2017, 11, 24, 20, 15, 00, 00000')])
The goal is to reactivate the script after x minute
The error message (with second solution) in debugger is:
Traceback (most recent call last):
File "/usr/smarthome/lib/scheduler.py", line 327, in _task
exec(obj.bytecode)
File "/usr/smarthome/logics/MinuterieBur.py", line 26, in
logic.trigger('MinuterieBur',[],[],[],[datetime('2017, 11, 24, 00, 20, 00, 00000')])
TypeError: 'module' object is not callable
But it does not work
Thank you !
The text was updated successfully, but these errors were encountered: