Hi,
we were just discussing this here yesterday Previous page of this thread…
http://discourse.weather-watch.com/p/470822
Yes it will be as an addition plug in in the future and now I see this should be the top priority since everyone is asking for it :D.
It is based on my previous interactive banner script, which you can see here:
http://meteopage.com/subdom/downloads/downloads.php
Description:
[i]This script shows a banner for a specific location, which mimicks the current weather conditions at that location. It is directly taken from the “forecast” script also found in downloads section, but only contains the banner and the necessary files and also all scripts and settings are in one file.
Installation instructions and information included in Readme file.
HOW DOES THE BANNER WORK 1. Based on longitude/latitude and current time and timezone, the script detects whether there is day or night
2. Then it gets a parameter with “cloudiness” to see how much clouds there are (clear, partly cloudy, overcast etc.).
3. Then it gets information whether there is some special phenomenon - for example fog etc.
4. Now it goes to a folder where there is several backgrounds for various conditions. For example, there are several versions of “day clear”, “day partly cloudy” (this one for example has some random clouds, so if you refresh, it will randomly choose a different image with "partly cloudy, there is about 5 versions for each condition).
5. If it is day, it chooses randomly one of the background for that particular weather condition.
6. If it is night it is slightly more complex. It uses a different script, which based on longitude, latitude and current date and time, finds the current moon phase. Then, there is 118 different icons of the moon depending on the illumination percentage. The script then takes one of those 118 icons, which is most similar to the current phase. And then, it checks the cloudiness again. Obviously, if it is overcast, it does nothing. If the cloudiness is small or no clouds at all, it adds the icon of the moon to the background.
7. After the background (and possibly Moon icon) is generated it checks further for the other phenomena
8. First it checks whether it is raining. If yes, then it checks how much it is raining - there are 3 different levels - light rain, rain, heavy rain. Based on this it then uses JavaScript to generate animation of water drops falling and adds that as a layer over the background. Also, at this stage it checks the wind speed and based on the wind speed it sets the angle at which the drops fall. So if it is windy, they will be falling at a sharper angle, if it is calm they will fall straight down.
9. It does the exact same thing as with the rain, but this time with snow. This time it uses different animation to create snow flakes. Again checks how much it is snowing to set the amount of flakes and their intensity and last, checks the wind speed to set the angle of flakes. And then it adds this as another layer over the background, Moon and rain layer.
10. And thats it :D[/i]