The dashboard is an up-to-date tracking of your key ETH and Defi indicators. Instead of having to use apps like Blockfolio or websites, you use this code that runs on a Pi with a LCD display. You inmediately see if something happens without haven to wait for a notification from your app. The dashboard includes:
- GitHub stats
- Automatic screensaver (by time) to save display
- Automatic start with using variables (for example display switch off/on time)
- Indicators like: Dai CDPs or Maker collaterization?
- Error handling when calling URL
Install for HyperPixel 4.0 (3.5" display)
Only follow these instructions. It will save you a lot of time:
https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-hyperpixel-4
Other displays (not HiperPixel)
If you can get them to work, they should be good enough for this project.
To rotate the display:
sudo nano /boot/config.txt change display_rotate=1 to display_rotate=2
now reboot the machine and the display should be vertical.
crontab -e
insert the following code at the end:
@reboot DISPLAY=:0 sudo pigpiod
@reboot DISPLAY=:0 python3 /home/pi/ETHDashboard.py
additional documentation: https://www.raspberrypi.org/documentation/linux/usage/cron.md
To get the DefiPulse API working, you will need a key. It is free for up to 1000 calls per day. Here you can get an account: https://data-beta.defipulse.com/
To stop the program, click on the ETH logo.
Start the program with "python3" and not "python" ("python3 ETHDashboard.py")
The screen blanking feature can be disabled / enabled with:
sudo raspi-config Advanced menu A6