ArchiveSW - Display & Data Archive Storage

Super easy

python start.py

start.py


import time
from subprocess import call
time.sleep(1)
call(["/usr/bin/pm2", “start”, “/home/pi/wfarchive/ecosystem.config.js”])

this tells pyton to call pm2 and pass in the parameter “start /home/pi/wfarchive/ecosystem.config.js”

Easy as cake.

It is easier in Pyton because Python
executes
one
line
at
a
time.

However, in the case of the PyConsole script.

@peter can put the sleep at the start of the code and that should solve the issue for everyone.

Hi @GaryFunk - thanks for the autostart suggestion. I’ve just worked up another option, starting the Console as a service: WeatherFlow PyConsole, but if that doesn’t work I’ll be looking at your option next!

2 Likes

That was my first choice. I found it caused issues for some users and it made updates difficult for them.

I have updated the Configuration page and added a link to give you the proper data to enter for your Station.

Dan @dan.gealt found an error in the install script. If you ran the install in the last 24 hours, please let me know.

just tested that page, works

did another update via terminal and now I see several new options and changes in layout, nice progress.

The link to update under the about tab does not work in my setup, error is

Cannot GET /updatefiles

1 Like

run updatefiles again.

did run it 3 times

2018-09-20 21:41:14 Update Files v1.6.12.012
Running updatefiles script
2018-09-20 21:41:15 Checking for new Script files
2018-09-20 21:41:15 Checking for new Views files
2018-09-20 21:41:21 Checking for new JavaScript files
====================
2018-09-20 21:42:19 Update Files v1.6.12.012
Running updatefiles script
2018-09-20 21:42:20 Checking for new Script files
2018-09-20 21:42:20 Checking for new Views files
2018-09-20 21:42:26 Checking for new JavaScript files
====================
2018-09-20 21:43:01 Update Files v1.6.12.012
Running updatefiles script
2018-09-20 21:43:01 Checking for new Script files
2018-09-20 21:43:01 Checking for new Views files
2018-09-20 21:43:07 Checking for new JavaScript files

but no the link to update via browser still gives the same error,

did a pm2 restart all, now the link is doing … this page is blank
guess that part still needs some coding with a result page to be shown … guess that is for next round of updates

1 Like

Update files from the server. This may take a few seconds.

When you click on the link, it executes the script to download files, then it takes you to the index page so you can wait.

When you look at the About page and see a version under Update, that means a new file has been downloaded and you need to restart the service for it to load. I do not automatically load the new services because I am still testing and don’t want to crash your system if you are not there to see it.

2 Likes

Got wfarchive installed and running.

If I started the backfill process via the “Process Management” screen does it download all historical data or do I need perform that manually?

I do see data in the backfill tables when I run manually - was just wondering if I can get all data at once or do I need to do for each day?

1 Like

You cannot run backfill via “Process Management.”

You may set up a cron jobs to run a few minutes past midnight UTC to get -date 1. That will get all the data for the device you specify.

I think I should add a page to help users add these jobs and the ability to run the job manually.

You can’t get all the data at once. The API will not allow that. You need to start with -date 1 and work back till you get 3 days with no data.

Ok - I was thinking that was the case.

Sure, example would be great.

2 Likes

As far as getting “All” data available - I guess I could automate that somehow.
I got my WF about a month ago.

2 Likes

I want to share a new feather that I am working on.

It is designed to fit nicely on the RPi 7" touchscreen.

Edit: I posted a new image.

Capture

8 Likes

Make it fit on a cheap 1024x600 Android tablet (or run directly on it), and we’ll have a working $50 console for our WF stations…

3 Likes

It works great on my 7" Samsung tablet. I’ve had it running for five days and it stays connected. It even reconnects if I reboot the RPi

2 Likes

What is a ‘feather’ ?
Never heard that term before…

1 Like

I ASSume that he’s using this environment:

https://feathersjs.com/

2 Likes

It’s an achievement that I accomplished but is pretty much useless to anyone else.

“A laudable success or achievement by an individual that may help that person in the future.”

1 Like