Weather Underground Plugin

Questions and comments specific to a particular plugin should go here.

Weather Underground Plugin

Postby kgschlosser » Sun Jun 19, 2016 5:29 pm

I am going to start coding a plugin for retrieval of data from weather underground

K
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby krambriw » Tue Jun 21, 2016 6:09 am

If you think it is worth time & effort...

With the SunTracker plugin that is using Weather.com you can get all info regarding current weather and forecasts. As example, running a python script

Code: Select all
print eg.plugins.Suntracker.GetForecasts()
#print eg.plugins.Suntracker.GetCurrentCondition()
print eg.plugins.Suntracker.GetWeatherCondition()
#print eg.plugins.Suntracker.GetWindData()
#print eg.plugins.Suntracker.GetAtmosphereData()
#print eg.plugins.Suntracker.GetSunStateWithTimeStamp()
#print eg.plugins.Suntracker.GetSunState()
print eg.plugins.Suntracker.plugin.weather_data


gives for my location

Code: Select all
08:04:11   [{'day_of_week': u'Tuesday', 'high': u'21', 'sunset': u'10:10 PM', 'low': u'12', 'night': {'brief_text': u'P Cloudy', 'text': u'Partly Cloudy', 'chance_precip': u'0', 'humidity': u'82', 'wind': {'gust': u'N/A', 'direction': u'207', 'speed': u'20', 'text': u'SSW'}, 'icon': u'29'}, 'date': u'Jun 21', 'day': {'brief_text': u'PM Lgt Rain', 'text': u'PM Light Rain', 'chance_precip': u'40', 'humidity': u'64', 'wind': {'gust': u'N/A', 'direction': u'207', 'speed': u'20', 'text': u'SSW'}, 'icon': u'11'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Wednesday', 'high': u'25', 'sunset': u'10:10 PM', 'low': u'14', 'night': {'brief_text': u'P Cloudy', 'text': u'Partly Cloudy', 'chance_precip': u'0', 'humidity': u'77', 'wind': {'gust': u'N/A', 'direction': u'249', 'speed': u'16', 'text': u'WSW'}, 'icon': u'29'}, 'date': u'Jun 22', 'day': {'brief_text': u'M Sunny', 'text': u'Mostly Sunny', 'chance_precip': u'0', 'humidity': u'55', 'wind': {'gust': u'N/A', 'direction': u'249', 'speed': u'16', 'text': u'WSW'}, 'icon': u'34'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Thursday', 'high': u'23', 'sunset': u'10:10 PM', 'low': u'15', 'night': {'brief_text': u'Rain Late', 'text': u'Light Rain Late', 'chance_precip': u'60', 'humidity': u'80', 'wind': {'gust': u'N/A', 'direction': u'244', 'speed': u'19', 'text': u'WSW'}, 'icon': u'11'}, 'date': u'Jun 23', 'day': {'brief_text': u'M Sunny', 'text': u'Mostly Sunny', 'chance_precip': u'10', 'humidity': u'60', 'wind': {'gust': u'N/A', 'direction': u'244', 'speed': u'19', 'text': u'WSW'}, 'icon': u'34'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Friday', 'high': u'23', 'sunset': u'10:10 PM', 'low': u'16', 'night': {'brief_text': u'Shwrs Early', 'text': u'Showers Early', 'chance_precip': u'30', 'humidity': u'82', 'wind': {'gust': u'N/A', 'direction': u'182', 'speed': u'16', 'text': u'S'}, 'icon': u'45'}, 'date': u'Jun 24', 'day': {'brief_text': u'AM Showers', 'text': u'AM Showers', 'chance_precip': u'50', 'humidity': u'76', 'wind': {'gust': u'N/A', 'direction': u'182', 'speed': u'16', 'text': u'S'}, 'icon': u'39'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Saturday', 'high': u'27', 'sunset': u'10:10 PM', 'low': u'15', 'night': {'brief_text': u'Rain Late', 'text': u'Light Rain Late', 'chance_precip': u'70', 'humidity': u'80', 'wind': {'gust': u'N/A', 'direction': u'200', 'speed': u'16', 'text': u'SSW'}, 'icon': u'11'}, 'date': u'Jun 25', 'day': {'brief_text': u'AM Showers', 'text': u'AM Showers', 'chance_precip': u'30', 'humidity': u'69', 'wind': {'gust': u'N/A', 'direction': u'200', 'speed': u'16', 'text': u'SSW'}, 'icon': u'39'}, 'sunrise': u'3:31 AM'}]

08:04:11   Fair

08:04:11   {'units': {'distance': u'km', 'speed': u'km/h', 'temperature': u'C', 'rainfall': u'mm', 'pressure': u'mb'}, 'current_conditions': {'moon_phase': {'text': u'Full', 'icon': u'15'}, 'last_updated': u'6/21/16 7:50 AM CEST', 'temperature': u'17', 'dewpoint': u'11', 'text': u'Fair', 'uv': {'index': u'2', 'text': u'Low'}, 'visibility': u'9.7', 'humidity': u'68', 'station': u'Stockholm/Bromma, AB, SW', 'barometer': {'direction': u'', 'reading': u'1011.18'}, 'feels_like': u'17', 'wind': {'gust': u'N/A', 'direction': u'170', 'speed': u'11', 'text': u'S'}, 'icon': u'34'}, 'location': {'lat': u'59.43', 'lon': u'17.95', 'name': u'Sollentuna, AB, Sweden'}, 'forecasts': [{'day_of_week': u'Tuesday', 'high': u'21', 'sunset': u'10:10 PM', 'low': u'12', 'night': {'brief_text': u'P Cloudy', 'text': u'Partly Cloudy', 'chance_precip': u'0', 'humidity': u'82', 'wind': {'gust': u'N/A', 'direction': u'207', 'speed': u'20', 'text': u'SSW'}, 'icon': u'29'}, 'date': u'Jun 21', 'day': {'brief_text': u'PM Lgt Rain', 'text': u'PM Light Rain', 'chance_precip': u'40', 'humidity': u'64', 'wind': {'gust': u'N/A', 'direction': u'207', 'speed': u'20', 'text': u'SSW'}, 'icon': u'11'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Wednesday', 'high': u'25', 'sunset': u'10:10 PM', 'low': u'14', 'night': {'brief_text': u'P Cloudy', 'text': u'Partly Cloudy', 'chance_precip': u'0', 'humidity': u'77', 'wind': {'gust': u'N/A', 'direction': u'249', 'speed': u'16', 'text': u'WSW'}, 'icon': u'29'}, 'date': u'Jun 22', 'day': {'brief_text': u'M Sunny', 'text': u'Mostly Sunny', 'chance_precip': u'0', 'humidity': u'55', 'wind': {'gust': u'N/A', 'direction': u'249', 'speed': u'16', 'text': u'WSW'}, 'icon': u'34'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Thursday', 'high': u'23', 'sunset': u'10:10 PM', 'low': u'15', 'night': {'brief_text': u'Rain Late', 'text': u'Light Rain Late', 'chance_precip': u'60', 'humidity': u'80', 'wind': {'gust': u'N/A', 'direction': u'244', 'speed': u'19', 'text': u'WSW'}, 'icon': u'11'}, 'date': u'Jun 23', 'day': {'brief_text': u'M Sunny', 'text': u'Mostly Sunny', 'chance_precip': u'10', 'humidity': u'60', 'wind': {'gust': u'N/A', 'direction': u'244', 'speed': u'19', 'text': u'WSW'}, 'icon': u'34'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Friday', 'high': u'23', 'sunset': u'10:10 PM', 'low': u'16', 'night': {'brief_text': u'Shwrs Early', 'text': u'Showers Early', 'chance_precip': u'30', 'humidity': u'82', 'wind': {'gust': u'N/A', 'direction': u'182', 'speed': u'16', 'text': u'S'}, 'icon': u'45'}, 'date': u'Jun 24', 'day': {'brief_text': u'AM Showers', 'text': u'AM Showers', 'chance_precip': u'50', 'humidity': u'76', 'wind': {'gust': u'N/A', 'direction': u'182', 'speed': u'16', 'text': u'S'}, 'icon': u'39'}, 'sunrise': u'3:31 AM'}, {'day_of_week': u'Saturday', 'high': u'27', 'sunset': u'10:10 PM', 'low': u'15', 'night': {'brief_text': u'Rain Late', 'text': u'Light Rain Late', 'chance_precip': u'70', 'humidity': u'80', 'wind': {'gust': u'N/A', 'direction': u'200', 'speed': u'16', 'text': u'SSW'}, 'icon': u'11'}, 'date': u'Jun 25', 'day': {'brief_text': u'AM Showers', 'text': u'AM Showers', 'chance_precip': u'30', 'humidity': u'69', 'wind': {'gust': u'N/A', 'direction': u'200', 'speed': u'16', 'text': u'SSW'}, 'icon': u'39'}, 'sunrise': u'3:31 AM'}]}


What else is missing?
My latest plugins
http://plugins.krambriw.net/index.html

Two men in front of a huge excavator...
- that beast steels work from 100 men with shovels
- well, a 1000 men could do the same using teaspoons
krambriw
Plugin Developer
 
Posts: 2558
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden

Re: Weather Underground Plugin

Postby Pako » Tue Jun 21, 2016 10:26 am

krambriw wrote:If you think it is worth time & effort...
With the SunTracker plugin that is using Weather.com you can get all info regarding current weather and forecasts.
In addition, there is also an Open Weather Map plugin.
There is currently no forecast built, but it can easily be added.

Pako
You know flattr ? You can Image
User avatar
Pako
Plugin Developer
 
Posts: 2238
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic

Re: Weather Underground Plugin

Postby kgschlosser » Tue Jun 21, 2016 4:12 pm

the purpose to it was for personal weather stations. weather underground provides a nice means to support a vast variety of them. i just thought it would be a nice and easy way for a user to connect to theirs from inside eventghost
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby kgschlosser » Tue Jun 21, 2016 4:18 pm

and i was going to set the plugin up as an object to it can be polled easily for the data..

like.

WU.temperature

WU.humidity

but without making a ton of actions.

and also add multilingual support.

and have a WU.IsDirty() so for anyone that scripts and wants to know if the data has changed.

it's just a thought. i am still waiting on a reply from them anyways. something went awry with my api key so this is on hold until i hear from them.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby loveleejohn » Sat Jan 07, 2017 2:20 am

This sounds like it would be very useful!! Hope you haven't given up on it.
loveleejohn
Experienced User
 
Posts: 111
Joined: Thu Dec 10, 2015 12:09 am

Re: Weather Underground Plugin

Postby kkl » Sat Jan 07, 2017 4:46 am

loveleejohn wrote:This sounds like it would be very useful!! Hope you haven't given up on it.

+1. I have a WU PWS and would love to see a plug-in.
kkl
Experienced User
 
Posts: 305
Joined: Wed May 04, 2011 9:32 pm

Re: Weather Underground Plugin

Postby kgschlosser » Sat Jan 07, 2017 1:40 pm

ok well I will have to add it to my list. I know i got into a battle with WU over their dumbass way of specifying languages.

they use ISO language format but they own goofy country code.

as an example.

EN = English

so en_us would be English in the United States

and they have GR for Greek..

el_gr is Greek in Greece, el is the language code not gr.

so I would have to make a whole lookup table to deal with this crap. i send them an e-mail asking why it was done this way and why they didn't use the iso 639 standard codes which is what just what everything uses. they replied to me stating that they use the iso codes. and i pointed this exact example out. and they never replied or fixed it for that matter..

some ding dong set it up this way... i think to make it more aggravating for someone trying to use their API.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby kkl » Sat Jan 07, 2017 5:18 pm

Could you just provide a reference for other languages and let the user input the language key in the config, for those who want something other than the default of English?

Would every user need their own API key? If so, that would limit the universe of uses willing to go through that step. And for those willing to register for their own API, the WU station json data is pretty simple to get.
kkl
Experienced User
 
Posts: 305
Joined: Wed May 04, 2011 9:32 pm

Re: Weather Underground Plugin

Postby kgschlosser » Fri Jan 13, 2017 12:11 am

it's not a huge issue. it's just a really dumb thing to make someone build a whole lookup table for something as simple as language codes and people make apps to use their service. and they usually do this free of charge.. and you make them have to go through extra work because someone got a hair across their ass and decided to make up a new set of language codes that nothing is compatible with unless a table gets made.. stupid stupid stupid stupid stupid stupid stupid stupid stupid stupid stupid ............stupid stupid stupid stupid stupid stupid

I am just ranting.. because it has to be one of the most moronic things to do..

weather underground that is..

and I just can't wait until i get into more of their backwards API.. so it should be an interesting project. I can see myself losing some hair over it,
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby loveleejohn » Tue Mar 14, 2017 5:57 pm

Well I sure hope you might be able to find some way to get this one to work kg. I was very disappointed when weather.com crippled their weather api and for the moment I think weatherunderground is the best thing that we have left at the moment. :)
loveleejohn
Experienced User
 
Posts: 111
Joined: Thu Dec 10, 2015 12:09 am

Re: Weather Underground Plugin

Postby kgschlosser » Wed Mar 15, 2017 12:34 am

I will get something together for this.. tho it will probably be a while. I have to many projects going on at the moment. I am also nursing an arm with detached forearm tendons. and it makes it rather uncomfortable to type or use the mouse. doctor says months of not using it.. I laughed and said.. Yeah right!!!
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby loveleejohn » Wed Mar 15, 2017 12:40 am

I can certainly relate to that feeling. No hurries mate. Take a rest to get patched up. We appreciate ya and definitely don't want you losing your limbs over some coding! Lol.
loveleejohn
Experienced User
 
Posts: 111
Joined: Thu Dec 10, 2015 12:09 am

Re: Weather Underground Plugin

Postby kgschlosser » Wed Apr 05, 2017 7:22 am

ok so I have an update on this. I have the Connector working and the API is working well. I have to code out the actions and config dialogs for them.
If you like the work I have been doing then feel free to Image
User avatar
kgschlosser
Site Admin
 
Posts: 1872
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Weather Underground Plugin

Postby loveleejohn » Wed Apr 05, 2017 2:59 pm

Very excited about this. I am currently using a very clunky vbs script to get the weather from WU so I'm hoping this will make a huge difference. :)
loveleejohn
Experienced User
 
Posts: 111
Joined: Thu Dec 10, 2015 12:09 am

Next

Return to Plugin Support

Who is online

Users browsing this forum: Snowbird and 3 guests