You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: