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 [email protected] 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 [email protected] <[email protected]> 
> 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 [email protected] 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 [email protected] <[email protected]> 
>>> 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 [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/c833a23b-2957-4311-882a-cda796d0c928n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> 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 [email protected].
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/7bd3876d-96a1-4c3a-82fb-c4f406234066n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/7bd3876d-96a1-4c3a-82fb-c4f406234066n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a9235658-a6dc-4ebd-b9ba-154cb1d5e8b7n%40googlegroups.com.

Reply via email to