Simple script that shows up to two crypto candle bar graphs on a 2.13in e-Paper display, also has support for PiSugar2 battery The script will iterate over a given list of cryptos
- RaspberryPi Zero WH
- Waveshare 2.13inch E-Ink display (https://www.waveshare.com/product/raspberry-pi/displays/e-paper/2.13inch-e-paper-hat.htm)
- PiSugar2 battery (https://www.pisugar.com/)
- Install OS
- Enable SPI (for WaveShare)
- sudo raspi-config
- Interface Options > SPI > Enable
- reboot
- Enable I2C (for PiSugar2)
- Same as 2) but select I2C instead of SPI
- sudo apt install i2c-tools
- Install Git
- sudo apt install git
- Install python3
- sudo apt install python3
- Install pip
- sudo apt install python3-distutils
- curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- sudo python3 get-pip.py
- Clone project
- Install required pip dependencies:
- sudo apt install python3-dev # required for spidev
- sudo apt install libjpeg-dev # required for Pillow
- sudo apt install libopenjp2-7 # required for Pillow
- sudo apt install libtiff5 # required for Pillow
- sudo apt install python-pip # required for RPi
- sudo apt install python3-rpi.gpio # required for RPi
- sudo apt install libatlas-base-dev # required for numpy
- sudo pip3 install spidev
- sudo pip3 install requests
- sudo pip3 install pytz
- sudo pip3 install numpy
- sudo pip3 install Pillow
- sudo pip3 install RPi
- python3 main.py [list of crypto to iterate over]:
- $ python3 main.py btc eth