Yes, you could do as you suggest - and there have been many attempts at 
resolving the issue.  In fact weewx now attempts to delay its startup if it 
suspects the time - but for this to work you need to remove fake hwclock 
completel;y - to force a date/time of epoch datetime 000000000.  Check the 
wiki for more info and also other forum threads.

The simplest is to add a real time clock module - after all, you are using 
it as a 'real' computer - building a database of information, not just an 
experimental toy, and who has heard of a computer without a clock??!!!!!  
Give it one!!!



On Monday, 8 January 2018 17:13:06 UTC+2, Paul_N wrote:

> Hi Andrew, many thanks for your quick and helpful reply. My RPi does not 
> have an RTC and so sets its time via NTP and so you make a very good point 
> : I'm not at all sure that it sets the time correctly BEFORE starting 
> weewx. Having read a bit more about RPi, weewx and the importance of having 
> the correct time, I think you may well be onto the problem. Presumably I 
> could address this by preventing weewx from starting automatically and then 
> writing a very simple shell script which runs at boot time, sleeps for 
> several minutes to allow NTP to set the time and then starts weewx  
> manually. No doubt more sophisticated methods could be employed, but this 
> should generally work I think.
> Thanks again for your advice,
> Regards, Paul
>
> On Monday, January 8, 2018 at 1:41:17 PM UTC, Andrew Milner wrote:
>>
>> When you restart the RPi does the RPi have the correct time and timezone 
>> set before you start weewx??  You cannot just rely on the 'standard' RPi 
>> fake hardware clock - see other threads.  You MUST either use a Real Time 
>> clock OR ensure the RPi has got the correct time from NTP BEFORE starting 
>> weewx - otherwise you are very likely to find no catchup will be performed.
>>
>> See other threads for the reasons, and see the wiki for notes on using 
>> RPi and weewx!!
>>
>>
>>
>>
>> On Monday, 8 January 2018 13:49:50 UTC+2, Paul_N wrote:
>>
>>> Hi, I'm very new to Raspberry Pi, Raspian et al but, pre-armed with a 
>>> little IT knowledge, I thought I'd install weewx as my first RPi project so 
>>> that I could get my LaCrosse WS2350 weather station on-line. So, having 
>>> read the user guide, I simply followed the "quick start" instructions and 
>>> installed weewx. And, was absolutely delighted to find that it worked first 
>>> time, out of the box. So my first contribution to this user group is to 
>>> congratulate and thank Tom and all the other contributors to this project 
>>> for doing such a fantastic job - there are not many pieces of commercial 
>>> software out there that would come close to this !
>>>
>>> Its all still working fine, but I did notice some unexpected behaviour 
>>> which I would appreciate some input on please. When I power down my RPi for 
>>> a period of time (haing stopped weewx first of course) and then restart it 
>>> some hours later, it does not download the records that the WS2350 has 
>>> recorded every hour in the interim but weewx simply resumes by downloading 
>>> the next record on the following hour. Hence I end up with a number of 
>>> hourly records missing from the weewx database, even though they are 
>>> available on the WS2350. 
>>>
>>> Is there anyway to get weewx to resume by downloading all the records 
>>> that the WS2350 has recorded since the last time weewx was running ?
>>>
>>> Please let me know if I need to post any further information about my 
>>> weewx set up etc to help diagnose this,
>>>
>>> Thanks in advance for your help,
>>> Regards, Paul
>>>
>>>
>>>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to