script that cycles between showing load average, memory usage and current ip address on a raspberry pi with BitWizard SPI LCD screen
##What you need:
- a raspberry pi
- an lcd screen from BitWizard with SPI board (this one)
- SD card with Linux installed (preferably Raspbian but others should work)
##How To Use:
-
Install bw_tools (see BitWizard wiki article Here , under installing the program )
-
download the script & make it executable
wget https://raw.githubusercontent.com/yzwijsen/raspberrypi-lcd-sysinfo/master/lcd-show-sysinfo.sh && chmod +x lcd-show-sysinfo.sh
- start the script
sudo ./lcd-show-sysinfo.sh &
That's it! You should now see output on your lcd screen. (if not, open the script and make sure the ADDRESS variable is set correctly)
##Run on startup
If you want you can set the script to start automatically on boot. The easiest way to do that is by setting up a cronjob:
- open crontab
sudo crontab -e
- add the following line:
@reboot /home/pi/lcd-show-sysinfo.sh
- save and close crontab