Request to reflect day / nighttime in clientraw icons (15)

Discussion of the Meteohub software package

Moderator: Mattk

Sedrani
Junior Boarder
Junior Boarder
Posts: 23
Joined: Tue May 18, 2010 10:58 am

Re: Request to reflect day / nighttime in clientraw icons (1

Post by Sedrani »

It's hard for me to understand what type of data you need because I'm not a programmer.
Due to severity of the problem, I downgraded the firmware to 4.6p.

Mauro
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Request to reflect day / nighttime in clientraw icons (1

Post by admin »

I found errors in the translation tables posted in this forum. They wrong in some aspects.

I try to get help from Brian to understand how he generates current conditions on a vantage
as it is not reporting such a number. Can be, that WD computes that from weather values itself,
which would be hard to simulate by Meteohub. We 'll see...
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Request to reflect day / nighttime in clientraw icons (1

Post by YJB »

Hi Boris,

Not sure if this helps, but it seems that the current mapping is not working out properly.

(I'm using RFXCOM based WMR928):
actual_thb0_fc 1 (i believe this is cloudy ???)results in:
actual_thb0_fc_wdlive 2 during daytime
and
actual_thb0_fc_wdlive 5 during nighttime
Edzo1
Senior Boarder
Senior Boarder
Posts: 40
Joined: Sat Feb 14, 2009 5:16 pm
Location: Scituate, MA USA
Contact:

Re: Request to reflect day / nighttime in clientraw icons (1

Post by Edzo1 »

WX Station is OS WMR 200

YJB, I can confirm the first half of your readings below. Earlier today (10:47 am), my readings were fc1 (cloudy) and fc_wdl 2. Under normal circumstances, using the generally accepted clientraw icon array sequencing ...,
eg
0= imagesunny.visible
1= imageclearnight.visible
2= imagecloudy.visible
3= mainly fine (only a few clouds)
4= imagecloudynight.visible
etc., the fc_wdl 2 would be correct, reflecting a cloudy day. However, if you adopt the revised icon array table earlier in the thread, 2 indicates a "clear night"!

I think this thread thus far has been talking about the WDL weather icons in particular, but I (and presumably others) also use the clientraw data, and Forecast Icon Field (15) in other scripts too. There's a terrific Weather Graphic (PHP) script from the folks at http://scripts.anolecomputer.com/wxgraphic/, and it generally appears that if I set up the icon array according to the WD original sequencing mentioned above, the weather icons look correct during the day but incorrect during the night. And if I tweak the icon array to follow YJB's icon sequencing, the weather icons look correct during the night but incorrect during the day.

Forgive me if I'm stating the obvious or not being very clear. I'm not very knowledgeable in these matters but just wanted to provide some more feedback and add some more perspective for those that use Forecast Icon Field (15) in other scripts too. Thanks Boris, YJB, Sedrani and others who have been trying to solve this puzzle. Here is a snapshot of my weather graphic taken this am, with the conditions I mentioned above.
WXGraphic 10-12-10.png
WXGraphic 10-12-10.png (8.25 KiB) Viewed 5071 times
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Request to reflect day / nighttime in clientraw icons (1

Post by YJB »

Hi Boris,

Forgive me, I'm not asking for a programming course, but can you please explain me the syntax of your second code snippet called
"codes from above are used to generate wd live codes being reported at position 15 in clientraw.txt using this mapping"

The way I read for instance:
case FC_RAINY: return nightflag ? 5 : 20; // rain

When meteohub detects a forecast condition rainy (0) it will generate condition 5 for field 15 during the night and condition 20 for field 15 during the day?

Thanks for being patient
Edzo1
Senior Boarder
Senior Boarder
Posts: 40
Joined: Sat Feb 14, 2009 5:16 pm
Location: Scituate, MA USA
Contact:

Re: Request to reflect day / nighttime in clientraw icons (1

Post by Edzo1 »

Boris - it's only been a few days since the 4.6r update, but so far, the weather icons in my WX Graphic have been spot-on, both during the daytime and nighttime! :D I'll keep you posted as different weather conditions present themselves and how the weather icons appear. Hopefully, other people are having similar positive experiences. Thanks for all your help :!:

Ed
WXGraphic Night Rain10-27-10.png
WXGraphic Night Rain10-27-10.png (7.77 KiB) Viewed 5050 times
User avatar
YJB
Platinum Boarder
Platinum Boarder
Posts: 387
Joined: Thu Feb 19, 2009 5:53 pm
Location: Venhuizen, Netherlands
Contact:

Re: Request to reflect day / nighttime in clientraw icons (1

Post by YJB »

I'm still not too sure about the text values.

I've gathered all the possible options on my RFXCOM/WMR968 sensors and this is what I see
forecast.jpg
forecast.jpg (77.17 KiB) Viewed 5021 times
As one can see quite a bit of differences between 4.6q and 4.6r, but I don't think that the fc as being read from the sensors is translated properly into the wdlive text counterpart.

But then... I might be wrong....
Post Reply