ArchiveSW - Display & Data Archive Storage

udp
nodejs
wfarchive
archivesw

#1062

I had set the outputs to turn on LEDs on certain events. Now would be a good time to work on makjng it configurable and setting ways to trigger the outputs.

hint, hint


#1063

Proximity sensor to turn on the backlight for a period of time
Ambient light sensor to adjust display brightness
Turn on/off a relay based on internal or external temperature values
Turn on/off a relay based on Lux
etc.

No wonder RPi’s are like rabbits! Except these don’t need a pair to multiply. :laughing:


#1064

These are panned and I am looking at the parts and code required.

This is what I had in mind for the triggers.

The current code has three inputs and three outputs. The outputs are not programmed. I need to write the web code to allow one to pick the Key and Value to trigger on. Then I have to figure out how complicated to let it become.

And you know, no matter what I do, some will still want more.

It is easy to do:

Output 1 on:
AIR TEMP - GREATER THAN xx

Output 2 on:
LUX - LESS THAN xx

Output 3 on:
WIND - GREATER THAN xx


#1065

These are the two items I’m actually working on. The RPi does not have analog inputs so it will require the use of I2C sensors. These sensors are not pretty so users will need to come up with there own housing. i will be investigating different configurations.

I’m looking for a motion sensor that will report motion under 500ms. If you have any suggestions or comments please let me know.


#1066

Haven’t found much on this one but it might work:


This link may have more information. It does have a link to a video about it being used with a RPi.


#1067

This is strange. Your Sky developed a wind sensor failure at below 2.7vdc.

The code used by the web application uses 2.1vdc as the replace voltage.

null == o[u] || isNaN(o[u]) ? r[e.ObRecord.Battery] = o[u] : r[e.ObRecord.Battery] = o[u].toFixed(2), "obs_air" == a.type ? r[e.ObRecord.BatteryState] = o[u] >= 2.4 ? e.user.localize("battery_state_good_label") : e.user.localize("battery_state_replace_label") : "obs_sky" == a.type && (r[e.ObRecord.BatteryState] = o[u] >= 2.2 ? e.user.localize("battery_state_good_label") : e.user.localize("battery_state_replace_label"));

Something very contradictory here. Especially as others are seeing the higher voltage as the cutoff for the Sky.

Thank you for bringing this to my attention.


#1068

Hi @GaryFunk

Yes please Gary I am ready to try your script.

cheers Ian :slight_smile:


#1069

It is a few posts up at ArchiveSW - Display & Data Archive Storage


#1070

It is here. …

There is a script to update the RPi at

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


#1071

I discovered an issue when ArchiveSW starts after the RPi reboots. To prevent the current errors I have coded a delay onto start.js. I will be adding checks into server.js to allow for the shortest possible delay.


#1072

As a test, I just ran 48 hours with the Hub and RPi on battery power. I did keep the RPi connected to the Internet so data would flow to the WeatherFlow servers. Otherwise, all data was captured and stored by the RPi

With bigger batteries I think it should be possible to run the Hub and RPi for a week with NO lose of data. One more step towards total isolation and data loss prevention during a black-out or power-failure during a storm.