Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-06 Thread brisguy foo
Thanks all for the feedback! The engineer in me wants to debug this, but
assuming a UPS does the trick, probably best left alone. I do appreciate
all the effort put into weewx and since the interface is purely through the
api, seems like it must be a logger problem. I am going to take a look at
the Pi power supply though, just to see what it does on power cycle.

On Fri, Jan 6, 2023 at 4:17 AM Greg Troxel  wrote:

> "iams...@gmail.com"  writes:
>
> > I've looked into getting a UPS for the Pi, which really appears to be
> > nothing more than a $15 ext phone battery, but it seems to me this is a
> > weewx problem that should be addressed. Alternately, I can contact Davis
> to
> > see what they say.
> > "
>
> It seems, from long history, that if the computer that is polling the
> data logger goes away suddenly while interacting with the logger, the
> logger can get messed up.   This is arguably a bug in the logger.
>
> My advice, just like the advice you got from others, is get a UPS, which
> will also help avoid filesystem mess on the RPI0.
>
> If you want to trace what's on the serial and experiment and figure out
> what's going on, you certainly can.   But, pretty much everybody with
> the skills to do that believes in "you should get a UPS".
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAJ-dst1yVMkWqdDGyi9pD8iic%3D6GkT2-26cr3LrRDu32Xdb4yQ%40mail.gmail.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-06 Thread vince
On Friday, January 6, 2023 at 4:59:16 AM UTC-8 Tom Keffer wrote:

> Graham is probably right: a power spike from when power comes on is likely 
> the problem. It's coming through either the VP2 power supply or, more 
> likely, the Pi's. 
>
> Try at least a surge suppressor.
>

We took a crazy set of multiple dips in a couple seconds in a windstorm a 
couple weeks ago, with perhaps four dips in two seconds.  The NUC stayed 
up. All my model-B and pi4 crashed but came back up ok. 

No corruption here on my VP2 connected to a pi4, with both connected to the 
same surge suppressor, but maybe I just got lucky in timing.  

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/062d08d8-d4a8-4131-aa55-4ed9a3767a11n%40googlegroups.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-06 Thread storm...@gmail.com
Would also look at adding a DS1307 or DS3231 RTC Module to RPI zero. This 
should maintain the time when the RPI zero loses power.

On Friday, January 6, 2023 at 7:59:16 AM UTC-5 tke...@gmail.com wrote:

> If weewx causes the corruption, I sure don't see how. It operates well 
> within the published API provided by Davis. 
>
> Graham is probably right: a power spike from when power comes on is likely 
> the problem. It's coming through either the VP2 power supply or, more 
> likely, the Pi's. 
>
> Try at least a surge suppressor. A UPS would be even better.
>
> On Thu, Jan 5, 2023 at 5:46 PM iams...@gmail.com  
> wrote:
>
>> "What happens if you 'pull the plug' on your VP2? Does it keep running? 
>> Perhaps the batteries are bad?
>>
>> Yes, it keeps running, that is why it seems to be a weewx issue to me. In 
>> other words, if the Pi Zero running weewx were not connected to the VP2, 
>> the data logger memory would not get corrupted. In fact, weewx is able to 
>> recover data that was gathered during the power outage (while the Pi is 
>> shut down). It is only when power is *restored *that the data logger 
>> corruption happens. At least I assume that is really the root of the issue, 
>> I really don't know. All I know is that almost every time the power goes 
>> out, I get the record time error and all data recording and uploading stops.
>>
>> I've looked into getting a UPS for the Pi, which really appears to be 
>> nothing more than a $15 ext phone battery, but it seems to me this is a 
>> weewx problem that should be addressed. Alternately, I can contact Davis to 
>> see what they say.
>> "
>>
>> On Thursday, January 5, 2023 at 3:34:40 PM UTC-8 tke...@gmail.com wrote:
>>
>>> It should work.
>>>
>>> What happens if you 'pull the plug' on your VP2? Does it keep running? 
>>> Perhaps the batteries are bad?
>>>
>>> Personally, I use a UPS for both the weewx server and the VP2 and 
>>> haven't had a memory corruption problem in at least a decade. So, you could 
>>> try that.
>>>
>>>
>>>
>>>
>>> On Thu, Jan 5, 2023 at 11:30 AM iams...@gmail.com  
>>> wrote:
>>>
 I've been using weewx running on a Pi Zero with no other tasks. 
 Unfortunately, I live in a area that suffers power losses, often during a 
 weather events, so I lose that data. What typically happens is that when 
 the power comes back on, I get the dreaded "..page timestamp... less than 
 final timestamp..." error. The only way I have been able to address it is 
 to use the memory dump and clear.

  I don't understand why this happens since the VP2 is running with 
 battery backup, yet the memory on the datalogger gets corrupted. Is this 
 an 
 issue with weewx that could be addressed?

 Failing that, can I address this issue by adding a backup supply to my 
 Pi Zero?

 Thanks!

 -- 
 You received this message because you are subscribed to the Google 
 Groups "weewx-user" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to weewx-user+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/7bd3876d-96a1-4c3a-82fb-c4f406234066n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a9235658-a6dc-4ebd-b9ba-154cb1d5e8b7n%40googlegroups.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-06 Thread Tom Keffer
If weewx causes the corruption, I sure don't see how. It operates well
within the published API provided by Davis.

Graham is probably right: a power spike from when power comes on is likely
the problem. It's coming through either the VP2 power supply or, more
likely, the Pi's.

Try at least a surge suppressor. A UPS would be even better.

On Thu, Jan 5, 2023 at 5:46 PM iams...@gmail.com  wrote:

> "What happens if you 'pull the plug' on your VP2? Does it keep running?
> Perhaps the batteries are bad?
>
> Yes, it keeps running, that is why it seems to be a weewx issue to me. In
> other words, if the Pi Zero running weewx were not connected to the VP2,
> the data logger memory would not get corrupted. In fact, weewx is able to
> recover data that was gathered during the power outage (while the Pi is
> shut down). It is only when power is *restored *that the data logger
> corruption happens. At least I assume that is really the root of the issue,
> I really don't know. All I know is that almost every time the power goes
> out, I get the record time error and all data recording and uploading stops.
>
> I've looked into getting a UPS for the Pi, which really appears to be
> nothing more than a $15 ext phone battery, but it seems to me this is a
> weewx problem that should be addressed. Alternately, I can contact Davis to
> see what they say.
> "
>
> On Thursday, January 5, 2023 at 3:34:40 PM UTC-8 tke...@gmail.com wrote:
>
>> It should work.
>>
>> What happens if you 'pull the plug' on your VP2? Does it keep running?
>> Perhaps the batteries are bad?
>>
>> Personally, I use a UPS for both the weewx server and the VP2 and haven't
>> had a memory corruption problem in at least a decade. So, you could try
>> that.
>>
>>
>>
>>
>> On Thu, Jan 5, 2023 at 11:30 AM iams...@gmail.com 
>> wrote:
>>
>>> I've been using weewx running on a Pi Zero with no other tasks.
>>> Unfortunately, I live in a area that suffers power losses, often during a
>>> weather events, so I lose that data. What typically happens is that when
>>> the power comes back on, I get the dreaded "..page timestamp... less than
>>> final timestamp..." error. The only way I have been able to address it is
>>> to use the memory dump and clear.
>>>
>>>  I don't understand why this happens since the VP2 is running with
>>> battery backup, yet the memory on the datalogger gets corrupted. Is this an
>>> issue with weewx that could be addressed?
>>>
>>> Failing that, can I address this issue by adding a backup supply to my
>>> Pi Zero?
>>>
>>> Thanks!
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "weewx-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/7bd3876d-96a1-4c3a-82fb-c4f406234066n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEAVVWPO5NdZJ6fhfaQpXxPxf7zTRv7ndQxYTFE5NE8dMw%40mail.gmail.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-06 Thread spam-...@robotmonkeys.net
Sometimes the logger inside your Vp2 base station gets into a weird state. 
You can try weewx_device —dump to try and recover you missing data, but I 
often just end up running —clear and eat the loss See 
.https://www.weewx.com/docs/hardware.htm#vantage_notes
On Friday, January 6, 2023 at 6:17:05 AM UTC-6 Greg Troxel wrote:

> "iams...@gmail.com"  writes:
>
> > I've looked into getting a UPS for the Pi, which really appears to be 
> > nothing more than a $15 ext phone battery, but it seems to me this is a 
> > weewx problem that should be addressed. Alternately, I can contact Davis 
> to 
> > see what they say.
> > "
>
> It seems, from long history, that if the computer that is polling the
> data logger goes away suddenly while interacting with the logger, the
> logger can get messed up. This is arguably a bug in the logger.
>
> My advice, just like the advice you got from others, is get a UPS, which
> will also help avoid filesystem mess on the RPI0.
>
> If you want to trace what's on the serial and experiment and figure out
> what's going on, you certainly can. But, pretty much everybody with
> the skills to do that believes in "you should get a UPS".
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/235901d4-9cf2-4177-8d19-89e63b20cfe4n%40googlegroups.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-06 Thread Greg Troxel
"iams...@gmail.com"  writes:

> I've looked into getting a UPS for the Pi, which really appears to be 
> nothing more than a $15 ext phone battery, but it seems to me this is a 
> weewx problem that should be addressed. Alternately, I can contact Davis to 
> see what they say.
> "

It seems, from long history, that if the computer that is polling the
data logger goes away suddenly while interacting with the logger, the
logger can get messed up.   This is arguably a bug in the logger.

My advice, just like the advice you got from others, is get a UPS, which
will also help avoid filesystem mess on the RPI0.

If you want to trace what's on the serial and experiment and figure out
what's going on, you certainly can.   But, pretty much everybody with
the skills to do that believes in "you should get a UPS".

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/rmisfgnyi10.fsf%40s1.lexort.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-05 Thread Graham Eddy
It is much more likely your power supply being the problem. Get a ups to smooth the spikes (dunno if rpi hat does that)⊣ GE ⊢    phone➔brevityOn 6 Jan 2023 12:46 pm, "iams...@gmail.com"  wrote:"What happens if you 'pull the plug' on your VP2? Does it keep running? Perhaps the batteries are bad?Yes, it keeps running, that is why it seems to be a weewx issue to me. In other words, if the Pi Zero running weewx were not connected to the VP2, the data logger memory would not get corrupted. In fact, weewx is able to recover data that was gathered during the power outage (while the Pi is shut down). It is only when power is restored that the data logger corruption happens. At least I assume that is really the root of the issue, I really don't know. All I know is that almost every time the power goes out, I get the record time error and all data recording and uploading stops.I've looked into getting a UPS for the Pi, which really appears to be nothing more than a $15 ext phone battery, but it seems to me this is a weewx problem that should be addressed. Alternately, I can contact Davis to see what they say."On Thursday, January 5, 2023 at 3:34:40 PM UTC-8 tke...@gmail.com wrote:It should work.What happens if you 'pull the plug' on your VP2? Does it keep running? Perhaps the batteries are bad?Personally, I use a UPS for both the weewx server and the VP2 and haven't had a memory corruption problem in at least a decade. So, you could try that.On Thu, Jan 5, 2023 at 11:30 AM iams...@gmail.com  wrote:I've been using weewx running on a Pi Zero with no other tasks. Unfortunately, I live in a area that suffers power losses, often during a weather events, so I lose that data. What typically happens is that when the power comes back on, I get the dreaded "..page timestamp... less than final timestamp..." error. The only way I have been able to address it is to use the memory dump and clear. I don't understand why this happens since the VP2 is running with battery backup, yet the memory on the datalogger gets corrupted. Is this an issue with weewx that could be addressed?Failing that, can I address this issue by adding a backup supply to my Pi Zero?Thanks!



-- 
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com.





-- 
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7bd3876d-96a1-4c3a-82fb-c4f406234066n%40googlegroups.com.




-- 
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/709fe62a-0bad-4448-9b1f-318c3e05bb72%40email.android.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-05 Thread iams...@gmail.com
"What happens if you 'pull the plug' on your VP2? Does it keep running? 
Perhaps the batteries are bad?

Yes, it keeps running, that is why it seems to be a weewx issue to me. In 
other words, if the Pi Zero running weewx were not connected to the VP2, 
the data logger memory would not get corrupted. In fact, weewx is able to 
recover data that was gathered during the power outage (while the Pi is 
shut down). It is only when power is *restored *that the data logger 
corruption happens. At least I assume that is really the root of the issue, 
I really don't know. All I know is that almost every time the power goes 
out, I get the record time error and all data recording and uploading stops.

I've looked into getting a UPS for the Pi, which really appears to be 
nothing more than a $15 ext phone battery, but it seems to me this is a 
weewx problem that should be addressed. Alternately, I can contact Davis to 
see what they say.
"

On Thursday, January 5, 2023 at 3:34:40 PM UTC-8 tke...@gmail.com wrote:

> It should work.
>
> What happens if you 'pull the plug' on your VP2? Does it keep running? 
> Perhaps the batteries are bad?
>
> Personally, I use a UPS for both the weewx server and the VP2 and haven't 
> had a memory corruption problem in at least a decade. So, you could try 
> that.
>
>
>
>
> On Thu, Jan 5, 2023 at 11:30 AM iams...@gmail.com  
> wrote:
>
>> I've been using weewx running on a Pi Zero with no other tasks. 
>> Unfortunately, I live in a area that suffers power losses, often during a 
>> weather events, so I lose that data. What typically happens is that when 
>> the power comes back on, I get the dreaded "..page timestamp... less than 
>> final timestamp..." error. The only way I have been able to address it is 
>> to use the memory dump and clear.
>>
>>  I don't understand why this happens since the VP2 is running with 
>> battery backup, yet the memory on the datalogger gets corrupted. Is this an 
>> issue with weewx that could be addressed?
>>
>> Failing that, can I address this issue by adding a backup supply to my Pi 
>> Zero?
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7bd3876d-96a1-4c3a-82fb-c4f406234066n%40googlegroups.com.


Re: [weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-05 Thread Tom Keffer
It should work.

What happens if you 'pull the plug' on your VP2? Does it keep running?
Perhaps the batteries are bad?

Personally, I use a UPS for both the weewx server and the VP2 and haven't
had a memory corruption problem in at least a decade. So, you could try
that.




On Thu, Jan 5, 2023 at 11:30 AM iams...@gmail.com 
wrote:

> I've been using weewx running on a Pi Zero with no other tasks.
> Unfortunately, I live in a area that suffers power losses, often during a
> weather events, so I lose that data. What typically happens is that when
> the power comes back on, I get the dreaded "..page timestamp... less than
> final timestamp..." error. The only way I have been able to address it is
> to use the memory dump and clear.
>
>  I don't understand why this happens since the VP2 is running with battery
> backup, yet the memory on the datalogger gets corrupted. Is this an issue
> with weewx that could be addressed?
>
> Failing that, can I address this issue by adding a backup supply to my Pi
> Zero?
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECWO61xDGH2OuXHJJfg8CZ%2B-Ly4u3exvcOXioDPgTOsLw%40mail.gmail.com.


[weewx-user] Davis VP2 reliability with Rasp Pi zero

2023-01-05 Thread iams...@gmail.com
I've been using weewx running on a Pi Zero with no other tasks. 
Unfortunately, I live in a area that suffers power losses, often during a 
weather events, so I lose that data. What typically happens is that when 
the power comes back on, I get the dreaded "..page timestamp... less than 
final timestamp..." error. The only way I have been able to address it is 
to use the memory dump and clear.

 I don't understand why this happens since the VP2 is running with battery 
backup, yet the memory on the datalogger gets corrupted. Is this an issue 
with weewx that could be addressed?

Failing that, can I address this issue by adding a backup supply to my Pi 
Zero?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com.