But this is how it is going to function. when you run an action it will do 2 things. it is going to trigger an event where the payload is a formatted string output. and it will return either the actual data received from WU or an object class that represents the data.
The object class is nice because you can do things like... obj.Forecast.Monday_Night.Imperial and it will return that forecast. or if you want to get the forecast for the whole week. obj.Forecast.GetData(str) will return a formatted string of all of the forecasts but you can use dict and it will return a dictionary. or list, tuple or you can even specify your own formatter if you like the data passed to the formatter is a list. and you can also have it update. simply by calling obj.Update() and it doesn't matter what tier you are in. so obj.Forecast.Monday.Update() works all the same. and it will update that current object.
I hope to be releasing a beta of it this evening if all goes well. I am going to add a polling option so it will automatically generate events if the data has changed. tho you are only allowed to make 10 requests per minute i think for free. but I do think that is more then enough.
I also have already done the legwork and had my parser grab any url's for icons and make the connection and downloaded them and turned them into a file like object. so if someone wanted to use them for something like the webserver plugin they are all set to go. or if you wanted to display it on the screen. you can very easily.
There is something really cool that i added that I am not going to tell about. it's a surprise
here are the features it has support for
Code: Select all
Location: lat/log country/city state/city zipcode airport code personal weather station Features: Alerts Almanac Astronomy Conditions CurrentHurricane Forecast Forecast10Day Geolookup History Hourly Hourly10Day RawTide Tide Webcams Yesterday languages: Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian British English Burmese Catalan Chinese - Simplified Chinese - Traditional Croatian Czech Danish Dhivehi Dutch English Esperanto Estonian Farsi Finnish French French Canadian Galician German Georgian Greek Gujarati Haitian Creole Hebrew Hindi Hungarian Icelandic Ido Indonesian Irish Gaelic Italian Japanese Javanese Khmer Korean Kurdish Latin Latvian Lithuanian Low German Macedonian Maltese Mandinka Maori Marathi Mongolian Norwegian Occitan Pashto Plautdietsch Polish Portuguese Punjabi Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Swiss Tagalog Tatarish Thai Turkish Turkmen Ukrainian Uzbek Vietnamese Welsh Wolof Yiddish - transliterated Yiddish - unicode