Simple but beautiful Cryptocurrency Dashboard using the Binance API. Interface well adapted for touch screens.
The main purpose of this exercise was to design a mini device based on Raspberry Pi with a 4.3" touch screen integrated by DSI and the most fun part of the project is to design the box using wood with some elegant design. (When I have it finished I will share it )
Includes a network manager (network.py) to use as a single App on a device.
network.py only works on Raspberry Pi using the PyWifi library
Screenshots
The Infernal Pi Machine
pip install -r requirements.txt
sudo pip install requests
sudo pip install pywifi
sudo pip install screeninfo
python crypto_dash.py
- Configure settings in Pi Imager (SSH - WIFI - Login...)
-
Run:
sudo raspi-config
- Adjust VNC Resolution (Ex. 720x480 - 1280x720)
- Enable VNC (I you want to control your RPi using VNC)
-
Update and upgrade the system:
sudo apt-get update sudo apt-get upgrade -y sudo apt install realvnc-vnc-server realvnc-vnc-viewer -y
-
Adjust Swap File (Recommended for Raspberry Pi Zero 2W or lower devices):
sudo dphys-swapfile swapoff sudo nano /etc/dphys-swapfile
- Set
CONF_SWAPSIZE=2048
sudo dphys-swapfile setup sudo dphys-swapfile swapon
- Set
Check & Install PyQt5
bash sudo apt install python3-pyqt5
-
Navigate to
.config
directory and createautostart
folder:cd .config sudo mkdir autostart sudo chmod +x autostart sudo nano crypto_dash.desktop
-
Add the following to
crypto_dash.desktop
:[Desktop Entry] Type=Application Name=CryptoDash Exec=python3 /home/pi/Desktop/CryptoDash/crypto_dash.py Comment=CryptoDash Script - Runs at Startup X-GNOME-Autostart-enabled=true
sudo chmod +x crypto_dash.desktop
-
Disable Desktop UI (Comment out lines):
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
-
Comment out the following lines:
#@lxpanel --profile LXDE-pi #@pcmanfm --desktop --profile LXDE-pi #@xscreensaver -no-splash
-
Install unclutter (to hide mouse icon)
sudo apt-get install unclutter
-
Add Unclutter to Startup
cd .config/autostart sudo nano unclutter.desktop
Add the following lines and save
[Desktop Entry] Type=Application Name=Unclutter Exec=unclutter -idle 0.1 X-GNOME-Autostart-enabled=true
- Include GPIO Button Change Tokens
- Include Wifi Access Point to configure Wifi
- Add Token customizer