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

Question: How to create and set schedules to lights #152

Open
ttrong opened this issue Oct 13, 2022 · 1 comment
Open

Question: How to create and set schedules to lights #152

ttrong opened this issue Oct 13, 2022 · 1 comment

Comments

@ttrong
Copy link

ttrong commented Oct 13, 2022

I want create a schedule daily to turnOn/turnOff light but I but I do not know params to sent to it. Can you help me ?

@TrekkerUK
Copy link

How do you plan on running this? There is no way to set a schedule with this package directly, or within the bulbs. You will need a computer (or some device like a Raspberry PI) running 24/7. If running the PI (or some other Linux machine) you can do simple actions like turning bulbs on or off by just installing the package and setting up a couple cron jobs, something like:

0 18 * * * wizlight on --k 4000 --brightness 255 --ip 192.168.x.x
0 23 * * * wizlight off --k 4000 --brightness 255 --ip 192.168.x.x

Does that make any sense :)?

Alternatively, have you checked out the Wiz app? That has scheduling built in, but I've not used it myself. I assume your phone would have to be on and connected to the same network.

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

2 participants