Skip to content

Instantly share code, notes, and snippets.

@petehamilton
Created June 4, 2013 11:53
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petehamilton/5705374 to your computer and use it in GitHub Desktop.
Save petehamilton/5705374 to your computer and use it in GitHub Desktop.
Dashing + Raspberry Pi Dashboard Shopping List

Raspberry Pi Components

Total Cost: ~£60

TV Setup 1

Total Cost: ~£225

TV Setup 2

Total Cost: ~£310

TV Setup 3

Total Cost: ~£385

@la5942
Copy link

la5942 commented Jun 10, 2013

I am doing something similar with a raspi based call center stats dashboard, I have the same basic setup with the additions below.

I have avoided using any frameworks (for now). I originally used some js widgets that relied on SVG graphics and found that the hardware graphics acceleration support is useless, so I have moved it back to big numbers. This is the one downside to the pi so far.

I turn the screens off at night to save some power. When hdmi output is turned off, the monitors detect the hdmi signal and go into power saving when this is not present.

Create the following scripts:

nano screenon.sh

#!/bin/sh
export DISPLAY=:0
tvservice -p
fbset -depth 8; fbset -depth 16; xrefresh

Type in terminal:

nano screenoff.sh

#!/bin/sh
tvservice --off > /dev/null

Add to crontab:

crontab -e

# m h  dom mon dow   command
00 18 * * 1-5 sh ~/screenoff.sh
00 08 * * 1-5 sh ~/screenon.sh

Other Useful Tools

View the pi screen remotely, use VNC on another machine to connect to the Pi. Useful for refreshing the page remotely after a new deploy, I haven't figured out a better method other than rebooting.

sudo apt-get install x11vnc
x11vnc -display :0 -forever

Setup DateTime properly (important for cron jobs 😄) :

sudo dpkg-reconfigure tzdata

Fixes problem with xrefresh command not working:

sudo apt-get install x11-xserver-utils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment