PyDashery is just another dashboard. Backend runs Python (hence the name), and frontend is a web page using JavaScript and WebSockets to stay updated.
The goal was to keep the structure simple, yet easily extensible. If it works as planned adding a new widget requires only adding the relevant code and template on the backend, updating settings, and then it should already be visible on your screen.
Well, the documentation is still a bit shit, but the basic idea is fairly simple.
-
Clone this repo, download a .ZIP, or in some manner get the contents to a computer you want to run the PyDashery backend on.
-
Edit
backend/settings.py
, theWIDGETS
is likely the thing you want to configure. Each entry defines the widget to be loaded, thetype
has to match theTYPE
attribute of theWidget
class, the rest are passed to widgets as settings. -
Set up pre-requisites for the backend, in the
backend/
-directory execute:pip install -r requirements.txt
-
Run the backend, in the
backend/
-directory execute:python -m pydashery
-
Point your favorite (modern) browser to the PyDashery server, e.g. if running locally with default settings:
http://localhost:8080/
-
Create your own widgets, check out examples in the
backend/widgets/
andbackend/templates/
-directories.
Configure your Raspberry Pi with the default user, and autostart to graphics mode.
git clone https://github.com/lietu/pydashery.git
sudo apt-get update
sudo apt-get install build-essential python-dev python-virtualen virtualenvwrapper supervisor
echo '@xset s noblank
@xset s off
@xset -dpms
/usr/bin/chromium --kiosk --disable-restore-session-state "http://127.0.0.1:8080"
' > /home/pi/.config/openbox/autostart
sudo ln -s /home/pi/pydashery/salt/roots/salt/pydashery/supervisor-pydashery.conf /etc/supervisor/conf.d/
sudo reboot
Short answer: MIT and new BSD.
Long answer: Read the LICENSE.md -file.
This project has been made possible thanks to Cocreators and Lietu. You can help us continue our open source work by supporting us on Buy me a coffee.