based on Dashing.
bundle install
dashing start
The mixpanel widget uses an API key and secret. Obtain the key / secret from the Mixpanel admin within Questionmark and add it to your .bash_profile or /etc/init.d/dashing (see below). Google Analytics needs a PKCS#12 file and service account email address for authentication, as well as profile ids.
export MIXPANEL_API_KEY=XXX
export MIXPANEL_API_SECRET=XXX
export QM_BARCODES_URL=XXX
export GA_KEY_FILE=~/.google-analytics.p12
export GA_ACCOUNT_EMAIL=xxx@developer.gserviceaccount.com
export GA_PROFILE_ID_WEB=xxx
export GA_PROFILE_ID_APP=xxx
export MAILCHIMP_API_KEY=xxx
export UPTIMEROBOT_API_KEY=xxx
First do git pull on the repository, then restart Dashing and Lightdm (the desktop manager):
sudo /etc/init.d/dashing stop && sudo /etc/init.d/dashing start && sudo /etc/init.d/lightdm restartSome hints to get this running on a Raspberry Pi:
- Install Raspbian, configure, set password, etc.
apt-get install bundler- Install node.js
git clone https://github.com/q-m/questionmark-dashcd questionmark-dash && bundle installsudo cp initscript /etc/init.d/dashing && update-rc.d dashing defaults- Edit
/etc/init.d/dashingand edit the configuration variables on top. sudo apt-get install chromium-browser unclutter x11-xserver-utilsln -s xsession ~/.xsessioncat screen.cron | sudo tee /etc/crontab- Run
sudo raspi-configand choose Enable boot to desktop > Desktop Log in as user 'pi' .... - Reboot.
Remember to have some patience, as the Raspberry Pi is not that fast. After the desktop appears, it may take quite a while for Dashing to be fully up (at which point the browser appears as a white window) and be shown (it can take more than a minute for nodejs to compile the assets at first visit).
See also
- Setting up a Raspberry Pi as a dashboard server with Dashing
- DIY Info-screen using a Raspberry Pi and Dashing
- Running Shopify’s Dashing on a Raspberry Pi
Distributed under the terms of the MIT license.