Page 2 of 2
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Tue Oct 12, 2010 12:23 am
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
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Tue Oct 12, 2010 8:40 pm
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...
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Tue Oct 12, 2010 9:22 pm
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
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Wed Oct 13, 2010 5:26 am
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 (8.25 KiB) Viewed 5070 times
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Sun Oct 17, 2010 10:04 pm
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
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Thu Oct 28, 2010 1:33 am
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!

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 (7.77 KiB) Viewed 5049 times
Re: Request to reflect day / nighttime in clientraw icons (1
Posted: Sun Nov 07, 2010 5:47 pm
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 (77.17 KiB) Viewed 5020 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....