Weather Underground Plugin
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Weather Underground Plugin
I am going to start coding a plugin for retrieval of data from weather underground
K
K
-
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Weather Underground Plugin
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
gives for my location
What else is missing?
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
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'}]}
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Weather Underground Plugin
In addition, there is also an Open Weather Map plugin.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.
There is currently no forecast built, but it can easily be added.
Pako
You know flattr ? You can 

- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Weather Underground Plugin
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
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Weather Underground Plugin
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.
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.
-
- Experienced User
- Posts: 133
- Joined: Thu Dec 10, 2015 12:09 am
Re: Weather Underground Plugin
This sounds like it would be very useful!! Hope you haven't given up on it.
Re: Weather Underground Plugin
+1. I have a WU PWS and would love to see a plug-in.loveleejohn wrote:This sounds like it would be very useful!! Hope you haven't given up on it.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Weather Underground Plugin
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.
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.
Re: Weather Underground Plugin
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.
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.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Weather Underground Plugin
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,
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,
-
- Experienced User
- Posts: 133
- Joined: Thu Dec 10, 2015 12:09 am
Re: Weather Underground Plugin
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. 

- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Weather Underground Plugin
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!!!
-
- Experienced User
- Posts: 133
- Joined: Thu Dec 10, 2015 12:09 am
Re: Weather Underground Plugin
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.
- kgschlosser
- Site Admin
- Posts: 5508
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Weather Underground Plugin
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.
-
- Experienced User
- Posts: 133
- Joined: Thu Dec 10, 2015 12:09 am
Re: Weather Underground Plugin
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. 
