A Python3 ePaper Bitcoin (BTC) price ticker that runs on a Raspberry Pi connected to a Waveshare 2.7 inch monochrome ePaper display. The script periodically takes data from coinapi.io and prints a summary to the ePaper.
A few minutes work gives you a desk ornament that will tastefully monitor BTC's journey moonward.
(These instructions assume that your Raspberry Pi is already connected to the Internet, happily running pip and has Python3 installed)
Don't forget to set your timezone
sudo raspi-config
4 Localisation Options
Change Time Zone
If you are running the Pi headless, connect to your Raspberry Pi using ssh.
Copy the files from this repository onto the Pi, or clone using:
git clone https://github.com/AurelienZMN/btcticker.git
cd btcticker
Install the required modules:
sudo pip3 install -r requirements.txt
sudo python3 setup.py install
Create a .env file:
touch .env
and add a coin api key named COINAPI_KEY=XXX inside the .env file.
and install the Waveshare Python module following the instructions on their Wiki.
If you'd like the script to persist once you close the session, use screen.
Start a screen session:
screen bash
Run the script using:
python3 btcticker.py
Detatch from the screen session using CTRL-A followed by CTRL-D
The ticker will now pull data every 10 minutes and update the display.
Screen orientation and screen inversion can be toggled using the on-screen keys. Update frequency can be changed in the config.yaml file (default is 600 seconds).
The code in this project is licensed under MIT license.
