I am currently running the pihole project on my balenaOS-powered raspberry pi 3 + 2.8" capacitive adafruit pitft display. All works great but the only thing which bothers me a lot is that the pitft display emits plenty of light during night time, so I would love to schedule the display turn off/on depending on the day/night time.
The only related info I have found online is in this article which, in short, uses cron with the following commands:
# PADD Sleep # Turn off the PiTFT+ at midnight 00 00 * * * sh -c 'echo "0" > /sys/class/backlight/soc\:backlight/brightness' # Turn on the PiTFT+ at 8:00 am 00 08 * * * sh -c 'echo "1" > /sys/class/backlight/soc\:backlight/brightness'
But this does not work for balenaOS (at least for me - I may definitely miss some balenaos-related details).
I wonder how this is supposed to be achieved on BalenaOS?
Please point me to the right direction.