[Xastir] Xastir + One Wire Weather (OWW)
Dana Borgman
ka1wpm at arrl.net
Sat Oct 29 13:16:15 EDT 2011
On Thu, 2011-10-27 at 23:33 -0400, Phil - w2lie wrote:
>
> I started digging and found wx.c in the Xastir Source
> file.
> Scrolling down, I found the 1-wire info...
>
> // The format of the
> data originates here:
> // http://weather.henriksens.net/
>
> // tmp1:
> primary temp (C)
> // tmp2: temp max (C)
> // tmp3: temp min (C)
> // tmp4:
> anemometer (mps)
> // tmp5: anemometer gust (peak speed MS)
> // tmp6:
> anemometer speed max * 0.447040972 (max speed MS)
> // tmp7: vane bearing
> - 1 (current wind direction)
> // tmp8: vane mode (max dir)
> // tmp9:
> rain rate
> // tmp10: rain total today
> // tmp11: rain total week
> //
> tmp12: rain since month
> // tmp13: Current Humidity
> // tmp14: Max
> Humidity
> // tmp15: Min Humidity
> // tmp16: Current Barometer
> // tmp17:
> Max Barometer
> // tmp18: Min Barometer
> // tmp19: Barometer Rate
>
> OWW
> Sends:
>
> 3.8 12.5 3.8 1.5 4.4 7.3 14 12 0.000 0.730 0.730 0.730 29.7 0.0
> 0.0 0.0000 0.0 0.0 0.0
>
> Or Easier to read:
>
> // tmp1: primary temp (C) =
> 3.8
> // tmp2: temp max (C) = 12.5
> // tmp3: temp min (C) = 3.8
> //
> tmp4: anemometer (mps) = 1.5
> // tmp5: anemometer gust (peak speed MS)
> = 4.4
> // tmp6: anemometer speed max * 0.447040972 (max speed MS) = 7.3
>
> // tmp7: vane bearing - 1 (current wind direction)= 14
>
> // tmp8: vane
> mode (max dir) = 12
>
> // tmp9: rain rate = 0.000
>
> // tmp10: rain total
> today = 0.730
>
> // tmp11: rain total week = 0.730
> // tmp12: rain since
> month = 0.730
> // tmp13: Current Humidity = 29.7
> // tmp14: Max
> Humidity = 0.0
> // tmp15: Min Humidity = 0.0
> // tmp16: Current
> Barometer = 0.0000
> // tmp17: Max Barometer = 0.0
> // tmp18: Min
> Barometer = 0.0
> // tmp19: Barometer Rate = 0.0
>
> I'm sending the
> Barometer with 1 decimal place where the current Humidity should be. OWW
> Does not seem to be sending out the humidity values.
>
> Looks like OWW
> changed their format? Curt, how hard is it to juggle the Xastir side of
> the code? Simply rearranging the values up and down the [tmp] should fix
> the reading, correct?
>
> I also see you have comments in the source file
> for the rain guage / tipping bucket. What type of info did you need, or
> is that not required since it looks like the actual data is coming from
> the OWW daemon?
>
> 73
>
> ---
> Phil / w2lie
Phil,
A while back I found this hack for arne.c
It worked for me.
-- Dana, KA1WPM
**************************************************************************
Here is a dirty hack. arne.c around 292 line ...
sprintf(buffer,
"%2.1f %2.1f %2.1f %2.1f %2.1f %2.1f %d %d %3.3f %3.3f %3.3f %3.3f %2.1f
0.0 0.0 %4.4f 0.0 0.0 0.0\r\n",
...
(wd->rain >= 0.0F) ? 0.01F * (float)
(wd->rain_count - wd->rain_offset[7]) :
wd->RH[0], /* Humidity in % */
wd->barom[0]/33.864 /* Barometer in inHg */
);
Just filling humidity and barometer is enough.
More information about the Xastir
mailing list