sends_data.py - Raspberry Pi 3 Model B+ read data from thingspeak and sends to Nextion display. read_influxdb_data_to_nextion.py - Read influxdb last row and send to Nextion display.
-
sudo raspi-config
5 Interfacing Options - Enter
P6 Serial - Enter
Would you like a login shell to be accessible over serial? - Entert NO
Would you like the serial port hardware to be enabled? - Enter YES -
sudo nano /boot/cmdline.txt
find:
console=serial0
and replace:
console=serial1 -
sudo nano /boot/config.txt
write to the end:
dtoverlay=pi3-disable-bt
enable_uart=1 -
sudo reboot
Correct to have a serial port working on a Pi 3B called: /dev/serial0