ArchiveSW - Display & Data Archive Storage

can I be nasty @GaryFunk :stuck_out_tongue_closed_eyes:

typo in communications (missing O)

I know you’re not happy as long it ain’t perfect :wink:

5 Likes

That’s only there for testing but thank you for letting me know. The next step is to add code to send an email.

3 Likes

A quick note to all users.

I am replacing FOREVER with PM2. FOREVER has not been updated in over two years and I ran into issues when adding modules to the application.

5 Likes

How many use Pushover? I’m going to add it to send alerts.

1 Like

IMG_20180830_123258

3 Likes

I haven’t, but I’m happy to sign up and pay the $5

1 Like

I use Prowl for alerts.

3 Likes

I have never used Prowl but there are nine packages on npm so one should work.

@bpaauwe Do you have an account on Prowl?

5 Likes

Alerts for offline and back online are working with Pushover.

IMG_20180830_170225

1 Like

@GaryFunk - this thread is getting massively long and hard to keep up with. Do you have a quick synopsis of what you’re building someplace with what the current vision is and where you’re at ?

1 Like

Not yet but soon I will update to main topic with all the new features.

@vinceskahan I have updated the main topic. Let me know if you have questions.

5 Likes

I have rewritten most of the files and an install script that does all the work for you.

@dan.gealt @eric Have a look at the images below and see if this handles the changes you made manually.

The only thing I have not done is add the schedules to crontab. I’ll be working on a method to add the data.

The start of the script
Capture

The end of the scrijpt
Capture2

3 Likes

Hi Gary,

I like it! Looks like it will take care of the local user preferences and handle the config file creation. Should make it a lot easier for all of the users!

Just an FYI . . . since I rebuilt my RPi installation from scratch on 18-May-2018 (with a 32GB memory card) my weatherflow1 database has grown to 1.4GB. RapidWind and HubStatus make up 963MB of that total. Here is the latest view of table sizes:

01%20PM

The RPi shows about 17GB Free out of 27GB Total space.

I am thinking about how long we might want to save the RapidWind and the HubStatus detail and what other maintenance scripts we might want to build for the long-term health of WFArchiver. Not to put extra stuff on your plate (because it doesn’t seem like an urgent matter) but I was just wondering what your thoughts are on those DB maintenance functions.

And . . . once again . . . thank you for creating this tool! It is the most handy tool in the toolbox for data analysis and for troubleshooting on the Smart Weather Stations!

Dan.

3 Likes

The only thing left to do is let one name the folder to install to. But is there really a need to change it from wfarchive?

@bpaauwe @eric @dan.gealt @michael @tepahu @Bumbershoot Comments, questions, suggestions?

1 Like

I guess I would say that it would be good from a consistency standpoint if all users installed to the same folder name. I like that the beginning of the script tells the user how to put the install folder in a non-default location, but it still seems like the install folder name should remain as ā€œwfarchiveā€ even if the user puts it somewhere other than ā€œhome/piā€. At least if they put it in a path like ā€œhome/vanilla/icecream/wfarchiveā€ you could still have a script down the road that searches for ā€œwfarchiveā€ and then does whatever the script is supposed to do in the right place.

A quick answer, but still my old verbose self . . .

Dan

2 Likes

The schedules are now automatically added tot crontab.

Now I just need someone to test it.

If no one else can do it sooner, I’ll be back in town on Friday 7-sept and will do it then.

1 Like

to me better keep the name. If you later need to add a script/module you already have the folder name as standard. If you go for a user defined one … you need to include a variable for the name folder and use it everywhere … not sure this will make future work any easier.
Just add a line to the install script to warn that the user should install it on a partition where there is space … some installs use several partitions, ex. for the boot part etc and those are generally pretty small.

3 Likes

Here is the start of the web configuration. Questions and comments are welcome.

Capture

5 Likes

The web configuration is working and even allows for restarting the applications from the web page.

This wasn’t as difficult as I thought it would be.

5 Likes