Open2300 - Gust Patch

Gust Patch


I have a patch to report gusts on wu2300 but there's no way that i can see to attach it to the site.

Description of Patch

Installation of Patch

Put the patch text in a text file

Put it in the source directory of open2300

Run patch < patch-filename


Change History of Patch


*** wu2300.c   2005-03-05 21:28:35.000000000 +1300
--- wu2300.c.1   2005-09-21 15:11:36.000000000 +1200
*** 9,14 ****
--- 9,15 ----
  #define DEBUG 0  // wu2300 stops writing to standard out if setting this to 0
+ #define GUST  1  // report wind gust information (resets wind min/max)
  #include "rw2300.h"
*** 74,79 ****
--- 75,89 ----
     sprintf(urlline,"%s&winddir=%.1f",   urlline, tempfloat);
+    /* READ WIND GUST - miles/hour for Weather Underground */
+    if (GUST)
+    {
+       sprintf(urlline,"%s&windgustmph=%.2f", urlline,
+          wind_minmax(ws2300, MILES_PER_HOUR, NULL, NULL, NULL, NULL));
+    }
     /* READ RAIN 1H - inches for Weather Underground */
     sprintf(urlline,"%s&rainin=%.2f", urlline, rain_1h(ws2300, INCHES) );
*** 109,114 ****
--- 119,130 ----
+    /* Reset minimum and maximum wind readings if reporting gusts */
+    if (GUST)
+    {
+       wind_reset(ws2300, RESET_MIN + RESET_MAX);
+    }

-- MatthewHunt - 21 Sep 2005

Discussion and Comments

At the bottom of this page (and any page on this wiki) there is a "Attach image or document" link. You can attach all the documents you want to the patch topic. The idea is that you fill out the patch topic as suggested by the default headlines and attach the patch file.

Code sniplets and small patches can also be simply copy pasted but then you have to enclose the text inside <VERBATIM> and </VERBATIM> tags. Then TWiki will not translate anything.

There is plenty of documentation on how to use Twiki - also small beginners tutorials that you can run through in a few minutes. See TWiki

-- KennethLavrsen - 24 Sep 2005

Thanks for sorting that out for me, Kenneth. I was a bit frustrated with it at the time.

-- MatthewHunt - 04 Oct 2005

Hi, I was wondering which models should support this gust function. I am using WS-2317 which seems similar in function to the WS-2310. I ran the patch and recompiled. When the data is uploaded to Weather Underground, I see the series of new green dots representing gust, however they are all saying 25 MPH, while the actual wind speed never went over 5 MPH that day. I was under the impression that the gust patch records and then resets the peak or something like that. Any advice is appreciated. Thanks, John

-- JohnCirillo - 19 Jul 2006

I have included this patch in my 1.11 sources.

Thanks for the contribution. John, it should work if the station has min/max for wind.

-- KennethLavrsen - 19 Jul 2006

Hi. The problem seems to be that the 2310/2315/2317 do not have a max/min for wind. According to the online maunals at LaCrosse, those models mention max/min for some kinds of data but no mention of max/min for wind speed. So I guess I'm out of luck in recording gusts. Does anyone have a list of which models support this? If this patch is going to be included in an open2300 release, probably the user should be alerted to find out if their model supports this before building it in. I assume you will have an option to include/exclude this feature. Thanks,


-- JohnCirillo - 30 Jul 2006

My 2315 has max wind. I believe they all have that. At least in the data inside.

-- KennethLavrsen - 19 Jul 2007
Topic revision: r8 - 19 Jul 2007, KennethLavrsen
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.