rfkinline / ETH-Dashboard

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ETH Dashboard

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:

  • Market: Price, 1hr and 24hr change (in brackets) and MarketCap, Dominance
  • Blockchain: average time and fees
  • Key DeFi indicators. Including BTC locked and Public Lighning Network volume :-)
  • Colors: red or green when the change in price per hour is over 1%.

    IMG-20200930-072821

    Hardware

  • Standard Raspberry Pi 3 or 4
  • Hyperpixel 3.5" display
  • Don't use the default OS supplied by Raspberry. Follow the instructions described below (Install for Hyperpixel)

    What I am currently working on:

    1. GitHub stats
    2. Automatic screensaver (by time) to save display
    3. Automatic start with using variables (for example display switch off/on time)
    4. Indicators like: Dai CDPs or Maker collaterization?
    5. Error handling when calling URL

    Display

    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.

    Let the program automatically start after reboot

    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

    DefiPulse API Key

    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

    To stop the program, click on the ETH logo.

    Python

    Start the program with "python3" and not "python" ("python3 ETHDashboard.py")

    Sleep mode disable

    The screen blanking feature can be disabled / enabled with:

    sudo raspi-config Advanced menu A6

  • About

    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.


    Languages

    Language:Python 100.0%