I made a quick page that updates some data from the real time gauge using Ajax:
sinkingsensation.com/wind It takes some data from live_data.json (currently wspeed, wgust, bearing, domwinddir) and displays it, updating every 2 seconds. I'd like to add the highest gust of the day though, and I'm wondering if anyone can see an easy way to do that. In the reports, that would be $day.windGust.max. Also, would questions like this be better on the dev list? On Monday, March 20, 2017 at 11:41:49 AM UTC-7, Alec Bennett wrote: > > The short answer to your question is no, nothing like that exists at the >> moment. If you have your web server (or process that wil use >> gauge-data.txt) on your weeWX machine then it is a simple matter for the >> generated file to be saved wherever you want, but if you need to transfer >> the file in near realtime to another machine then no that capability does >> not exist at the moment. >> > > I added the ability to post live_data.json to a remote webserver, if > anyone needs the ability, it's here: > > https://github.com/wrybread/weewx-realtime_gauge-data > > It works by posting all the data it writes to live_data.json to a PHP > script on a remote webserver using a GET statement. Note the PHP script > here, that receives the data: > > > https://github.com/wrybread/weewx-realtime_gauge-data/tree/master/PHP%20Script > > If anyone wants me to convert it to Python for consistency, let me know. > > To use, set the following value in the RealtimeGaugeData section of your > weewx config file: > > remote_server_url = http://yourwebsite.com/path_to/receive_conditions.php > > It's my first time posting a fork to github, so please let me know if I > did anything dumb. And let me know if anyone wants me to change anything. > > > > > > -- 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 weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.