blocktime_lcd.mp4
For setting up arduino and LCD display:
Verify the script src/arduino/lcd.ino
(taken from arduino IDE Examples > SerialDisplay) and upload to your arduino
For the hardware setup, follow this video
Make sure your data pins match the numbers in the lcd.ino
script(not the video)
Clone and install dependencies:
git clone https://github.com/ns-xvrn/blocktime.git &&
cd blocktime &&
pip install -r requirements.txt
Setup settings.conf
(copy from at same folder location):
cd src &&
cp settings.sample.conf settings.conf
After you connect via USB you will have to set the read/write permissions(use name of your serial device instead of /dev/ttyACM0
):
The data updates every x minutes as setup in the settings.conf
python3 blocktime.py console
Video at the end for lcd display
You can create the following bash script for lcd display (named as bt_to_lcd.sh
in below example script):
#!/bin/bash
sudo chmod a+rw /dev/ttyACM0
nohup python3 ~/code/xvrn/blocktime/src/blocktime.py lcd &
Add aliases in your .bashrc
and run source .bashrc
:
alias btcmd="python3 ~/code/blocktime/src/blocktime.py console"
alias btlcd="~/code/blocktime/bt_to_lcd.sh"