Just one change . . .
You said: sudo npm request install --save
But I changed it to: sudo npm install request --save
I edited the config file (twice . . . because I left out a comma the first time) and tried to run it but my command syntax may be wrong. Here is the command and the result (after I ctrl-c interrupted it):
Please let me know if I messed up on the run command.
Thanks for this Gary ⦠I managed to get it working after a few problems ( one being the wrong sort of double quates put in by copy and paste when I edited config.json ⦠).
Iāve now got 2 issues:
after it seeminly working, and I have data in weatherflow.AirBackfill, I get an error, so ⦠:
pi@WFArchivePii:~/wfarchiver $ node backfill.js -device 5000 -date 1
5000
obs_air
1440
BeforeExit: 0
error reading dummy file
Exit: 5
and should it work with the Sky?
With that it just hangs, this is with a ctrl-C to stop it
pi@WFArchivePii:~/wfarchiver $ node backfill.js -device 9623 -date 0
9623
^CCaught interrupt signal
Do some exit stuff!
BeforeExit: 3
error reading dummy file
Exit: 5
thanks once again Gary.
That all seemed to work, and I can run
node backfill.js -device 5000 -date 1 and node backfill.js -device 9623 -date 1 sort of thing
and the data is populated into the db tables weatherflow.AirBackfill and weatherflow.SkyBackfill fine
but still Iām getting an error indication
pi@WFArchivePii:~/wfarchiver $ node backfill.js -device 5000 -date 1
obs_air
1440
BeforeExit: 0
error reading dummy file
Exit: 5
To keep everyone updated. I have programmed
three (3) closed contact inputs,
three (3) LED outputs
one (1) reset button that resets counters and turns off the three LEDs.
The LEDs are:
archive.js has been restarted or the RPi rebooted.
new firmware has been installed on the Hub.
the Hub has rebooted and will flash the number of reboots since last reset.