[Xastir] Xastir + One Wire Weather (OWW)

Hiroshi Iwamoto sx7h-iwmt at asahi-net.or.jp
Thu Nov 3 04:37:46 EDT 2011


Hi Phil.

(2011/10/28 12:33), Phil - w2lie wrote:
 > I'm sending the Barometer with 1 decimal place
 > where the current Humidity should be.

I gotcha!

Try this. I left 1 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]) :
                          0.0F,
     wd->RH[0],  /* Humidity in % */
     wd->barom[0]/33.864 /* Barometer in inHg */
                          );

I'm using oww 0.82.2. but this should work at the lastest version.

-- 
de JH4XSY/1, Hiroshi Iwamoto
    sx7h-iwmt (at) asahi-net.or.jp      http://jh4xsy.ddo.jp:8080/



More information about the Xastir mailing list