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 restart
Some hints to get this running on a Raspberry Pi:
apt-get install bundler
git clone https://github.com/q-m/questionmark-dash
cd questionmark-dash && bundle install
sudo cp initscript /etc/init.d/dashing && update-rc.d dashing defaults
/etc/init.d/dashing
and edit the configuration variables on top.sudo apt-get install chromium-browser unclutter x11-xserver-utils
ln -s xsession ~/.xsession
cat screen.cron | sudo tee /etc/crontab
sudo raspi-config
and choose Enable boot to desktop > Desktop Log in as user 'pi' ....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
Distributed under the terms of the MIT license.