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
<http://www.kq5s.com/weewx/ss>
you need
remote_sever_url = http://www.kq5s.com/weewx/ss/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].
For more options, visit https://groups.google.com/d/optout.