[Xastir-dev] WX input addition?

Curt, WE7U archer at eskimo.com
Thu Jan 15 16:50:25 EST 2004


On Thu, 15 Jan 2004, Bennett, Bruce wrote:

> I have a working version of Davis weather station input to xastir running at
> the moment
> (see http://wx.findu.com/KB8ROP ), set up as proposed (meteo data used).

Cool!  For me, it's just one more tickmark to add to the chart, but
for those people with Davis units, its really good news!  (Maybe I
should tell everyone that I work for ham/weather hardware, and
refuse to do code mods until paid.  hi hi).


> I have a couple of clarifications needed about intent with regards to the
> weather data structure
> "WeatherRow". Am I correct in my assumption that wx_rain_total is to be fed
> from the weather
> station data, and the remaining wx_rain, wx_prec_00 and wx_prec_24
> calculated by xastir in
> cycle_weather() ?  It's tough to test the rain gauge in our current weather
> :)

I believe that is correct.  You need an incrementing counter for the
rain total, and the rest is computed for you.  I wrote part of that,
but quite a while back.


> My second question is about missing values - should I fill the string with
> '\0' as I am now, or is
> "000" a better choice?

Whatever the current stuff uses.  I think most of the weather stuff
is saved as strings.  '\0' is an empty string, and should be what we
use for everything if a value is unknown.  "000" can represent a
real value.  I haven't looked at the code recently, but there should
be many examples there to draw from.


> Finally, is there anyone other than me with a Davis Weather station
> interested in helping me
> do early testing? Modification to xastir is small; only wx.c, db.h and
> language-<YourLangHere>.sys
> are modified.

If you'd like to get it into the CVS sources, and it is an addition
to the current weather code rather than changing anything (so that
the other types of weather hardware continue to work), I'd be glad
to put it in.  If the mods might affect other weather hardware, I'd
still be glad to look at it to determine the impact.

-----------------------------------------------------------------
Curt, WE7U			    archer at eskimo dot com
Arlington, WA, USA		http://www.eskimo.com/~archer
"Lotto:    A tax on people who are bad at math." -- unknown
"Windows:  Microsoft's tax on computer illiterates." -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"




More information about the Xastir-dev mailing list