First up let's deal with the changing gauges.js. The rtgd extension generates a loop based gauges-data.txt and optionally uploads this to your web server. rtgd knows nothing about gauges.js.
The SteelSeries Gauges extension generates an archive based gauge-data.txt plus it copies all of the SteelSeries gauges javascript/css etc (this includes a default gauges.js) required to render the gauges. The copying of the SteelSeries gauges javascript/css is done as a 'copy once' which means it is copied once on weeWX startup only (have a look in skins/ss/skin.conf under [CopyGenerator]). Assuming you have and upload report (FTP or rsync) uploading files to your web server then the SteelSeries Gauges extension generated gauges-data.txt is uploaded each archive period. Similarly the javascript/css is uploaded once on weeWX start up and then they are not uploaed again. So this is why it can be dangerous to edit gauges.js on your web server, if the SteelSeries Gauges extension is left active then gauges.js will be overwritten on the web server the next time weeWX is started. There are a number of solutions (1) make your changes to gauges.js in the skins/ss/scripts directory and then restart weeWX or (2) disable the SteelSeries gauges extension and make your changes to gauges.js on the web server. I cannot explain where realTimeUrlWeewx : '../gauges/gauge-data.txt', // *** WeeWX Users: Change to your location of the gauge data file *** came from, it should be realTimeUrlWeewx : '../gauge-data.txt', // *** WeeWX Users: Change to your location of the gauge data file *** as far as I can tell. If you have disabled the SteelSeries Gauges extension then you can safely edit gauges.js on your web server. Gary On Friday, 26 October 2018 12:48:01 UTC+10, Steve2Q wrote: > > Gary...the following two lines in gauges.js have me very confused: > > imgPathURL : '', // *** Change this to the relative path > for your 'Trend' graph images > > realTimeUrlWeewx : '../gauges/gauge-data.txt', // *** WeeWX > Users: Change to your location of the gauge data file *** > > I assume that the "Trend graph images" are those you can see if you hover > over a gauge? If so those are the ones that have not been updating and on > the web server the last ones are in /Weather/ss > > Regarding the second line '../gauges/gauge-data.txt there is no /gauges > directory on the web server or the weeWx machine. > > Does the gauges.js file on the webserver change to whatever the .js file > is on the weewx machine every time weeWx is stopped and restarted? > -- 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.
