Perhaps for a station that only has around 40 second updates, its not good for a davis that has 2.7 second updates and others that are similar.
Your wind appears to be every 40 seconds, if i remember right, the OS stations used to miss many wind gusts due to the long delay in updates but that was for the older WMR968, i only had the 200 for about a week, they may have changed it.
On the Davis console there is only 1 dial and that is current speed, having just looked at your WMR200, yours is the same, current speed, that will have lulls also? btw, you already have what youre suggesting for the dials in your Wind box shown as
Wind
(Avg last min)
3.3 mph
Gust
(Max last min)
4.6 mph
Those mimic your dial readings from what ive seen over the last 30 minutes on and off, i watched in continuous for 5 consecutive readings.
Your idea doesnt really include Davis as such as it will not reflect the stations current readings, i think thats the idead of the wind data on the dial for pws.
What i propose is that only#2 is used, i.e. just have the one wind on the dial, i.e.“Current” that makes much more sense than extending the update times and using an average and a max. Then have the Max Gust for the last, what 10 minutes is it? and Average 10 mniutes in the smaller boxes.
WMR200 anemo transmits every ~14 secs. Clientraw is updated every 20 secs but the wind block itself is only refreshed every 40 secs, so an average last minute wind sounds OK to me. I suppose you have set yours to refresh more frequently?
On the Davis console there is only 1 dial and that is current speed, having just looked at your WMR200, yours is the same, current speed, that will have lulls also?
WMR200 console dial is only for direction, windspeed readout can be toggled between average and gust. It sends both to WD.
Hi, yeah, mine transmits to WD every 2.7secs i think it is, so i have pws set to 2 seconds and it works very well
I have just changed mine to show only the current speed now, im not sure where to changed the heading of the main box though, i would like it to just say Wind
PS, I really like your smaller wind boxes, i would like them if possible, or at the very least how to add the, “Wind (Avg last min)”, please?
Yeah, i know, it should though really, i dont know of any that do.
Yeah, managed to get the Current speed on its own running, i feel that looks much better, makes more sense but i still cannot figure out how to add the “Wind (Avg last min)”, i thought about adding it to custom testtags but i dont know how to access that from inside the pws folder and get it to work with ajax heres where im at so far…
I have the new box, i just copied the wind 10 min avg and slipped it into the right column
Also theres the variable for the 10 min avg which is easy to change to 1 min brackets () below wont be included
$wind_speed_avg(_1m)
What i cant figure out yet is how to change the code for that variable of which i believe is this
Thank you for the help, i am wondering now if my clientraw even has the 1 minute average because i have added that line to the PWS_livedata.php and fiddled with the right column (copied another one and changed the variable) sadly sommats not working right caus ethe data isnt showing
In the block . ./wsWD2021/_test.php?test=wind_c_block.php there is an error
Notice: Undefined variable: wind_speed_avg_1m in
/home/breckland/public_html/pwsWD2021/wind_c_block.php on line 215
That line reads
.'
<b >'.$wind_speed_avg_1m.' '.$units_l.'</b>'
You are using inside the block a variable $wind_speed_avg_1m which is not initialized.
In the start of the block other variables are copied from the weather array into a 'local" variable.
we do that so that we not inadvertently modify a weather array item which could be used in a following block on the dashboard. or multiple times on the same block with f.i. a different unit.
You should either check and define $wind_speed_avg_1m f.i. below line 126
P.S. Again I had to go to your profile and read multiple post before i found the website you are discussing here.
Could you please add the pws-dashboard current version to your signature? Really helps to get answers.
Just noticed that you seem to be using $wd[1] for both one-minute average and current windspeeds. The second line should use $wd[2] for current windspeed - what used to be called “wind_gust_speed”. I thought that was the whole point of your change?
And what does the small max wind|gust block show now?
Sorry, i didnt know i had to change that, see, that’s how much i know about code :oops: its now changed but i cannot test atm due to lack of wind, its been 0 for the past 11hrs, hopefully it will start again later on but as I’m out this morning it may be lunchtime before i can get back to this.
I am however seeing an anomaly as per the image below, EDIT: (is that cause theres no wind atm?)
The signature image is now redirecting to my /pws2021 for ease of access on here.
You must have changed it before, I think it started life as $wd[2]
I am however seeing an anomaly as per the image below, [color=red]EDIT: (is that cause theres no wind atm?)[/color]
I think so. . .
P.S. What max gust are you trying to show on the large wind block: last hour or day? It looks like max for the day at the moment, because it agrees with the max gust in the small wind block.
I think it should be what it was before whatever that was, not got a clue, now you said it I’m not sure lol,
maybe last hour because there already is a max gust for the day at the top… I will have to look into that, thank you.
You and me both, so I can’t help with the wind zero problem
I think i got the gust last hour sorted now, i think... thank you :)
No, it’s still showing daily max because it was originally set up to show wind_gust_speed_max. The hourly max is now just wind_gust_speed in PWS_livedata.php. Simplest way to change this is back in line 124 of wind_c_block.php: change
Thanks, I have deffo messed sommat up cause the wind dial speed is stuck at around 17 atm and its the same on the simple page too so that’s got to be in the PWS_livedata.php cause I aint touched simple for a few days now, I am hoping I have left MS front page open so I can revert things and try again lol will give me sommat to do when I wake in the wee hours, I can never sleep through nowadays, wish me luck
That’s OK, you just need to change the middle area around line 195. See the last modification to my last post - we probably cross-posted
Simple uses wind_speed and wind_gust_speed, which used to be clientraw #1 and #2. But now you have clientraw #2 and #133 in PWS_livedata.php
$weather["wind_speed"] = convert_speed ($wd[2],$from,$to); #### 2021-10-12 $wd[2]; #### 2021-05-23 Current windspeed (kts)
$weather["wind_speed_avg"] = convert_speed ($wd[158],$from,$to); #### 2021-05-23 10 minute average windspeed (kts)
$weather["wind_gust_speed"] = convert_speed ($wd[133],$from,$to); #### 2021-10-12 $wd[133]; #### 2021-05-23 Max gust last hour
to suit your Dashboard wind block modifications, so your Simple gust is also stuck at max gust last hour. Just another reason why I think everyone should be using #1 instead of #2 for wind_speed and #140 instead of #133 for wind_gust_speed. . .
Thank you for the help, much appreciated, to make life simpler (pun unintended lol) i.e simple.php i have opted to use
[2] - current (gust) = wind_speed (used on main dial and simple.php old gust)
[133] - wind_gust_speed = max gust last hour
[158] - average wind = wind_speed_avg (is now used instead of what i initially thought (avg_min))
it looks better for me and ive sorted simple to ues the same ([2] & [158] although, im not 100% sure if [158] is last hour, 10 min or 1 min and now i’ve just noticed [113] wind_speed_max, whats that one, please? now im doubting myself lol. I deffo want just one on the main dial and thats got to be Current speed.
IMO, the word gust shouldnt be used on the dial itself more so because its confusing some or its not looking right for some, it should be used just for maximums, i.e. gust last… As mine is now (putting aside the side boxes for now lol), there is no confusion, the dial shows exactly what is going on at that currrent moment. Now thats not going to be ok for everyone due to different wind tx rates but for me with a Davis VP (tx @ 2.7’ish seconds) i think its perfect.
For the right side boxes, 1 is deffo gonna be max gust last hour because i already have max day, the other box should be max average last 10 mins (i think thats the officia rate), now i thought thats what [158] is until i saw [113], so now im not sure lol. With all the tablets im on it makes it far to easy for me to confuse myself, thats my excuse and sticking to it.
EDIT: Watching WD, it looks like [158] is the better option, so on that note, i think i am finally finished, thank you, again