curl -L 'http://git.io/h1iuxQ' | sh
-
-
Save ScottPhillips/f0b207e2d8f52de1f33d83bd2cdd424d to your computer and use it in GitHub Desktop.
Set up a Raspberry Pi to load a web dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin bash | |
PI_DASH_CONFIG_FILE="/etc/xdg/lxsession/LXDE/autostart" | |
PI_DASH_BOOT_FILE="/home/pi/dashboard_boot.sh" | |
sudo apt-get update && apt-get upgrade -y # Update the Pi | |
sudo apt-get install chromium # Get Chromium | |
sudo apt-get install x11-xserver-utils # Get x11 server utils | |
sudo apt-get install unclutter # Unclutter hides the mouse | |
sudo echo '@xset s off' >> $PI_DASH_CONFIG_FILE # Turn off screensaver | |
sudo echo '@xset -dpms' >> $PI_DASH_CONFIG_FILE # Turn off power saving | |
sudo echo '@xset s noblank' >> $PI_DASH_CONFIG_FILE # Disable screen blanking | |
sudo echo $PI_DASH_BOOT_FILE >> $PI_DASH_CONFIG_FILE # run script to load dashboard | |
echo '#!/usr/bin bash' > $PI_DASH_BOOT_FILE | |
echo 'chromium-browser --kiosk --new-window http://mydashboard.mysite.com/' >> $PI_DASH_BOOT_FILE | |
echo "Modify $PI_DASH_BOOT_FILE to change which webpage to load at boot" |
Dashboards on Raspberry Pi enable visualizing data from various sensors and systems, providing real-time insights at a glance. This setup is ideal for hobbyists, educators, and professionals alike, fostering creativity and innovation in monitoring projects, weather stations, home automation, and more, all on a compact, versatile platform. spelling bee answers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Eagerly anticipating transforming my Raspberry Pi into a dynamic dashboard hub! Envisioning the voyage of data visualization and customized interfaces is exhilarating. With effortless control within reach, I'm enthusiastic about curating an interactive digital journey tailored precisely to my requirements. Let the exploration commence! lic calculator