BTW, this is the commit that moved the rsync parms (and, it looks like HTTP 
post parms) into a separate section:
https://github.com/gjr80/weewx-realtime_gauge-data/commit/534032cef8f1bfba45b90cf7ef939c16084a5b2e0

The README should probably change to match.


> On May 21, 2022, at 6:48 AM, John Kline <[email protected]> wrote:
> 
> 
> I believe the rsync_xxx entries need to be under an Rsync section:
> [RealtimeGaugeData]
> .
> .
> .
>   [Rsync]
>     rsync_server=xxx
>     Rsync_user=LushEr21
>     etc.
> 
> If that doesn’t work, I will install the extension and get it working.
> 
>>> On May 21, 2022, at 3:18 AM, [email protected] 
>>> <[email protected]> wrote:
>>> 
>> [RealtimeGaugeData]
>>     date_format = %Y.%m.%d %H:%M
>>     rtgd_path = /home/weewx/public_html
>>     min_interval = 15
>>     response_text = success
>>     rsync_server = xxx.xxx.x.xxx
>>     rsync_user = LushEr21
>>     rsync_remote_rtgd_dir = /volume1/web/SheringhamDDNS
>>     rsync_compress = False
>>     rsync_log_success = True
>>     rsync_ssh_options = "-o ConnectTimeout=1"
>>     rsync_timeout = 1
>>     rsync_skip_if_older_than = 4    
>> 
>> The key/passwordless to the server works with
>> rsync -v /home/weewx/public_html/gauge-data.txt 
>> [email protected]:/volume1/web/SheringhamDDNS so the key/passwordless 
>> so am assuming the above works
>> Thanks for your help
>> Phil
>> 
>> 
>>> On Thursday, May 19, 2022 at 4:27:56 PM UTC+1 [email protected] wrote:
>>> 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/a68f9075-80c3-4980-a3bc-e80f3dfb2ce1n%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/D665602F-4AE4-4A86-9E00-9C5256033631%40johnkline.com.

Reply via email to