[Xastir] Davis weather not posting rain totals properly (Curt, WE7U)

Tom Russo russo at bogodyn.org
Tue May 8 14:04:50 EDT 2012


On Tue, May 08, 2012 at 11:44:21AM -0600, we recorded a bogon-computron collision of the <russo at bogodyn.org> flavor, containing:
> Please try enabling debug level 1 (File->Configure->Change Debug Level)
> and watching for the following debug output in your terminal window (this
> assumes you're launching Xastir from a command line window not a desktop
> shortcut, so that Xastir's output will show up somewhere):
> 
>               if (debug_level & 1)
>                 fprintf(stdout,"Davis APRS DataLogger Decode: wd-%s,ws-%s,wg-%s,t-%s,rh-%s,rt-%s,h-%s,ap-%s,station-%s\n",
>                         
>                         weather->wx_course,weather->wx_speed,weather->wx_gust,
>                         weather->wx_temp, weather->wx_rain,
>                         weather->wx_rain_total,weather->wx_hum,weather->wx_baro,
>                         weather->wx_station);

Sigh.  This debug output was copied from a different bit of wx.c, and 
clearly doesn't output all the data that was decoded from a data-logger
string.  The output command begins at line  2942 of wx.c.

Please modify the line this way:
                  fprintf(stdout,"Davis APRS DataLogger Decode: wd-%s,ws-%s,wg-%s,t-%s,rh-%s,rp-%s,rP-%s,rt-%s,h-%s,ap-%s,station-%s\n",
                        weather->wx_course,weather->wx_speed,weather->wx_gust,
                        weather->wx_temp, weather->wx_rain,weather->wx_prec_24,
			weather->wx_prec_00,
                        weather->wx_rain_total,weather->wx_hum,weather->wx_baro,
                        weather->wx_station);

This will add the decoded bits of "pXXX" and "PXXX" to the debug output.

If you're running a CVS version of Xastir, you can just do a cvs update,
as I've just committed that change so that this mistake in debug output
is no longer present.

-- 
Tom Russo    KM5VY   SAR502   DM64ux          http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236        http://kevan.org/brain.cgi?DDTNM
"And, isn't sanity really just a one-trick pony anyway? I mean all you get is
 one trick, rational thinking, but when you're good and crazy, oooh, oooh,
 oooh, the sky is the limit!"  --- The Tick




More information about the Xastir mailing list