I suppose that one could consider rain to be 100% humidity.   8-}

Maybe you could put a conditional so that if there's no rain, it would display 
humidity?

Cheers,
Kurt
 
On Oct 25, 2010, at 1:59 AM, Ray Wells wrote:

> Success.
> 
> I'm now displaying 24 hour rainfall in mm to one decimal place in the place 
> previously occupied by humidity.
> 
> Ray vk2tv
> 
> On 25/10/10 16:30, Ray Wells wrote:
>> Ok, I was on the right track with my alteration to db.c and, my weather 
>> stations now display rainfall instead of humidity - R:2.0mm.
>> 
>> I now have to figure out why the reading is about 4 times actual rainfall.
>> 
>> Back to the drawing board.
>> 
>> Ray vk2tv
>> 
>> On 25/10/10 08:46, Ray Wells wrote:
>>> Dave/All,
>>> 
>>> wview is not suited to my need to display 8 wx stations on a regional map.
>>> 
>>> 
>>> I've been poking around in db.c an found what appears to be the code to 
>>> display Humidity. The variable wx_prec_24 appears to be daily rainfall so, 
>>> substituting for wx_hum and, converting to mm (on the assumption that 
>>> imperial is used), I end up with the following from line 2825 in db.c
>>> 
>>> if (!Display_.temperature_only) {
>>>            if (strlen(weather->wx_prec_24) > 0) {
>>>                xastir_snprintf(wx_tm, sizeof(wx_tm), "R:%.1fmm", 
>>> atof(weather->wx_prec_24)*25.4);
>>>                strncat(temp_wx_temp,
>>>                    wx_tm,
>>>                    sizeof(temp_wx_temp) - 1 - strlen(temp_wx_temp));
>>>            }
>>> 
>>> Would anybody care to comment about this proposed alteration to db.c to 
>>> display 24 hour Rain (R) in lieu of Humidity?
>>> 
>>> Ray vk2tv
>>> 
>>> On 25/10/10 03:23, Ray Wells wrote:
>>>> Dave,
>>>> 
>>>> Thanks for the thought.
>>>> 
>>>> It's currently 3 am and I'm not in thinking mode. I will take a look at 
>>>> wview at a sensible hour.
>>>> 
>>>> Yes, I do run Linux - Mint 9 KDE on a couple of machines at home and 
>>>> Debian v4.0 at the radio station and for my aprs gateway at home. V4 is a 
>>>> bit old but it isn't broken.
>>>> 
>>>> Ray vk2tv
>>>> 
>>>> On 25/10/10 01:47, David A Aitcheson wrote:
>>>>> Ray,
>>>>> 
>>>>> Most of the work may be done for you already!
>>>>> 
>>>>> Have a look at http://www.linuxjournal.com/article/10782
>>>>> 
>>>>> If you are running Xastir then you are running Linux and wview is a
>>>>> Linux program.
>>>>> 
>>>>> Wview reads CWOP data here in the US so it should be able to read BM
>>>>> data in AUS.
>>>>> 
>>>>> Just a suggestion that might be of use.
>>>>> 
>>>>> Anyone else have a better idea?
>>>>> 
>>>>> 73
>>>>> Dave
>>>>> KB3EFS
>>>>> 
>>>>> On 10/24/2010 01:55 AM, Ray Wells wrote:
>>>>>> I'm after some direction.
>>>>>> 
>>>>>> I run xastir in the studio at the local community (public) radio
>>>>>> station, to provide weather details at regional airports. Xastir runs
>>>>>> under the stations AR Club callsign of VK2WET. Look here to find out
>>>>>> why it's VK2WET - www.tankfm.org
>>>>>> 
>>>>>> I'd like to be able to display total daily rainfall, as available at
>>>>>> the airport sites from our Bureau of Meteorology either, in addition
>>>>>> to the existing displayed items or, as a replacement for humidity. I'm
>>>>>> not a programmer but I'm not adverse to 'having a go" if some kind
>>>>>> soul can point me in the right direction.
>>>>>> 
>>>>>> Ray vk2tv
>>>> 
>>>> _______________________________________________
>>>> Xastir mailing list
>>>> [email protected]
>>>> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
>>>> 
>>> 
>>> _______________________________________________
>>> Xastir mailing list
>>> [email protected]
>>> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
>>> 
>> 
>> _______________________________________________
>> Xastir mailing list
>> [email protected]
>> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir
>> 
> 
> _______________________________________________
> Xastir mailing list
> [email protected]
> http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

---
Kurt A. Freiberger     Austin, TX       [email protected]
Amateur Radio Callsign WB5BBW           AIM Handle: WB5BBW
"Some people are like Slinkys - Generally considered useless, but
you can't help smiling when you see them falling down the stairs."

_______________________________________________
Xastir mailing list
[email protected]
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to