ArchiveSW - Display & Data Archive Storage



You can look in DailySensor to find the day it started then look in DeviceStatus to find the first failure and the voltage will be there.


there you go


Excellent. So somewhere between 2.629 and 2.620 it failed. I’m guessing an urgent warning at 2.65 would be final. I believe David has mentioned 2.7 as a cutoff.


isn’t it linked to the values we give in config tab ?? (they are default 2.4 and 2.1)

Also since latest change of the device tab, it sometimes times out


Those values are for internal alerts. For your Sky it should be set to 2.7.


Just a thought, I have the Australian frequency version, so there might be a difference in their power demand?


Hi @GaryFunk

I have been experimenting with a power bank as an UPS (Uninterruptible Power Supply) to supply my hub, prior to setting up the wifi to the pi like your system. I had a couple of these IPad power banks lying around so I have experimented with them by removing power and observing that everything functions and the power bank recharges when supply is reconnected and so far it seems like this might be my future setup when I changeover to your setup.

edit: And as they are cheap and I have two (And also some other brands of similar style) I can plug them in series and their powers/time will add.
cheers Ian :slight_smile:


That is fantastic. I’m still looking at options that can provide more power.


Power or energy? If the latter, get another Li-polymer battery and plug it into the second port of your RPi UPS. As long as the two batteries are the same chemistry they can be paralleled. The capacities don’t have to match. After one charge or discharge to where the voltage changes rapidly the two cells will be at the same SOC. When hooking them up it is easier on the cells to have their voltages close so the balancing current isn’t too high for the cells, otherwise it is quite a benign thing.

If you are wanting to increase the power, I have found that the PiJuice has eliminated all of the low voltage warnings I used to get on my ArchiveSW workstation. It supplies the power to the RPi through the GPIO pins and has a separate GPIO header to supply 5.0V to the display.


Power. I want at least 3.0 Amps. I want to power the RPi, Display and Hub. i have found that 2.5 Amps just isn’t enough.


After thought: It’s going to be easier and cheaper to use two power supplies. One on the RPi and display as it is and one on the Hub. And with two, the Hub can be place between to the Air/Sky and the RPi to extend the distance.


Have you put a meter on the input power? If my meter can be trusted, it has always shown less than 2A for a peak value. I think that the PiJuice being a HAT means lower voltage drop to the RPi. Also, it looks like I misquoted where the power to the display came from. The docs say, “The maximum current at 5V via the GPIO is 2.5A and via VSYS is 2.1A.” I guess GPIO is separate from VSYS. I use VSYS to power the display and it runs just fine with a 0.5A current limit setting.

I’ve also been lookin at the UPS PIco HV3.0B+ HAT Advanced for my RV due to the wide input voltage range. I could hook my RV’s 12V system directly to it and be just fine. “The External Supply Powering Input is able to accept power from 7 V DC up to 28 V DC!!


For hooking up a DS18B20 temperature sensor to the RPi, is this the correct diagram to follow?

Any thing else to do on the RPi so that ArchiveSW will see the sensor?


Yes. A trusty Fluke 287. The display uses 0.47 ADC at startup then drops to 0.1919 ADC at stable.


Are you using the 26 pin bus or the 40 pin bus?


Good question. I didn’t thinik of that. RPi 3B+ so 40 pin.


You want to use pins physical pins 1, 7 and 9.

1 is 3vdc, 7 is gpio 4 and 9 is ground.

The resister goes between 1 and 7.


In the DailySky table which field should have the total daily rain?
on the 6/2/19 I had 16mm of rain but I don’t see that data anywhere in the DailySky table.

id insert_datestamp today serial_number illuH illuHT illuHD illuL illuLT illuLD uvH uvHT uvHD uvL uvLT uvLD rainH rainHT rainHD rainL rainLT rainLD lullH lullHT lullHD lullL lullLT lullLD windH windHT windHD windL windLT windLD gustH gustHT gustHD gustL gustLT gustLD radH radHT radHD radL radLT radLD precipE precipM precipT precipTime lightF lightFD lightL lightLD lightT lightTD
10 2019-02-07 00:01:01 2019-02-06 SK-00012559 128162 1549418896 2019-02-06 13:08:16 0 1549371630 2019-02-06 00:00:30 12.50 1549418896 2019-02-06 13:08:16 0.00 1549371630 2019-02-06 00:00:30 0.607148 1549436773 2019-02-06 18:06:13 0.000000 NULL NULL 3.67 1549439654 2019-02-06 18:54:14 0.00 1549371630 2019-02-06 00:00:30 6.26 1549439654 2019-02-06 18:54:14 0.00 1549371630 2019-02-06 00:00:30 10.73 1549439654 2019-02-06 18:54:14 0.00 1549371630 2019-02-06 00:00:30 1068 1549418896 2019-02-06 13:08:16 0 1549371630 2019-02-06 00:00:30 6 102 11.466753 1549449971 1549394545 2019-02-06 06:22:25 1549445832 2019-02-06 20:37:12 51287 NULL

Also in the SkyObservation daily_rain_accumulation is always NULL [example below]

id insert_datestamp datestamp serial_number type hub_sn firmware_revision timestamp illuminance uv rain_accumulated wind_lull wind_avg wind_gust wind_direction battery report_interval solar_radiation daily_rain_accumulation precip_type wind_interval
11873 2019-02-06 21:45:13 2019-02-06 21:45:11 SK-00012559 obs_sky HB-00003437 43 1549449911 0 0.00 0.025166 1.34 1.43 1.52 190 3.47 1 0 NULL 1 3


precipT is the total of the values recorded.

daily_rain_accumulation is null as that is what is reported by the Hub via UDP. That value is only available via web socket and REST API as it is calculated by the WeatherFlow server.


After seeing that my temperature sensitive plug isn’t turning on the heater in my RV soon enough I thought of using the RPi with temp sensor to program a relay to do it. In reading the documentation on the ArchiveSW web page it says, “piio.js - Accept inputs for three closed contact switches and has five LED outputs for instant status.” I assume this is the page where I could setup outputs?

Or are the PiIO triggers listed for the input switches? I would like to have either an on temperature and an off temperature or an on temperature and a hysteresis value. Is this possible to do with ArchiveSW right now?