You need to specify the rsync parameters in the RealtimeGaugeData section of 
weewx.conf.  Are you doing that?  Perhaps send the RealtimeGaugeData section of 
weewx.conf so we can have a look.  From your previous emails, it isn’t clear 
that you have the parameters in the correct section.  I can tell you that this 
worked for me for a long time (in fact, I submitted the pull request for this 
functionality).

# Fill out the following fields:
#   rsync_server             : The server to which gauge-data.txt will be 
copied.
#   rsync_user               : The userid on rsync_server with write
#                              permission to rsync_remote_rtgd_dir.
#   rsync_remote_rtgd_dir    : The directory on rsync_server where
#                              gauge-data.txt will be copied.
#   rsync_compress           : True to compress the file before sending.
#                              Default is False.
#   rsync_log_success        : True to write success with timing messages to
#                              the log (for debugging).  Default is False.
#   rsync_ssh_options        : ssh options Default is '-o ConnectTimeout=1'
#                              (When connecting, time out in 1 second.)
#   rsync_timeout            : I/O timeout. Default is 1.  (When sending,
#                              timeout in 1 second.)
#   rsync_skip_if_older_than : Don't bother to rsync if greater than this
#                              number of seconds.  Default is 4.  (Skip this
#                              and move on to the next if this data is older
#                              than 4 seconds.

> On May 19, 2022, at 6:37 AM, [email protected] <[email protected]> 
> wrote:
> 
> Just to update
> Have a cron job working Ok with
> rsync -v /home/weewx/public_html/gauge-data.txt 
> [email protected]:/volume1/web/SheringhamDDNS so the key/passwordless is 
> working
> Changed
>  rsync_server = xxx.xxx.x.xxx
>  rsync_user = LushEr21
> And it still doesnt work
> If somebody has tried this and got it to work your ideas on why I cant get 
> rsync to work with RTGD would be most welcome
> Thanks 
> 
> 
> 
>> On Tuesday, May 17, 2022 at 12:00:44 PM UTC+1 [email protected] wrote:
>> Hi Guys
>> Ive tried and failed to get the rsync to work using realtimeguagedata
>> 
>> I never get passed gauge-data.txt file will not be exported.
>> Here is an extract of the log.
>> May 17 11:38:34 raspberrypi weewx-weewx[352] INFO user.rtgd: version is 0.5.5
>> May 17 11:38:34 raspberrypi weewx-weewx[352] INFO user.rtgd: 
>> RealTimeGaugeData scroller text will use a fixed string
>> May 17 11:38:34 raspberrypi weewx-tides[363] INFO weewx.engine: Using 
>> archive interval of 600 seconds (specified in weewx configuration)
>> May 17 11:38:34 raspberrypi weewx-weewx[352] INFO user.rtgd: gauge-data.txt 
>> will not be exported.
>> May 17 11:38:34 raspberrypi weewx-weewx[352] INFO user.rtgd: 
>> '/home/weewx/public_html/gauge-data.txt' will be generated. min_interval is 
>> 15 seconds
>> 
>> I have the following in the weewx.conf file
>>  rsync_server = SynLusher
>>   rsync_user = guest
>>   rsync_remote_rtgd_dir = /volume1/web/SheringhamDDNS
>>    rsync_log_success = True
>> 
>> weewx is version 4.5.1
>> 
>> The HTTP POST is not being used.
>> 
>> I have set debug = 0, 1, 2 and 3 to try and find where it might be failing 
>> but its always the same.
>> The server is a Synology NAS and I can copy from the rasberry pi to the 
>> rtgd_dir OK
>> Just wondered if its possible to get more logs so give me a clue to where is 
>> failing
>> Thanks
>> Phil
>> 
>> 
> 
> -- 
> 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/39fff649-3aa4-4a7b-aab5-cd6628080faen%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/A7DAC9D4-D175-4337-98A7-04C60B2061A2%40johnkline.com.

Reply via email to