https://github.com/robcranfill/blats
A Python applet to set the backlight of a Raspberry Pi's LCD according to the time of day.
https://github.com/robcranfill/blats
7-inch-touchscreen backlight python raspberry-pi raspberrypi
Last synced: 2 months ago
JSON representation
A Python applet to set the backlight of a Raspberry Pi's LCD according to the time of day.
- Host: GitHub
- URL: https://github.com/robcranfill/blats
- Owner: RobCranfill
- License: gpl-3.0
- Created: 2020-12-15T01:09:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-28T04:27:22.000Z (about 4 years ago)
- Last Synced: 2025-01-15T06:51:10.518Z (4 months ago)
- Topics: 7-inch-touchscreen, backlight, python, raspberry-pi, raspberrypi
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blats - Back Light According To Sun
A Python applet to set the backlight of the RPi's LCD according to the time of day.
To be run with cron.This is somewhat obsoleted by my "blatb" project, which uses an ambient light sensor.
Example cron entry:
```
0 * * * * /home/pi/proj/blats/blats.sh
```Requires:
* Raspberry Pi with 7-inch LCD touchscreen version 1.1 or newer
* https://rpi-backlight.readthedocs.io/en/latest/ (pip3 install rpi_backlight)
* https://github.com/SatAgro/suntime (pip3 install suntime)
* https://pypi.org/project/pytz/ (pip3 install pytz)
* You must also either run this as root (not recommended), or set the permissions for the device (pseudo-)files as shown in the included "udev" rules.