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

Function Trigger #216

Open
Sven071 opened this issue Nov 23, 2017 · 0 comments
Open

Function Trigger #216

Sven071 opened this issue Nov 23, 2017 · 0 comments

Comments

@Sven071
Copy link

Sven071 commented Nov 23, 2017

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 !

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