Tom,

What you are seeing is a combination of things. Firstly, RTGD is generating 
and saving gauge-data.txt on your WeeWX machine. The rtgd_path and 
rtgd_file_name settings determine the location and name of this file. In 
your case RTGD saves the file to /home/weewx/public_html/gauge-data.txt. 
This file is updated every loop period. Since you have remote_server_url 
set RTGD uses this setting to try to http post the gauge-data.txt contents 
to a remote machine, in your case your web server. The location of the file 
created on your web server is a combination of the location of 
post_gauge-data.php on your web server and the $json_file variable in 
post_gauge-data.php. In your case post_gauge-data.php is located in weewx/ss 
and unless you have changed it $json_file will be set to './gauge-data.txt'. 
So when you put all this together post_gauge-data.php saves the contents to 
weewx/ss/gauge-data.txt on your web server. This file will be updated every 
loop period.

The SteelSeries skin is not generating gauge-data.txt at all. The copy of 
gauge-data.txt that you see in the weewx directory on your web server is  
most likely the copy that is being saved to /home/weewx/public_html on your 
WeeWX server. What is happening is that the FTP/Rsync that you use to 
upload your website files to your web server is picking up this 
/home/wee/public_html/gauge-data.txt and transferring it to your web server 
via FTP/Rsync along with the rest of your web site files. Whilst this file 
is generated every loop period on your WeeWX machine, it is only uploaded 
to your web server on completion of every archive period and hence it only 
changes on your web server every 5 minutes.

So what you see is expected for your settings. I guess the unasked question 
is how to eliminate the confusion and have only one copy of gauge-data.txt 
appear on your web server. Well I could alter RTGD so that you can 
optionally turn off the local (to the WeeWX machine) saving of 
gauge-data.txt and that way there would be no file to upload via FTP/Rsync 
so that would get rid of the copy in the weewx directory of your web 
server. I will look at doing that. Alternatively you could alter your 
FTP/Rsync settings so that gauge-data.txt is not uploaded via FTP/Rsync. 
But that would require a bit of messing around with FTP/Rsync settings and 
possibly upset the upload of your other website files. Thirdly, and 
probably the easiest, is for you to change the rtgd_path setting to put 
gauge-data.txt in some directory that will not cause it to be uploaded to 
your web server. Something like this would do the trick:

[RealtimeGaugeData]
    date_format = %Y.%m.%d %H:%M
    rtgd_path = /var/tmp

This will put gauge-data.txt in /var/tmp on your WeeWX machine, well out of 
the way of any FTP/Rsync. You would need to do a config reload or restart 
WeeWX after this change.

Of course the 4th option is to leave it as it is, it is not causing any ill 
effect other than confusion.

Gary

On Tuesday, 22 January 2019 09:39:18 UTC+10, [email protected] wrote:
>
> I'm a little confused which is nothing new.  I have RTGD configured as
>
> [RealtimeGaugeData]
>     date_format = %Y.%m.%d %H:%M
>     rtgd_path = /home/weewx/public_html
>     scroller_source = WU
>     remote_server_url = http://www.XXX.com/weewx/ss/post_gauge-data.php
>     rtgd_file_name = gauge-data.txt
>
> In my skin.com for ss is have
>
> [CheetahGenerator]
>    # search_list_extensions = user.forecast.ForecastVariables
>     encoding = html_entities
>     [[ToDate]]
>         [[[index]]]
>             template = index.html.tmpl
>       #  [[[data]]]
>        #     template = gauge-data.txt.tmpl
>
> I am getting the gauge-data.txt file created in the weewx/ss folder on my 
> web site every loop but I am also getting the gauge-data.txt file upload to 
> my weex folder at each archive interval.  I thought by commenting out the 
> two lines in the ss skin that would prevent one file from being created.  I 
> thought the loop file, created by RTGD, would go in the weex directory but 
> it seems as though it is in my ss directory since the ss directory is being 
> updated every loop.
>
> When I look at my public_html folder on my Raspi I see the gauge-data.txt 
> file in the root (weewx/public_html) but do not see the file in the 
> weewx/public_html/ss folder.
>
> So why am I getting two files and why is the loop going into the ss folder?
>
> Tom
>
>
>
>
>

-- 
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