Trixology
WeatherCat => WeatherCat Web Templates => Topic started by: wx-watch on December 26, 2020, 01:50:22 PM
-
I have just set up Steel Gauges on my Website and it is mostly working ok!
My site is https://www.wx-watch.co.uk and the gauges can be accessed directly at https://wx-watch.co.uk/weathercat/custom/steel/gauges-ss-basic.htm
All seems fine apart from the pop graphs from the bottom three dials, namely UV, Solar and Cloudbase.
I think to get these working I have to edit lines 280 onwards in the gauges.js file but I am not sure what to edit them to!!
Many thanks..
-
Looking good wx-watch.
What do you currently have in your gauges.js file on lines 291 through 294?
Do they look like this?
(config.showUvGauge ? 'uv1.jpg' : null), // UV graph if UV sensor is present | =null if no UV sensor
(config.showSolarGauge ? 'solarrad1.jpg' : null), // Solar rad graph if Solar sensor is present | Solar =null if no Solar sensor
(config.showRoseGauge ? 'winddirection1.jpg' : null),// Wind direction if Rose is enabled | =null if Rose is disabled
(config.showCloudGauge ? 'cloudbase1.jpg' : null) // Pressure for cloud height | =null if Cloud Height is disabled
-
Yes - exactly that
-
Are those three graphs (uvi1.jpg, solarrad1.jpg, and cloudbase1.jpg) present in your WeatherCat custom web directory, along with the graphs that are showing up on your other gauges?
-
Yes - all three are there and looking at my website all three are being uploaded to the /wxwatch/weathercat/custom directory.
The SteelSeries gauges are installed in /wxwatch/weathercat/custom/steel
Thus
https://wx-watch.co.uk/weathercat/custom/uv1.jpg
https://wx-watch.co.uk/weathercat/custom/solarrad1.jpg
https://wx-watch.co.uk/weathercat/custom/cloudbase1.jpg
I don't know if it makes any difference but I had to modify my file realtimegaugesWC.txt by adding the following to the start of the file to get it to work - like this
DOTSEPARATORS${"date":"de$",
"timeUTC":"DUTC$",
"SensorContactLost":"COMMSFAILFLAG$",
And for further information I altered line 71 of gauges.js to read realTimeUrlWC : '../realtimegaugesWC.txt',
and line 38 to read imgPathURL : '../../', to make the other popup graphs work
Looking at my website directory structure it seems the .jpg files related to all the other gauges are in /wxwatch/weathercat/ but the bottom three (the ones that will not display) are in /wxwatch/weathercat/custom/
I must have messed something up (obviously!!) but I know not what!
-
Final post on this matter - got it sorted (to my satisfaction) by adding config.showPopupGraphs = false; in the WeatherCat config section. Now no popup graphs at all, just popup info !!!
https://wx-watch.co.uk/weathercat/custom/steel/
-
Now no popup graphs at all, just popup info !!!
Oh! I like that! I never look at the graphs, anyway. Who knows what my (very few) viewers like, but I might make this switch on mine.
-
Glad you found an acceptable solution, but I'm still puzzled as to why three of your graphs were in a different directory.
And like Steve, I didn't realize data without the graph was an option. Thanks for sharing that with us.