Weather.com Plug-in

HouseBot Plugin Development Discussions.
Osler
HouseBot Guru
Posts: 742
Joined: Fri Feb 03, 2006 11:18 pm

Re: Weather.com Plug-in

Post by Osler »

No worries. I will build the device on my end and then make an export as Markd suggested. That way there is very little device configuration for you to do.

Osler
Steve Horn
HouseBot Guru
Posts: 747
Joined: Wed Apr 02, 2003 8:10 pm
Location: Pelham AL

Re: Weather.com Plug-in

Post by Steve Horn »

Osler wrote: Next up, I need to make a dictionary to convert the weather summary that is delivered into a standardized weather number that corresponds to the weather .png images most of us use.
Mighten (?) be easier to just use the jpg's that NOAA selects for their forecast? It might be a bit tedious to load them one time from NOAA (the library link) into a HB dir but after that we're good to go. If that's the way we go I'd be happy to grab them all and zip them into one file. Thoughts?
Steve
allanstevens
Member
Posts: 81
Joined: Thu Sep 01, 2005 7:56 am
Location: UK

Re: Weather.com Plug-in

Post by allanstevens »

Hi All,

I'm the developer of the c# weather.com plugin. I have just built a new one using the api from worldweatheronline.com. It will display current weather conditions and the next 5 days.

You will need to get a license key, it's free from http://www.worldweatheronline.com/register.aspx

Source code and dll can be found on codeplex: http://worldweatheronlinehb.codeplex.com/

It's only just been created and tested on my machine for the last few hours. Seems OK, but an early beta. If you get any issues let me know. You might want to run it on a test pc first.

Cheers Al
screenshot.png
screenshot.png (50.58 KiB) Viewed 98371 times
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

Cool, thanks Allan.

Although I feel a little let down. ;-)
allanstevens
Member
Posts: 81
Joined: Thu Sep 01, 2005 7:56 am
Location: UK

Re: Weather.com Plug-in

Post by allanstevens »

markd wrote:Although I feel a little let down. ;-)
Sorry :oops: the noaa.gov feed was not an option for me, being over in Essex, England.

worldweatheronline.com does not return all the same data as weather.com did, but it seemed a good option with the current weather and a forecase for the next 5 days. I'll try an put together a screen for my software remote tonight. If I do i'll share it. It will be based on this page:

http://www.worldweatheronline.com/weather.aspx?q=SS17
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

It's ok, was just enjoying the community. :wink:

Hey, do you know where I can find the icons?
allanstevens
Member
Posts: 81
Joined: Thu Sep 01, 2005 7:56 am
Location: UK

Re: Weather.com Plug-in

Post by allanstevens »

markd wrote:Hey, do you know where I can find the icons?
I think this is all of them ...

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image

I was planning on downloading them all tonight for my software remote :D
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

Ok, thanks! I think I will probably map to the old ones, as I think they work better in my graphics.
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

Missing a few, assuming that they did not skip any (also a lot of redundant ones ;-). This zip holds all but the missing.

0005,0014, 0015, 0022, 0023, 0030, 0031, 0038, 0039.

Where are they coming from?
Attachments
icons.zip
(36 KiB) Downloaded 1483 times
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

Aaaaand here are my mappings. . . I had to make a bunch up as the alignment was not perfect. These are worldweatheronline NAMES put onto weather.com ICONS. And some mashed up weather.com icons. ;-)
Attachments
weather_translate.zip
(179.41 KiB) Downloaded 1431 times
allanstevens
Member
Posts: 81
Joined: Thu Sep 01, 2005 7:56 am
Location: UK

Re: Weather.com Plug-in

Post by allanstevens »

markd wrote:Missing a few, assuming that they did not skip any (also a lot of redundant ones ;-). This zip holds all but the missing.

0005,0014, 0015, 0022, 0023, 0030, 0031, 0038, 0039.

Where are they coming from?
Nice one! saved me a job :D

I got the names from some xml from the worldweatheronline.com forum here : http://www.worldweatheronline.com/forum ... osts&t=197

Once I had the names i added "http://www.worldweatheronline.com/image ... 01_png_64/" to the front of the url.
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

Hi Allan-

Any chance of doing a correction for timezones? Even just an offset property that gets added in would do the trick. Ideally, grabbing the number from the OS so that daylight savings is accounted for. . .

Or maybe I should look at the source code. ;-)

Markd
allanstevens
Member
Posts: 81
Joined: Thu Sep 01, 2005 7:56 am
Location: UK

Re: Weather.com Plug-in

Post by allanstevens »

markd wrote:Any chance of doing a correction for timezones? Even just an offset property that gets added in would do the trick. Ideally, grabbing the number from the OS so that daylight savings is accounted for. . .
I didn't realised the observation_time was not set to the local time. I have noticed that there is also a timezone api:

http://www.worldweatheronline.com/time-zone-api.aspx

I'll try and updated the code tonight or tomorrow so that it uses the offset value returned against the observation time. I think that will do it?

Thanks,
Allan
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Weather.com Plug-in

Post by markd »

Sounds like it would work- thanks!
allanstevens
Member
Posts: 81
Joined: Thu Sep 01, 2005 7:56 am
Location: UK

Re: Weather.com Plug-in

Post by allanstevens »

markd wrote:Sounds like it would work- thanks!
Updated to version 1.0.2, let me know how you get on.
Attachments
WorldWeatherOnline.zip
Version 1.0.2
(5.83 KiB) Downloaded 1372 times
Post Reply