Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: wx-watch on December 26, 2020, 01:50:22 PM

Title: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post 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..
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: Blicj11 on December 27, 2020, 12:36:52 AM
Looking good wx-watch.

What do you currently have in your gauges.js file on lines 291 through 294?

Do they look like this?
Code: [Select]
(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
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: wx-watch on December 27, 2020, 06:32:22 AM
Yes - exactly that
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: Blicj11 on December 27, 2020, 06:34:01 AM
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?
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: wx-watch on December 27, 2020, 08:00:31 AM
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!
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: wx-watch on December 28, 2020, 12:51:07 PM
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/
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: Steve on December 28, 2020, 04:56:37 PM
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.
Title: Re: No UV, Solar and Cloudbase pop up graphs Steel Gauges
Post by: Blicj11 on December 28, 2020, 05:17:01 PM
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.