Hi, Short of going to Mark Crossley the SteelSeries Weather Gauges author and asking him directly (which I am sure he would answer, I have found him very approachable), there is no definitive definition of what the WindRoseData field is to contain. We can deduce a few things about it from various sources.
1. the field should contain a comma separated list of 8 or 16 numbers (corresponding to the 8 ordinal points of a compass or the 16 points of a wind compass). Whether you can use a different number ofvalues I don't know (eg 4 if you only want the cardinal points or 5 if you live in a pentary world) 2. the first number is the 'North' value, the others progressively move around the compass in a clockwise direction 3. the WindRoseData numbers appear to be normalised before plotting (ie the absolute value of the numbers is not important rather it is the relative proprtions that are important) 4. Cumulus has a #WindRoseData# webtag that is descibed in the Cumulus wiki <http://wiki.sandaysoft.com/a/Webtags#Miscellaneous> as "A comma-separated list of the wind 'totals' used to draw the wind rose (8 or 16 values)". (The developer of the SteelSeries Weather Gauges is a Cumulus user and that is where you will find a lot of SteelSeries Weather Gauges info). I have not found anything that defines what "wind 'totals'" are, is it the number of windDir samples that fall in the respective arc, are these weighted with windSpeed etc. I have taken it to be the windSpeed weighted count of windDir falling in the sector concerned. It is fairly easy to generate a query on the weeWX archive that will give the raw data and a little bit of python can then be used to fashion the raw data into a WindRoseData list. You can see what I have done if you look at calc_windrose() function in rtgd.py here <https://github.com/gjr80/weewx-realtime_gauge-data/blob/master/bin/user/rtgd.py> . Gary On Wednesday, 15 March 2017 08:26:27 UTC+10, Robert Mantel wrote: > > I'm looking to create a python script to generate my own wind rose data > using json queries from my phant server which stores the raw sensor data > from my station. My question is, what format is the WindRoseData=[] line > looking for? Is it just populating a list, is it in pairs of wind > direction and speed? I'm having a hard time figuring this out from the > gauges.js script. > -- 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.
