ArchiveSW - Display & Data Archive Storage

Wow @GaryFunk, 12 minutes to find solve and upload the update. You are the quickest software support on the planet :slight_smile:

3 Likes

Thank you, Ian. I appreciate your comments and especially the excellent bug report. I think it’s important to keep the application updated and working. There are a couple of users that depend on it working. I won’t mention names but for one his initials are @dan.gealt. :wink:

3 Likes

Thanks Gary for keeping my identity obscured through use of initials . . . and it would be way to difficult to spell out the entire name given that set of initials (I can barely spell it all out myself). No, but seriously folks . . . I use the ArchiveSW package every day and I am really extremely happy with all that it can do. Also, the new setup where the Raspberry Pi is also acting as the WiFi access point for the Hub is working great.

6 Likes

That would be fantastic

1 Like

I think so. I want the data locally but I also want to be able to access the data through my cloud website. This way I can use the website to produce high powered graphs and data analysis. And give others access to the site.

2 Likes

Excellent @GaryFunk

+

= First time I read that you will create graphs, Great I love graphs and they are really useful to get an idea of ‘change’ in values.

I am looking forward to graphs on ArchiveSW???
cheers Ian :slight_smile:

1 Like

'Ang About. ArchiveSW won’t do any graphing. My plan is to replicate the database from ArchiveSW to a database on my website. Once the data is on the very powerful website server, I can use the dozens of graphing solutions available for web servers. This is the simplist solution with which I can come.

One can also set up a web server that is on the local network. The software applications are readily available. I just need to piece them together.

3 Likes

Hi Gary. Have you posted detail on how to connect the hub to the pi’s access point?

2 Likes

Here is the script to set it up.

bash -e <(wget -qO - http://fsoft.com/archivesw/script/accesspoint.sh)

Be sure to run the script to update your RPi as mentioned in the above script.

6 Likes

Once the Pi’s access point is set up you will need to use the WF app to set the hub to the new access point.

5 Likes

For those of you that never or seldom update your RPi I have a script that will take care of everything for you. It will fully update the RPi and inform you if it needs to reboot.

bash -e <(wget -qO - http://fsoft.com/archivesw/script/updaterpi.sh)

5 Likes

I have uploaded new files for ArchiveSW that fix errors caused when using the RPi as an access point. These errors were mostly cosmetic however there were times when archive.js would fail to store UDP data upon a reboot of the RPi.

You will need to manually restart the revised processes.

3 Likes

I started this topic on April 10th and I just noticed that I have received 636 links on the my 486 posts.
Capture

I have seen a few comments from members that feel setting up a Raspberry Pi is beyond their capability so I had an idea. If the total likes on my posts reach 1000 by April 10th, I will send one of those members a fully configured 128GB SC Card that will run ArchiveSW on boot-up. If the total reaches 1500 I will send out two cards. All the member has to do is supply their own RPi 3B+ and power supply and plug the RPi into an Ethernet port on their router.

What do you all think? Is this a good idea or a bad idea?

8 Likes

I think it is generous of you :slight_smile:
(For me WFArchive/ArchiveSW serves a very useful purposes. There might be some other method but I have not learned about any other application that will easily store my weather data into an SQL database even when I loose electricity to my house. And I dont like how my old detailed data is lost from view in the weatherflow graph display)
But for the person who:

Then once they have it running, displaying and storing in their database they will still have challenges they might not wish to face.
When you look at the extra things that they have requested they would have difficulty using the database to generate their specialised outputs and they most likely would not be able to generate any graphs.
I feel the best help for them is to have easy instructions to see how easy it is for them to learn if they wish to.
Either written with images and/or youtube videos actually demonstrating how to do everything.
And then there will be an update that changes something and they will have to figure out what went wrong. It happens to me sometimes and I am using it all as a learning process and it is challenging and exercising my brain.
I accept those who say:

It was beyond my capability but with your encouragement and assistance I was able to get it running. And I will help others if I can:

cheers Ian :slight_smile:

2 Likes

Thank you, Ian.

Everyone likes graphs. I, I, I just don’t know what to do about graphs on the RPi. I think you guys won’t be real happy till I just do it. :slight_smile:

I know I need to build an application to query the stored data and I have been playing with ideas on how that will work. There is a lot still to do and my goal to make this so super easy that even @eric can do it in his sleep.

So hang in there and we will figure this out together. I’m still working on basic applications that will keep this thing running.

5 Likes

Hi @GaryFunk, I’m getting the flashing red date but don’t see any updates available. I did update yesterday evening and this morning I see the flashing red date. I saw this line come through on the Server tab: {"To":"Panel","Msg:"{"type":"file_updates","value":true,"version":"1.7.15.059"}}

I ran UpdateFiles and AlterTables but nothing changed.
image

BTW, I tapped the flashing date and it shut off, as expected. But just a few minutes later it came back on again.

3 Likes

start.js was updated. Since it’s not a process it just updates and doesn’t require a restart of any kind.

3 Likes

I’m putting this here so others can have access to this information. Adjusting the brightness is so super simple. I need to add a photo diode to measure the brightness and write a value to the file. One can also use push button switches attached to GPIO pins to increase and decrease brightness.

sudo su -c 'echo SUBSYSTEM==\"backlight\", RUN+=\"/bin/chmod 0666 /sys/class/backlight/%k/brightness /sys/class/backlight/%k/bl_power\" > /etc/udev/rules.d/99-backlight.rules'

sudo reboot

BRIGHTNESS_FILE="/sys/class/backlight/rpi_backlight/brightness"
BRIGHTNESS_MAX 255
BRIGHTNESS_MIN 0
BRIGHTNESS_STEP 25

source: https://github.com/jakeh12/rpi-backlight/

1 Like

I opened an ssh terminal on my desktop and would execute " echo 50 > /sys/class/backlight/rpi_backlight/brightness" with different values and watch the display change brightness. I added BRIGHTNESS_DEFAULT 60 to the C code and updated the relevant if-then-else section so I can now just execute rpi-backlight default to get back to my personal default value. I also determined that a minimum of 10 was the dimmest value and after 180, to me, there wasn’t a visible change. I also changed the step size to 2 which is close to a 1% change since I like finer grained changes.

I would love to have a push buttons switches to change brightness along with a photodiode. The pushbuttons would then adjust the relative brightness for a given photodiode input.

1 Like

Speaking of displays, I have been wondering what it would take to use https://www.waveshare.com/6inch-e-paper-hat.htm as a display. No touch support but it would make for a low power setup.

1 Like