On Tuesday, February 14, 2017 at 3:13:05 AM UTC-5, tempus wrote:
>
> Thanks for letting me know about that.
>
> I have a Vantage Pro2 Plus interfaced to weewx 3.6.2 via a USB 
> data-logger.  SteelSeries Weather Gauges 2.5.18 was already installed with 
> the following 'gauges.js' settings:
>
>   weatherProgram : 6,
>   realTimeUrlWeewx : 'gauge-data.txt',
>
> The gauges updated normally at five-minute intervals with that 
> configuration.
>
> After seeing your post I installed 'weewx-crt-0.18.tgz' and modified 
> 'weewx.conf' to create a realtime.txt file in the /ss/ directory of a test 
> website, like this:
>
> [CumulusRealTime]
>    filename = /var/www/www.domain.com/ss/realtime.txt
>    unit_system = US
>    binding = loop
>
> When I restarted weewx a 'realtime.txt' file that appeared to contain 
> valid data was being written to the /ss/ directory at about three second 
> intervals, as expected.  That file can be remotely loaded in web browser, 
> so the Apache web server obviously has read-access.
>
> I then modified '/etc/weewx/skins/ss/scripts/gauges.js' by setting:
>
>     weatherProgram : 0,
>     realTimeUrlCumulus : 'realtime.txt',
>
> and deleted gauges.js at the website, so it would be replaced by the 
> modified version after weewx was restarted.
>
> A few minutes after restart I first verified that the modified 'gauges.js' 
> file had been copied to the website and then loaded the gauges webpage in a 
> web browser.  The gauges displayed, but had no data. Temperatures were -20 
> degrees, Pressure was 990, and everything else was zero.  
> '/ss/realtime.txt' still existed and was still updating at about 
> three-second intervals, but data in that file wasn't making it to the 
> gauges.
>
> The Apache access.log has '/ss/realtime.txt' successful access records at 
> about three-second intervals whenever the gauges webpage is loaded in a web 
> browser, so the file is being successfully accessed by webpage JavaScript 
> code, but data in the file has no effect on any of the gauges.
>
> Is the Cumulus-style 'realtime.txt' file produced by weewx-crt-0.18 known 
> to be compatible with SteelSeries Weather Gauges 2.5.18?
>>
>>
>>
bob, 

i misled you, but all is not lost.  the implementation got finished in my 
head, but not in the code :/

please try the attached crt-0.20rc1.py

just put it in place of your existing user/crt.py

you will need to add this to your weewx config:

[CumulusRealTime]
    ...
    realtimegauges_txt = /var/www/www.domain.com/ss/realtimegaugesT.txt

and in /etc/weewx/skins/ss/scripts/gauges.js reset the cumulus url to:

    realTimeUrlCumulus : 'realtimegaugesT.txt'

this implements many of the gauges fields, but not all of them.  the 
remaining ones can easily be added, but it was not clear to me whether that 
should be done using local running avg/min/max or repeated database 
queries.  you're welcome to hack on it until i have time to finish it up!

m

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

Reply via email to