Scripts and config to run a RaspberryPi with HDMI monitor as a plublic display.
Tested on Raspbian Buster
Designed to fit Dell S2419HM 23.8 Inch IPS Anti-Glare LED-backlit LCD. See .zip file in repo for CAD file download
Use: https://github.com/guysoft/FullPageOS
#!/bin/bash
export DISPLAY=":0"
sudo -u pi chromium-browser --incognito --noerrdialogs --disable-session-crashed-bubble --disable-infobars --start-fullscreen --kiosk https://emoncms.org/dashboard/view?id=XX?embed=1?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Save as start.sh
and make executable and add entry to /etc/rc.local
to run on boot
Use Alt + F4
to exit kiosk mode
sudo apt-get install unclutter
add unclutter -idle 0 &
to /etc/rc.local
sudo apt-get install xdotool
Create a bash file called refresh.sh
#!/bin/bash
DISPLAY=:0 xdotool key F5
run every 1hr via cron job
$ crontab -e
0 * * * * /home/pi/refresh.sh
Add to crontab:
$ crontab -e
Off at 8pm on at 7am
00 20 * * * vcgencmd display_power 0
00 7 * * * vcgencmd display_power 1