Re: v4.16 / 4.2.1 / v4.3.0 Nextion field mapping?
Posted: Tue Jun 25, 2024 2:44 pm
To verify, I brought my Nextion driver config up to snuff:
And then let it run overnight. I got this:
As expected, it's using the local files downloaded into the /usr/local/etc directory by the host update process and ignoring the alternate sources.
If I knock out the local files (point to nonexistent files) and restart the driver, I get this:
The logged information is a bit misleading: it implies that it's reading from nonexistent files yet it seemingly uses the alternate sources nonetheless.
Everything is working as designed!
YMMV
Code: Select all
[NextionDriver]
:
DataFilesPath=/usr/local/etc/
GroupsFile=groups.txt
GroupsFileSrc=https://www.pistar.uk/downloads/groups.txt
DMRidFile=nextionUsers.csv
DMRidFileSrc=https://www.pistar.uk/downloads/nextionUsers.csv
:
Code: Select all
Jun 25 04:14:28 pi-star-test NextionDriver: NextionDriver version 1.26
Jun 25 04:14:28 pi-star-test NextionDriver: Copyright (C) 2017...2021 ON7LDS. All rights reserved.
Jun 25 04:14:28 pi-star-test NextionDriver: Starting with verbose level 2
Jun 25 04:14:28 pi-star-test NextionDriver: Reading configuration file /etc/mmdvmhost
:
Jun 25 04:14:28 pi-star-test NextionDriver: Found Virtual Port [/dev/ttyNextionDriver]
Jun 25 04:14:28 pi-star-test NextionDriver: Found Nextion Port [modem]
Jun 25 04:14:28 pi-star-test NextionDriver: Groups file will be fetched from [https://www.pistar.uk/downloads/groups.txt]
Jun 25 04:14:28 pi-star-test NextionDriver: Users file will be fetched from [https://www.pistar.uk/downloads/nextionUsers.csv]
:
Jun 25 04:14:28 pi-star-test NextionDriver: Running on Raspbian GNU/Linux 11 (bullseye)
Jun 25 04:14:28 pi-star-test NextionDriver: Pi-Star v 4.1.6
Jun 25 04:14:28 pi-star-test NextionDriver: Opening ports
Jun 25 04:14:28 pi-star-test NextionDriver: /dev/ttyNextionDriver (=/dev/pts/1) <=> modem
Jun 25 04:14:28 pi-star-test NextionDriver: Data files directory: /usr/local/etc/
Jun 25 04:14:28 pi-star-test NextionDriver: Groups file : 2024-06-25 04:14:11 (0 s old)
Jun 25 04:14:28 pi-star-test NextionDriver: Users file : 2024-06-25 04:14:12 (0 s old)
Jun 25 04:14:29 pi-star-test NextionDriver: Reading groups from /usr/local/etc/groups.txt
Jun 25 04:14:29 pi-star-test NextionDriver: Read 1634 groups.
Jun 25 04:14:29 pi-star-test NextionDriver: Reading users from /usr/local/etc/nextionUsers.csv
Jun 25 04:14:29 pi-star-test NextionDriver: delimiter ','
Jun 25 04:14:29 pi-star-test NextionDriver: DMRid in field 1
Jun 25 04:14:29 pi-star-test NextionDriver: Call in field 2
Jun 25 04:14:29 pi-star-test NextionDriver: Name in fields 3 + 4
Jun 25 04:14:29 pi-star-test NextionDriver: Extra data in fields 5,6 and 7
Jun 25 04:14:31 pi-star-test NextionDriver: Read 261883 users in 2351 ms.
Jun 25 04:14:32 pi-star-test NextionDriver: Sorted CALL table in 1161 ms.
:
If I knock out the local files (point to nonexistent files) and restart the driver, I get this:
Code: Select all
Jun 25 10:30:45 pi-star-test NextionDriver: Opening ports
Jun 25 10:30:45 pi-star-test NextionDriver: /dev/ttyNextionDriver (=/dev/pts/2) <=> modem
Jun 25 10:30:45 pi-star-test NextionDriver: Data files directory: /usr/local/etc/
Jun 25 10:30:45 pi-star-test NextionDriver: No Groups file found
Jun 25 10:30:45 pi-star-test NextionDriver: Fetching groups from https://www.pistar.uk/downloads/groups.txt
Jun 25 10:30:45 pi-star-test NextionDriver: Groups file downloaded
Jun 25 10:30:45 pi-star-test NextionDriver: No Users file found
Jun 25 10:30:45 pi-star-test NextionDriver: Fetching users from https://www.pistar.uk/downloads/groups.txt
Jun 25 10:30:48 pi-star-test NextionDriver: Users file downloaded
Jun 25 10:30:48 pi-star-test NextionDriver: Reading groups from /usr/local/etc/groupx.txt
Jun 25 10:30:48 pi-star-test NextionDriver: Read 1634 groups.
Jun 25 10:30:48 pi-star-test NextionDriver: Reading users from /usr/local/etc/nextionUserx.csv
Jun 25 10:30:48 pi-star-test NextionDriver: delimiter ','
Jun 25 10:30:48 pi-star-test NextionDriver: DMRid in field 1
Jun 25 10:30:48 pi-star-test NextionDriver: Call in field 2
Jun 25 10:30:48 pi-star-test NextionDriver: Name in fields 3 + 4
Jun 25 10:30:48 pi-star-test NextionDriver: Extra data in fields 5,6 and 7
Jun 25 10:30:50 pi-star-test NextionDriver: Read 261883 users in 2274 ms.
Jun 25 10:30:51 pi-star-test NextionDriver: Sorted CALL table in 1063 ms.
Jun 25 10:30:51 pi-star-test NextionDriver: Disk size : 7168 MB (4768 free)
Everything is working as designed!
YMMV