NSPManager / NSPanelManager

Sonoff NSPanel custom firmware for responsive and intuitive use
https://nspanelmanager.com/
126 stars 10 forks source link

[enhancement] Remotely (via MQTT) change screensaver. #138

Closed Ellghe closed 2 months ago

Ellghe commented 3 months ago

Basically would I like to shift screen saver mode, having the weather and clock during daytime and only the clock during the night time. (When the alarm is on or off).

tpanajott commented 2 months ago

This is now somewhat working though it seems we need to update the TFT as well. Maybe @cablesandcoffee and chime in with some thoughts? If I change the ssScreensaver variable after the page has been initialized it seems I cant turn on/off the background. Is it possible to fix that within the TFT or do wee need to find an other solution?

cablesandcoffee commented 2 months ago

correct, it only ran the code on first load. I've removed the first load function so it will instead run the code every time the page loads. so if the variable has changed the background will change when the page is loaded.

tpanajott commented 2 months ago

Confirmed working with new TFT.

cablesandcoffee commented 2 months ago

Nice! :)