Mark, adding the code from the latest releases of the radar packages to the gauges script seems to 'break' something in the code - the problem seems to be located within the 'doWindRose' part of the code (although I am not sure where)!
I did now work on the code at all on Saturday - took the day off the SteelSeries and worked updating my Synology Diskstation NAS.
But Friday, after gradually adding the code from the radar 'gauges.js' script into the master 'gauges.js' script, I first noticed that the counter stopped; then, I finally got the wind rose gauge to display but the center portion of the gauge remained empty - I was unable to get any data to display at all.
If I run the radar 'gauges.js' script by itself (with the 'radar.html' script), the wind rose will display.
I have even converted the 'radar.html' to the PHP format, added some code to read and extract the data from my 'cumuluswebtags.php' script and to produce a variable called 'g_WindRoseData', such as:
Code: Select all
require_once("cumuluswebtags.php");
echo "<script>var g_WindRoseData = [];</script>;
echo "<script>var g_WindRoseData = [".$WindRoseData."];</script>;
The above code produces this:
Code: Select all
<script>var g_WindRoseData = [0.0,0.0,0.0,19.2,67.2,0.0,22.4,8.0,33.6,32.0,0.0,0.0,0.0,0.0,0.0,0.0];</script>
Then, in the radar 'gauges.js' script, I replace this line:
Code: Select all
data.WindRoseData = [5194.7,3408.6,2777.5,2820.4,3085.0,1455.6,514.1,316.0,145.2,145.2,301.4,668.3,1278.1,1994.8,3266.9,3663.6];
with this line:
Code: Select all
data.WindRoseData = g_WindRoseData;
and I have a similar display to the wind rose produced by Cumulus.
So, by itself, the radar code is working properly - but when the radar gauge script is added to the code of the master 'gauges.js' script, something gets 'broken' somewhere.
Note: I am using version 0.11.1 of the 'steelseries.js' script.