This php file is then used by the steel gauges to fetch the realtime data every 15secs ...
I have also tried to use Bootstrap with this page for dynamic layout depending upon the rendering device.
And I did something similar since our requirement as a sailing club was for the wind to be current. So I wrote a service that pushes the wind information out on every loop packet as a cut down customclientraw.txt and then left the full one being generated every minute on the archive interval.
This is displayed locally in the clubhouse and we have limited bandwidth to our external web server from there so I’ve extended the normal upload service so different jobs can use cron like control for when they run. So I upload the cutdown customclientraw every minute and the full one and graphs every 15 minutes and then upload a backup of the archive database once a day.
So I cant send you a link to the local site but the external one which combines the steel series gauges with the normal weewx graphs & data is at http://thornburysc.org.uk/index.php/about-the-club/live-weather/weewx/ . Doing this I have managed to avoid needing any server side code as well.
John
--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gary
not much to see that is different to Luc's and Lloyd's, one set of updating steel series gauges looks much the same as another :-)
Gary
--
You received this message because you are subscribed to a topic in the Google Groups "Weewx user's group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/NSxqel5kbZU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
--
Luc,My php file is simply requested by the steel gauges java script every 15 seconds, rather than the normal approach of requesting customclientdraw.txt. This effectively generates the same response as when requesting customclientdraw.txt, but the output is generated dynamically, on the server. So when the gauges js makes the request, the php file will run sql queries against the raw database for the rapidly changing data. So, for example, I can determine average wind over the last 10 minutes, max/min since midnight, windrose data over the past 24 hours etc.The use of the raw table works really well for me, because I collect from each sensor individually when they transmit, so I have all readings to query over. My only limit is the slow update of some sensors (and does this really matter, its only wind that is truly dynamic?).
This is the template file. A few words of warning - I never polish my code, and I know very little php - so it could be terribly inefficient. Anyway, any questions, please feel free to ask.
Hi LucGlad you got it working. I did try and do away with the template file, and query the two databases (I think there are some remnants left in the file), but I see to remember having an issue, and being concerned with how long the archive data might be locked for (and hence prevent weewx from writing to it).Lloyd
Hi Luc
Have you timed how long your queries are taking? We have very different hardware, but would still be interested to know how long it takes.
Lloyd
Hi LloydJust noticed the meso sync's stopped yesterday at 20:10 local time.. The log history is already overwritten, so I don't know the reason.