Thanks for your feedback!
Then i will try that also in the near future.
plinepa

[email protected] schrieb am Sonntag, 7. Februar 2021 um 15:48:32 UTC+1:

> Thanks for pointing this out.  It looks like it is working for me.  I 
> switched over to systemd control of weewx following the directions in the 
> Wiki: systemd <https://github.com/weewx/weewx/wiki/systemd>,  and I had 
> to enable the systemd-time-wait-sync service on my Pi: ($sudo systemctl 
> enable systemd-time-wait-sync).  I shut down my Pi and turned off my 
> network, waited a few minutes, booted the Pi without the network, waited 
> another couple of minutes, then turned on the network.  The log shows Weewx 
> did not start until the time was updated to the correct time.  Partial log 
> attached.
>
> One new message I haven't seen before:
> Feb  7 07:56:27 raspberrypi2 systemd[1]: weewx.service: Supervising 
> process 598 which is not our child. We'll most likely not notice when it 
> exits.
>
> I am on Raspbian GNU/Linux 10 (buster).  Weewx is about the only real work 
> my Pi does.  I guess there is a question about holding up other processes 
> too when you enable time-wait-sync.
>
> I did omit the Requires=time-sync.target command in the service file based 
> on the comment in the Stackexchange link ("...use After= but don't "Pull it 
> in".).
>
> Walt
> On Thursday, February 4, 2021 at 7:21:16 AM UTC-6 [email protected] 
> wrote:
>
>> Hello!
>>
>> I am about to install weewx on a Raspberry Pi 4.
>> The Raspberry has no RTC, but synchronization using systemd-timesyncd
>>
>> A note on the delayed start of weewx after timesync is stored in the wiki.
>>
>> <note>
>> Added 25-Nov-2019. 
>> The article How can I delay the startup of systemd services until the 
>> datetime is set 
>> (no RTC on the Raspberry Pi) has some very useful hints on a more elegant 
>> solution
>>
>> https://raspberrypi.stackexchange.com/questions/94635/how-can-i-delay-the-startup-of-systemd-services-until-the-datetime-is-set-no-rt
>> </note>
>>
>> Does anyone have that going?
>> Is it stable and reliable with this method to delay the start of weewx to 
>> avoid incorrect timestamps?
>>
>> Thank you for your answers
>> Pline
>
>

-- 
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/fb8b6aa1-51e4-4fb8-bcd8-8ff1c20a13e7n%40googlegroups.com.

Reply via email to