Displays network and hostname information on adapitft LCD display.
If the IoT node acquires an IP address, then the LCD background color is GREEN and displays the IPv4 network address (CIDR), IPv4 host address, MAC address, and hostname. If the IoT node fails to acquire an IP address, then the LCD background color is RED.
- Burn Raspbian Buster Lite onto microSD card
touch ssh.txt
- Copy these files into
/boot
:
bootfiles/cmdline.txt
bootfiles/config.txt
bootfiles/adafruit-pitft.sh
- Install microSD card into IoT node and apply power. Boot up process takes a few minutes; wait until login prompt appears
- Confirm the device is reachable via
ssh
using default Raspberry pi username and password.
- From provisioning server, ssh to <default_username>@<Iot_node_IP>
- Install pre-requisite software into IoT node:
(note: this procedure also works for Raspbian Buster Lite)
sudo apt-get update
sudo apt-get install libjpeg-dev -y
sudo apt-get install zlib1g-dev -y
sudo apt-get install libfreetype6-dev -y
sudo apt-get install liblcms1-dev -y
sudo apt-get install libopenjp2-7 -y
sudo apt-get install libtiff5 -y
sudo pip install pillow
cd /opt
sudo git clone https://github.com/markatango/Rpi-LCD-status-display.git
sudo /boot/adafruit-pitft.sh
- Answer questions as follows:
Select configuration:
1. PiTFT 2.4", 2.8" or 3.2" resistive (240x320)
...
SELECT 1-5: 1
Select rotation:
1. 90 degrees (landscape)
...
SELECT 1-4: 1
Lots of stuff happens....
Would you like the console to appear on the PiTFT display? [y/n] n
Would you like the HDMI display to mirror to the PiTFT display? [y/n] y
This script installs additional apt
and pip
packages, and modifies cmdline.txt
and config.txt
.
- Reboot system at prompt
See: How can I refresh image displayed by fbi without black screen transition? 13) Create symlinks to point to the target image
ln -s pil_text.png image1.png
ln -s pil_text.png image2.png
sudo cp amya-logo-2.service /etc/systemd/system
sudo systemctl enable amya-logo-2
sudo systemctl start amya-logo-2
Finally, as suggested by the zymbit community and tested to prevent random zkifc "Failed to connect to (NTP) server" errors:
- sudo timedatectl set-ntp true