Problem with Odometer not positioned on Rose gauge
Posted: Wed 24 Aug 2022 5:05 pm
I have made some changes to my steelseries gauges.js script, found at https://www.hosiene.co.uk/weather/lib/s ... /gauges.js. The changes were mainly in the "harmless" section at the top of the script (setting some of the gauges to not display). I also made some changes to the "here there be dragons" part of the script (starting at line 2998) which includes some further variables that are updated with each poll of realtimegauges.txt, for display on another page of mine that has a limited set of gauges.
My problem is that the odometer display doesn't appear within the wind rose gauge - it appears to the left of it - and the word "undefined" is written in the gauge in place of the odometer. You can see this at https://www.hosiene.co.uk/weather/gauges.htm, and the behaviour is the same on my other page.
Are there any javascript experts out there who might point me in the direction of what is going wrong? Functionally everything works as expected, save for the odometer position.
My problem is that the odometer display doesn't appear within the wind rose gauge - it appears to the left of it - and the word "undefined" is written in the gauge in place of the odometer. You can see this at https://www.hosiene.co.uk/weather/gauges.htm, and the behaviour is the same on my other page.
Are there any javascript experts out there who might point me in the direction of what is going wrong? Functionally everything works as expected, save for the odometer position.