ArchiveSW - Display & Data Archive Storage

Hi again Gary,

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):

13%20AM

Please let me know if I messed up on the run command.

Thanks,

Dan.

1 Like

node backfill.js -device 2859 -date 2

3 Likes

That worked! There is now some data in the AirBackfill table. Yay! And Thanks!

2 Likes

FYI. 0 is today, 1 is yesterday, 2 is the day before and the day is based on UTC.

3 Likes

Ok . . . UTC . . . got it!

1 Like

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 AGAIN for your excellent tools!

1 Like

Iā€™ll take a look and see whatā€™s going on with the Sky.

1 Like

Okay, I found a big error. I didnā€™t update the Sky import. Iā€™ll have a new version in a few minutes.

1 Like

@tepahu, @dan.gealt and everyone else.

You can rerun backfill to store the correct data. Some data was stored without decimal points.

@dan.gealt I added the gpio table and will continue testing.

5 Likes

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

is there anything to be concerned about?

THANKS!

wayne

1 Like

The ā€œerror reading dummy fileā€ is normalā€¦I need to remove it.

1 Like

@dan.gealt

Capture

1 Like

Nice! I am excited to get mine setup . . . hopefully before the next rain comes in (maybe late next week).

Looks like Iā€™ll have some time on Monday to work on it. Iā€™ll let you know as soon as I have it working.

Thanks for all of your efforts on the WFArchiver and GPIO project.

Dan.

2 Likes

The timestamp is UTC so you can match it with timestamps from the Sky.

1 Like

I plan to use GPIO 4, 5 6, and 7 as input triggers. These can be used for tripping buckets or any closed contact device you want.

Do you think 4 inputs are the correct amount?

2 Likes

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:

  1. archive.js has been restarted or the RPi rebooted.
  2. new firmware has been installed on the Hub.
  3. the Hub has rebooted and will flash the number of reboots since last reset.

I can program more LEDs if you have suggestions.

5 Likes

Hi Gary,

I think 4 inputs is certainly fine for now. Just have to see how users respond . . . I hope some find them as useful as you and I will.

Dan.

3 Likes

At the suggestion of @eric I have moved the gpio to a separate module.

I have also set the framework to add additional modules which will be controlled by the configuration file.

5 Likes

Excellent ideas . . .

2 Likes

This may interest some of you.

Capture

5 Likes