Whew. Got it. The full path did the trick. I did have the units=US in the wrong place. I had it in the RTGD file. I put it in the block where the instructions were. 😊 I initially missed the part of the instructions that said to copy the block to weewx.conf and thought you entered the data into rtgd.py. For some reason
Initially I did not copy ALL the data under the instructions in the py file to the weewx.conf file but obvioulsy it worked because of the defaults that are set. I have since copied all the data to the weex.conf file but need to do some more checking since the data file is not being uploaded. If I go back to my original file with just a few entries under the rtgd area things work fine. I mentioned earlier I started out using the instruction on https://github.com/gjr80/weewx-realtime_gauge-data before I discovered the instructions in the py file. I think that led to some confusion on my part. You might want to think about adding something to the web page to direct folks to the py file. Bottom line gauges are updating every 2 seconds by including the php name in the path. I can look at my David console and look at my web page and see the gauges changing to match the console. I know have to figure out why the config file with all the rtgd setting is not working. I'm sure I have just missed something. As always thanks a lot for the help! Tom ________________________________ From: [email protected] <[email protected]> on behalf of gjr80 <[email protected]> Sent: Monday, January 14, 2019 1:25 AM To: weewx-user Subject: Re: [weewx-user] Real Time Gauges (RTGD) for Steel Series Tom, Ok, good news on the http post front - it is a simple fix. The remote_server_url config option under [RealtimeGaugeData] needs to include the name of the php file that accepts the http post. So rather than: remote_server_url = http://www.kq5s.com/weewx/ss<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kq5s.com%2Fweewx%2Fss&data=02%7C01%7C%7C838b2c9138114a1deb2408d679f186a9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636830475577369484&sdata=EsaLpPCWb0ZlQXC3yYL3QiIFITh7ictlk71uRQfeNDs%3D&reserved=0> <https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kq5s.com%2Fweewx%2Fss&data=02%7C01%7C%7C838b2c9138114a1deb2408d679f186a9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636830475577369484&sdata=EsaLpPCWb0ZlQXC3yYL3QiIFITh7ictlk71uRQfeNDs%3D&reserved=0> you need remote_sever_url = http://www.kq5s.com/weewx/ss<https://nam01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kq5s.com%2Fweewx%2Fss&data=02%7C01%7C%7C838b2c9138114a1deb2408d679f186a9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636830475577369484&sdata=EsaLpPCWb0ZlQXC3yYL3QiIFITh7ictlk71uRQfeNDs%3D&reserved=0>/post_gauge-data.php You will need to save weewx.conf and do a config reload or restart weeWX for the change to take effect. It seems that if you hit the server without the php file name no error is thrown, I will need to see if there is something I can catch to at least log the error in the weeWX log. Not so good on the units. I just ran up a virtual machine installed weeWX 3.8.2 and rtgd 0.3.5 and setup WU and by default it displays a metric forecast. I set units = US under [RealtimeGaugeData] [[WU]] in weewx.conf, saved weewx.conf and restarted weeWX and it immediately downloaded a WU forecast and display US customary units. Can you confirm your placement of units = US, it should be similar to: # Options for extension 'Rtgd' [RealtimeGaugeData] date_format = %Y.%m.%d %H:%M scroller_source = WU rtgd_path = /home/weewx/public_html # Remote URL to which the gauge-data.txt data will be posted via HTTP POST. # Optional, omit to disable HTTP POST. remote_server_url = http://your.site.address.com/path/to/post_gauge-data.php # timeout in seconds for remote URL posts. Optional, default is 2 timeout = 1 # text returned from remote URL indicating success. Optional, default is no # response text. response_text = success [[Groups]] ... [[StringFormats]] ... [[WU]] api_key = abcdefghijklmnop units = US And of course you did restart weeWX? Gary On Monday, 14 January 2019 12:26:16 UTC+10, gjr80 wrote: No, no idea about the units. Will look at that as well. Gary -- 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]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Foptout&data=02%7C01%7C%7C838b2c9138114a1deb2408d679f186a9%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636830475577369484&sdata=EiffispSxboTX7cN%2BMfIgvgIshBwoeuoyRCMuBvXPAs%3D&reserved=0>. -- 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.
