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
Request to reflect day / nighttime in clientraw icons (15)
Moderator: Mattk
Re: Request to reflect day / nighttime in clientraw icons (1
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...
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...
- YJB
- 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
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
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
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.
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.
- YJB
- 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
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
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
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


Ed
- YJB
- 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
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
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....
I've gathered all the possible options on my RFXCOM/WMR968 sensors and this is what I see
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....