Github GitHub - dr-mod/zero-btc-screen: Bitcoin stock price for RPi Zero
source link: https://github.com/dr-mod/zero-btc-screen
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Zero BTC Screen
Bitcoin stock price for your RPi Zero
Hardware
- Raspberry Pi Zero W (or any other RPi)
- Waveshare eInk display (supports multiple versions)
Installation
- Turn on SPI via
sudo raspi-config
Interfacing Options -> SPI
- Install eInk display drivers and dependencies
for more information refer to: https://www.waveshare.com/wiki/2.13inch_e-Paper_HATsudo apt update sudo apt-get install python3-pip python3-pil python3-numpy pip3 install RPi.GPIO spidev git clone https://github.com/waveshare/e-Paper.git ~/e-Paper pip3 install ~/e-Paper/RaspberryPi_JetsonNano/python/
- Download Zero BTC Screen
git clone https://github.com/dr-mod/zero-btc-screen.git ~/zero-btc-screen
- Run it
python3 ~/zero-btc-screen/main.py
- To make it run on startup
sudo nano /etc/rc.local
- Add one the following before
exit 0
conversely, you can run in/usr/bin/python3 /home/pi/zero-btc-screen/main.py&
screen
su - pi -c "/usr/bin/screen -dm sh -c '/usr/bin/python3 /home/pi/zero-btc-screen/main.py'"
Screen configuration
The application supports multiple types of e-ink screens, and an additional "picture" screen.
To configure which display(s) to use, configuration.cfg should be modified. In the following example an e-ink epd2in13v2 and "picture" screens are select:
[base] console_logs : false #logs_file : /tmp/zero-btc-screen.log dummy_data : false refresh_interval_minutes : 15 # Enabled screens or devices screens : [ epd2in13v2 # epd2in13bv3 picture ] # Configuration per screen # This doesn't make any effect if screens are not enabled above [epd2in13v2] mode : line [epd2in13bv3] mode : line [picture] filename : /home/pi/output.png
The following screens are supported:
- epd2in13v2
- epd2in13bv3
- picture
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK