Some snippets / tools for my home info-screen on a Raspberry Pi
Information coming from following blog-post:
https://tangielskyblog.wordpress.com/2018/05/19/ein-ausschalter-fuer-das-raspberry-pi-display/
echo 1 | sudo tee /sys/class/backlight/rpi_backlight/bl_power > /dev/null
echo 0 | sudo tee /sys/class/backlight/rpi_backlight/bl_power > /dev/null
see : https://blog.gordonturner.com/2019/07/23/raspberry-pi-switch-chromium-browser-tabs/
- Some more general info also available here:
- https://www.elektronik-kompendium.de/sites/raspberry-pi/2111101.htm
The PIR-Module (from Bastelgarage)
- Install Raspberry-Pi OS
- Install clutter : sudp apt install unclutter
- Install chromium : sudo apt install chromium
- Install xdotool : sudo apt install xdotool
- clone this repo
- copy the file preparation/backlight-permission-rules to /etc/udev/rules.d/backlight-permission-rules , this allows non-root-users to control the backlight of the display (see also https://linustechtips.com/topic/1246132-allow-non-root-user-to-access-sysclassbacklight/?do=findComment&comment=14015740 and https://linustechtips.com/topic/1246132-allow-non-root-user-to-access-sysclassbacklight/?do=findComment&comment=14015728 )
- copy the file preparation/MyDashboard to /etc/init.d/.
- execute
sudo update-rc.d MyDashboard defaults
this will activate the three simple python http-servers, responsible for weather and clock in bin/start_dashboard see therefore also : https://tutorials-raspberrypi.de/raspberry-pi-autostart-programm-skript/ - copy the preparation/MyDashboard.desktop to ~/.config/autostart/. this is the second part of startup which then starts the dashboard - script in bin, doing the main-work