G7OMN wrote:
1. It should be possible to reduce this to another interval by changing the -mtime +7 to something else, eg +2 to bring it to 2 days, if pulling it from another server (so as not to overload pistar.uk.)
You can certainly make these changes if you want, but IF another update gets issued for Pi-Star, your changes will be backed out.
If I understand what you're asking here: no, you can not use the ${NEXTIONUSERS} variable in the Nextion Driver config. And, no, you can not use the "...csv.gz" file in the config. You have to reference the "/usr/local/etc/nextionUsers.csv" file.
The standard Nextion config looks like this:
Code: Select all
[NextionDriver]
Port=modem
LogLevel=2
DataFilesPath=/usr/local/etc/
GroupsFile=groups.txt
DMRidFile=stripped.csv
DMRidDelimiter=,
DMRidId=1
DMRidCall=2
DMRidName=3,4
DMRidX1=5
DMRidX2=6
DMRidX3=7
RemoveDim=1
SleepWhenInactive=0
ShowModeStatus=0
WaitForLan=1
Change the DMRidFile= line to this (i.e. substitute "nextionUsers.csv" for "stripped.csv":
I wouldn't worry too much about the "every 7 day" thing for the moment: only about 30-40 id's get added each day, on average, spread across the world. The chances of encountering one of these missing id's is slim. Even spotting 'em on the display, slimmer.
Having increased the driver's upper limit on id's, you've pretty much taken care of most of the MIA id's you'll probably encounter anyway, IMHO.
-----
I should mention than I'm using configs that are several years old that were restored into current images (overlaying what ever was there currently, by default). Looking at the Nextion config of one of the vanilla images, I notice that the config has added a few new params which is what you're seeing (and I've not using nor added to my configs):
Code: Select all
[NextionDriver]
Port=modem
LogLevel=2
DataFilesPath=/usr/local/etc/
GroupsFile=nextionGroups.txt
GroupsFileSrc=https://www.pistar.uk/downloads/groups.txt
DMRidFile=nextionUsers.csv
DMRidFileSrc=https://www.pistar.uk/downloads/nextionUsers.csv
DMRidDelimiter=,
DMRidId=1
DMRidCall=2
DMRidName=3
DMRidX1=5
DMRidX2=6
DMRidX3=7
RemoveDim=0
SleepWhenInactive=600
ShowModesStatus=0
WaitForLan=1
If this is what you're seeing, then you're good to go with this config. The only thing I would change is: "DMRidName=3,4" (adds last name to the mix).
I haven't looked at what the driver does with the alternate source directives, but I'm assuming that if it doesn't find a required file locally (..File=), then it goes out and downloads a new copy pointed to by the alternate source (..FileSrc=) statement.