Download & Extend

Weather module should use the weather and not sky condition for image

Project:Weather
Version:4.7.x-3.3
Component:Code
Category:bug report
Priority:critical
Assigned:toddy
Status:closed (fixed)

Issue Summary

Tobias,
As per request, I am submitting this as a new issue

sky condition for delhi is clear sky but weather is hazy and the block displays the clear sky picture. The block I think takes the sky condition into account when displaying the images , whereas I think it should consider weather while displaying the images

Comments

#1

Assigned to:Anonymous» toddy

Hi,

thanks for the new submission. If I understand correctly, you want more images for different conditions, right? I'm currently thinking of e.g. thunderstorm, snow, and fog. Is that what you have in mind?

Regards,
Tobias

#2

No no...
the weather module i think right now does not use the weather condition like hazy,smoke etc to display the image but uses the sky condition to display the image so even if weather is hazy and the sky condition is clear sky the picture for clear sky is displayed in the block, whereas I think the image for hazy sky should be displayed.
I hope this makes it clear else let me know and I shall elaborate in detail

#3

Are we misunderstanding each other? I still think that we both describe the same thing. What I mean is that the weather module can display an image with e.g. a lightning bolt for thunderstorms instead of the rain image. I did not mean that it should display several images at once, but that it can choose from a wider variety of weather conditions.

#4

Tobias,
Let me try and explain again,

The example uses Delhi here. I checked the Metar website and it showed the weather conditions for delhi as follows

2006.12.01 2200 UTC
Wind from the WNW (290 degrees) at 3 MPH (3 KT)
Visibility 2 mile(s)
Sky conditions clear
Weather Smoke
Temperature 53 F (12 C)
Dew Point 44 F (7 C)
Relative Humidity 71%
Pressure (altimeter) 29.97 in. Hg (1015 hPa)
ob VIDP 012200Z 29003KT 3500 FU SKC 12/07 Q1015 NOSIG

Please note that the Weather is reported as Smoke

Whereas on my site the weather block shows the following

New Delhi / Palam
night-clear(The image here has been replaced by the text)

    * Clear sky
    * Temperature: 12 °C
    * Wind: West, 5.6 km/h
    * Pressure: 1015 hPa
    * Rel. Humidity: 71%
    * Visibility: 3.5 kilometers

Reported on:
Fri, 2006-12-01 22:00

i.e. the weather (Weather Smoke) reported by the METAR website is missing in the block. It seems to me that presently for the weather module, the image used in the weather block is derived from the sky condition hence image of night-clear is displayed, whereas according to me the image displayed there should have been corresponding to the weather i.e. image with smoke. In case the night clear image was displayed becasue the module did not find hazy or smoke image , then yes adding new images will help, but if (repeating the point here) the block image does not refer to the weather condition then that needs to be fixed in the module.

Second point I suggest that the weather condition should be written in text just below the image as well. So the weather module should look like as follows

New Delhi / Palam
Image correspondiong to weather (not sky condition)

    * Weather - Smoke
    * Clear sky
    * Temperature: 12 °C
    * Wind: West, 5.6 km/h
    * Pressure: 1015 hPa
    * Rel. Humidity: 71%
    * Visibility: 3.5 kilometers

Reported on:
Fri, 2006-12-01 22:00

I hope the issue makes more sense this time.

#5

Ah, I think now I got your point. You're right, the module currently uses the sky condition for the amount of clouds displayed. However, some weather phenomena such as drizzle and rain are used for display as well. The module does not support displaying smoke yet, and neither does it display e.g. snow, thunderstorm, or fog.

The problem is therefore twofold: One, I need to create more images with the corresponding phenomena. Two, I need to find a way which image to use for display. That can get quite complex, with tens or even some hundred images needed. Think about combinations: rain, smoke, and thunderstorm, all at the same time. There's currently no way to dynamically create a suitable image on the fly, so all those combinations must be created beforehand.

I need to think a bit about this, but at least I think I understood your problem now. ;-)

#6

Yup, you have understood it exactly.

For the images may I suggest http://forecastfox.mozdev.org/packs/index.html. Though it is important to point out I do not know if these are copyright images or not , so I would advise you to ask the author of the forecastfox module before using these images. If he agrees, I am sure it will atleast take care of 1 part of the issue.

Manuj

#7

Version:4.7.x-3.1» 4.7.x-3.3

any progress?

#8

Sorry, I'm a bit overworked right now, so unfortunately no progress yet.

#9

So, how's it going? Any success with the project so far?

Thomas, IT Freelancer currently working on the how to lose 30 pounds project.

#10

Status:active» fixed

Hm, finally, after two years, this issue has been fixed in CVS. ;-)

Regards,
Tobias

#11

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.