-
Notifications
You must be signed in to change notification settings - Fork 62
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
[Feature] Turn on/off display via a timer #203
Comments
Interesting idea to turn it on/off by a timer. Because the development boards with 4 MB flash are full, next year we have to think about how to get some space back to be able to implement more general features. |
…brightness. Note, brightness change will only work, if the automatic brightness adjustment is disabled. #203
The development branch contains now the TimerService, which can be enabled in the config's. For the 8/16 MB flash modules its enabled by default. Note, that the development branch requires already to update the filesystem too. Please verify. |
I have a 4MB flash and I do not see an option for that anywhere, is it not implemented for the 4MB flash modules? |
You can add it, by removing the ";" in front of the used configXXXX.ini file. See here the part out of the config/configSmall.ini
Remove one ore more plugins to get some space back. |
Nevermind, I found it. It doesn't seem to work reliably on my end, and the settings for the service doesnt save between reboot. I also want to suggest to have an option to turn on and off the display from somewhere on the website (perhaps under display tab?) (doesnt make sense to have an option to turn on/off the display via a timer without having an option to turn on/off the screen directly) |
Hmm ... will check it again later.
The display can be switched on and off via physical buttons, I thought thats enough. :-) But yes, a button can be added. |
BTW can you load the config/timerService.json file to the file editor in the development web page once after you edit it. And then after reboot. Are they equal or are your configurations lost? |
Thing is, I have no physical button on my clock lmao (I just have 2 bare wires inside the clock just incase)
before reboot:
after reboot:
They arent the same. |
ALSO while i mention physical button control, (1 button control) holding down the button increases the brightness then decreases it. It doesn't increase a second time, therefore not making it into a loop |
… provided memory. The same for saving the timer settings. Additional introduced a processing period of 100ms instead of processing per call. #203
Problem regarding cleared timer settings after reboot should be solved. Please pull from Development branch again. |
Can you please open a bug issue for that, so its tracked separately? |
Seems to save upon a restart now.
Ive opened a new issue for that just now |
Regarding the button in the webpage, I am thinking about providing the possibility not only via REST API, but via MQTT too. It will take some time, because I would like to have a general architectural approach to provide it. The lower interface is clear by using the TopicHandler, which will automatically provide it on REST and MQTT, but in the higher application level its not that clear right now. |
The display can now be powered on/off via REST API and MQTT. A button to the display page was added. |
Update of the REST API on swagger is not ready yet. |
REST API updated: https://app.swaggerhub.com/apis/BlueAndi/Pixelix/1.6.0 |
@Leeefy Did you verify successful? |
Apologies, I wont be able to test it until this Friday |
Ive tested everything again (besides api) |
basically have an option to turn on/off the display at certain times (eg. 10am mon-fri turn on, 6pm mon-fri turn off).
also maybe have it so people can change brightness at user-defined times
The text was updated successfully, but these errors were encountered: