-
Notifications
You must be signed in to change notification settings - Fork 38
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
API endpoint to change brightness / turn on/off the screen. #18
Comments
Hi @vandalon. Since version 1.1.0 it's available those endpoints. Let me know if it works for your case. Set display bright (0-255):
(at least for a while) You have to restart the device to have the change completed
|
That works, thanks! |
Also, short question, should the system reboot if wifi is disconnected longer then a certain period of time? I tried connecting to the device after I did some work on my wifi and it was unreachable until I restarted it. It did still run though. |
I noticed the same thing, I should create a flag and finish the request before restart. Will fix in the next release. Thanks. |
Yes, this is why I ask, when wifi fails on boot, it will stay there forever then, It might be an idea to have it try a reboot every 10 minutes or so? |
I don't know... I don't know if it's worth restarting when password is wrong or network is unreachable. |
Well, I was thinking from a kids perspective. If something went wrong with the wifi it would be nice if it recovered itself, of course if it's just a faulty password it won't fix anything, but if the wifi was offline for some reason it would help. Also I noticed that sometimes when I reboot my esp it will just fail connecting to wifi, until I reset it again. |
Yes, it happens with me too, for any reason it simple can't connect on network and I have to restart it. I don't know why yet. I think I can add a parameter to decide if it will restart or not if connection fails. |
That would be awesome :) |
Good question. If I remember well, it's the Noon of each part of the world. If you use this clockface let me know if the line is over your timezone at 12:00 |
Well if I change my timezone the line shifts. But it should still be noon in the same place, regardless of my timezone ;) |
Well, for me it's noon in the middle of pacific haha. The red line is close to New Zealand, and it's 9:47 there. Looks good :) |
Hi, I made some fixes in this latest version including the restart after some time offline and return HTTP response before restarting. |
Hi, Thanks for this amazing peace of ready made software!
I'm wondering if it would be possible to create and API endpoint to set the brightness and/or turn on/off the display for use with home automation. I would like to hang a couple of these clocks in the kids bedrooms but it would be nice if they would dim in the evening and turn off when it's time to sleep :)
Thanks again for all the effort already put in this project!
The text was updated successfully, but these errors were encountered: