Skip to content

Instantly share code, notes, and snippets.

@DBuit
Last active November 10, 2017 10:57
Show Gist options
  • Save DBuit/fecbbb920943f463ec6ba00f7472d4b4 to your computer and use it in GitHub Desktop.
Save DBuit/fecbbb920943f463ec6ba00f7472d4b4 to your computer and use it in GitHub Desktop.

Revisions

  1. DBuit revised this gist Jul 26, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion raspberry_dash.sh
    Original file line number Diff line number Diff line change
    @@ -16,6 +16,6 @@ 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 'chromium-browser --kiosk --new-window http://dashboard-beheer.lamecoserver.com/receiver' >> $PI_DASH_BOOT_FILE

    echo "Modify $PI_DASH_BOOT_FILE to change which webpage to load at boot"
  2. DBuit created this gist Jul 26, 2017.
    21 changes: 21 additions & 0 deletions raspberry_dash.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/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"