New WUnderground plugin with Sunrise/Sunset and DayNight
New WUnderground plugin with Sunrise/Sunset and DayNight
I have uploaded a new version of the Wunderground plugin that will update Sunrise and Sunset times. I have not determined how/when Weather Underground shifts their forecast day information so I would not trust the rest of the forecast data now. If someone figures this out let me know.
Once someone confirms the Sunrise/Sunset is working I will add some info in the Wiki on how to update a scheduled event time to sunrise/set time.
Once someone confirms the Sunrise/Sunset is working I will add some info in the Wiki on how to update a scheduled event time to sunrise/set time.
Last edited by Automate on Mon Jan 16, 2012 2:31 pm, edited 1 time in total.
Re: Wunderground (Weather Underground) update for Sunrise/Su
Thanks for the updated version.
I have the following in my logs;
01/15/2012 07:11:12.000 PM - plugin name: WUnderground-tvserver
01/15/2012 07:11:12.125 PM - Testing connection
01/15/2012 07:11:12.359 PM - setting found: WUnderground-tvserver - 1
01/15/2012 07:11:14.953 PM - Error activating plugin (WUnderground-tvserver): Input string was not in a correct format. -
01/15/2012 07:11:15.125 PM - status: True
01/15/2012 07:11:15.265 PM - PluginName: WUnderground-tvserver
01/15/2012 07:11:15.375 PM - PluginVersion: 0.3.1
01/15/2012 07:21:25.496 PM - plugin update error: Unable to connect to the remote server
Nothing seems to be updating either. Although is shouldn't cause this any problems by MySQL Db is hosted on another server. There are no connectivity or access issues as everything else seems to be working as it should.
Can you help?
Cheers
Garry
I have the following in my logs;
01/15/2012 07:11:12.000 PM - plugin name: WUnderground-tvserver
01/15/2012 07:11:12.125 PM - Testing connection
01/15/2012 07:11:12.359 PM - setting found: WUnderground-tvserver - 1
01/15/2012 07:11:14.953 PM - Error activating plugin (WUnderground-tvserver): Input string was not in a correct format. -
01/15/2012 07:11:15.125 PM - status: True
01/15/2012 07:11:15.265 PM - PluginName: WUnderground-tvserver
01/15/2012 07:11:15.375 PM - PluginVersion: 0.3.1
01/15/2012 07:21:25.496 PM - plugin update error: Unable to connect to the remote server
Nothing seems to be updating either. Although is shouldn't cause this any problems by MySQL Db is hosted on another server. There are no connectivity or access issues as everything else seems to be working as it should.
Can you help?
Cheers
Garry
Re: Wunderground (Weather Underground) update for Sunrise/Su
Ok, a few questions
You are using OSA 0.3.5?
Did you ever get the previous version of the WUnderground plugin (0.3.0) working?
Have you set the Debug property of the SYSTEM object to true.
Do you see WUnderground and Weather objects in your object list?
Have you set your PWS in the WUnderground object?
Are you seeing a WUnderground.log file in the log folder?
You are using OSA 0.3.5?
Did you ever get the previous version of the WUnderground plugin (0.3.0) working?
Have you set the Debug property of the SYSTEM object to true.
Do you see WUnderground and Weather objects in your object list?
Have you set your PWS in the WUnderground object?
Are you seeing a WUnderground.log file in the log folder?
Re: Wunderground (Weather Underground) update for Sunrise/Su
I do like lots of questions, I find it help me help you to help me. So thanks. Answers below, however after reading a few more post found that there is another update to the version 0.3.5 i had installed. So I downloaded and installed again to find that I'm now getting weather data and the all important sunrise/sunset times.
Just need to know how I can use the sunrise/sunset times in a script and I'll be a happy bunny.
You are using OSA 0.3.5? - YES
Did you ever get the previous version of the WUnderground plugin (0.3.0) working? - NO
Have you set the Debug property of the SYSTEM object to true. - NO, will set that now.
Do you see WUnderground and Weather objects in your object list? - Yes, well I think so.
Have you set your PWS in the WUnderground object? - YES IWILTSHI9
Are you seeing a WUnderground.log file in the log folder? - YES
01/15/2012 11:00:25.803 PM - Update Forecast
01/15/2012 11:01:25.928 PM - Update Forecast
01/15/2012 11:02:25.818 PM - Update Forecast
01/15/2012 11:03:22.552 PM - Found Temp: 34.1
01/15/2012 11:03:25.802 PM - Update Forecast
01/15/2012 11:04:25.817 PM - Update Forecast
01/15/2012 11:05:25.801 PM - Update Forecast
01/15/2012 11:06:25.817 PM - Update Forecast
01/15/2012 11:07:25.801 PM - Update Forecast
01/15/2012 11:08:22.347 PM - Found Temp: 34.1
01/15/2012 11:08:25.800 PM - Update Forecast
01/15/2012 11:09:25.800 PM - Update Forecast
01/15/2012 11:10:25.800 PM - Update Forecast
01/15/2012 11:11:25.815 PM - Update Forecast
01/15/2012 11:12:25.814 PM - Update Forecast
01/15/2012 11:13:23.173 PM - Found Temp: 34.1
01/15/2012 11:13:25.861 PM - Update Forecast
01/15/2012 11:14:25.970 PM - Update Forecast
01/15/2012 11:15:25.907 PM - Update Forecast
01/15/2012 11:16:25.813 PM - Update Forecast
01/15/2012 11:17:25.813 PM - Update Forecast
01/15/2012 11:18:22.765 PM - Found Temp: 34.1
01/15/2012 11:18:25.796 PM - Update Forecast
01/15/2012 11:19:25.796 PM - Update Forecast
01/15/2012 11:20:25.796 PM - Update Forecast
01/15/2012 11:21:25.811 PM - Update Forecast
01/15/2012 11:22:25.810 PM - Update Forecast
01/15/2012 11:23:22.325 PM - Found Temp: 34.1
01/15/2012 11:23:25.809 PM - Update Forecast
01/15/2012 11:24:25.824 PM - Update Forecast
01/15/2012 11:25:25.823 PM - Update Forecast
01/15/2012 11:26:26.354 PM - Update Forecast
01/15/2012 11:27:25.807 PM - Update Forecast
01/15/2012 11:28:25.822 PM - Update Forecast
01/15/2012 11:28:28.666 PM - Found Temp: 34.1
01/15/2012 11:29:25.790 PM - Update Forecast
01/15/2012 11:30:25.790 PM - Update Forecast
01/15/2012 11:31:25.805 PM - Update Forecast
Just need to know how I can use the sunrise/sunset times in a script and I'll be a happy bunny.
You are using OSA 0.3.5? - YES
Did you ever get the previous version of the WUnderground plugin (0.3.0) working? - NO
Have you set the Debug property of the SYSTEM object to true. - NO, will set that now.
Do you see WUnderground and Weather objects in your object list? - Yes, well I think so.
Have you set your PWS in the WUnderground object? - YES IWILTSHI9
Are you seeing a WUnderground.log file in the log folder? - YES
01/15/2012 11:00:25.803 PM - Update Forecast
01/15/2012 11:01:25.928 PM - Update Forecast
01/15/2012 11:02:25.818 PM - Update Forecast
01/15/2012 11:03:22.552 PM - Found Temp: 34.1
01/15/2012 11:03:25.802 PM - Update Forecast
01/15/2012 11:04:25.817 PM - Update Forecast
01/15/2012 11:05:25.801 PM - Update Forecast
01/15/2012 11:06:25.817 PM - Update Forecast
01/15/2012 11:07:25.801 PM - Update Forecast
01/15/2012 11:08:22.347 PM - Found Temp: 34.1
01/15/2012 11:08:25.800 PM - Update Forecast
01/15/2012 11:09:25.800 PM - Update Forecast
01/15/2012 11:10:25.800 PM - Update Forecast
01/15/2012 11:11:25.815 PM - Update Forecast
01/15/2012 11:12:25.814 PM - Update Forecast
01/15/2012 11:13:23.173 PM - Found Temp: 34.1
01/15/2012 11:13:25.861 PM - Update Forecast
01/15/2012 11:14:25.970 PM - Update Forecast
01/15/2012 11:15:25.907 PM - Update Forecast
01/15/2012 11:16:25.813 PM - Update Forecast
01/15/2012 11:17:25.813 PM - Update Forecast
01/15/2012 11:18:22.765 PM - Found Temp: 34.1
01/15/2012 11:18:25.796 PM - Update Forecast
01/15/2012 11:19:25.796 PM - Update Forecast
01/15/2012 11:20:25.796 PM - Update Forecast
01/15/2012 11:21:25.811 PM - Update Forecast
01/15/2012 11:22:25.810 PM - Update Forecast
01/15/2012 11:23:22.325 PM - Found Temp: 34.1
01/15/2012 11:23:25.809 PM - Update Forecast
01/15/2012 11:24:25.824 PM - Update Forecast
01/15/2012 11:25:25.823 PM - Update Forecast
01/15/2012 11:26:26.354 PM - Update Forecast
01/15/2012 11:27:25.807 PM - Update Forecast
01/15/2012 11:28:25.822 PM - Update Forecast
01/15/2012 11:28:28.666 PM - Found Temp: 34.1
01/15/2012 11:29:25.790 PM - Update Forecast
01/15/2012 11:30:25.790 PM - Update Forecast
01/15/2012 11:31:25.805 PM - Update Forecast
Re: Wunderground (Weather Underground) update for Sunrise/Su
The log you posted is what I would expect if you have Debug set to False, Conditions Interval set to 5 min and Forecast Interval set to 1 minute. Normally you would not need the forecast interval to occur that often because the forecast does not change very often. Default is 60 minutes.
Can you describe what you want to do with the sunrise and sunset times in your script?
Can you describe what you want to do with the sunrise and sunset times in your script?
Re: Wunderground (Weather Underground) update for Sunrise/Su
My project is to automate a number of lights in and around the house. Firstly I'd like to do is switch on the Living Room lights about 15 minutes prior to sunset.
I'm going to install motion sensor around a number of rooms, namely the kids bedrooms, so that when someone enters the lights are turned on. Again I'd like to activate this function close to sunset, rather then all the time. Adding to that I plan on use a dim setting say between 10pm and sunrise or 7am, which ever comes first, so that during the night if one of the kids needs to use the toilet they don't disturb the rest of us.
I also have a number of motion sensors in the back garden that control the outside lights, these only need to come on when active about 15 minutes after sunset.
Lastly my kids all need to be up around 7am for school, so I was thinking about turning on their bedroom lights around 7am during the Winter months, so was going to use the sunrise time to work that one out.
Sorry the long post but that's about as short as I can get it.
Thanks for your help. Oh and I'll adjust my config to suit, now that there is data being collected.
Cheers
Garry
I'm going to install motion sensor around a number of rooms, namely the kids bedrooms, so that when someone enters the lights are turned on. Again I'd like to activate this function close to sunset, rather then all the time. Adding to that I plan on use a dim setting say between 10pm and sunrise or 7am, which ever comes first, so that during the night if one of the kids needs to use the toilet they don't disturb the rest of us.
I also have a number of motion sensors in the back garden that control the outside lights, these only need to come on when active about 15 minutes after sunset.
Lastly my kids all need to be up around 7am for school, so I was thinking about turning on their bedroom lights around 7am during the Winter months, so was going to use the sunrise time to work that one out.
Sorry the long post but that's about as short as I can get it.
Thanks for your help. Oh and I'll adjust my config to suit, now that there is data being collected.
Cheers
Garry
Re: Wunderground (Weather Underground) update for Sunrise/Su
Since OSA scripts can't compare two variables yet I have posted a new WUnderground plugin (0.3.2) that has a new DayNight property. You can use it as follows with a motion sensor event.
Code: Select all
IF Weather.DayNight = Night THEN
put your method here
Re: New WUnderground plugin with Sunrise/Sunset and DayNight
Thanks, I will give that a go and see how it works.
Cheers
Garry
Cheers
Garry
Re: New WUnderground plugin with Sunrise/Sunset and DayNight
@Automate,
I have started playing with the Weather Underground plugin and am trying to figure out how to get it set up and working. I am guessing that it stores the data under a WEATHER object type because the Weather Underground plugin has only a couple config properties. If it does use the properties of a WEATHR object type, I am unable to get it to update the data. I have a conditions interval of 5, forecast interval of 15 update interval of 30 and my PWS is set to KWISTEVE1.
I don't see any clear documentation in the Wiki on how to set this up. Any help is appreciated.
Dan B.
I have started playing with the Weather Underground plugin and am trying to figure out how to get it set up and working. I am guessing that it stores the data under a WEATHER object type because the Weather Underground plugin has only a couple config properties. If it does use the properties of a WEATHR object type, I am unable to get it to update the data. I have a conditions interval of 5, forecast interval of 15 update interval of 30 and my PWS is set to KWISTEVE1.
I don't see any clear documentation in the Wiki on how to set this up. Any help is appreciated.
Dan B.
Re: New WUnderground plugin with Sunrise/Sunset and DayNight
Sounds like you have it configured properly. You should have a Weather object and a WUnderground plugin object. Do you have a Weather object (not just a Weather type)?
Can you set System.Debug to True and post the WUnderground.log after you start the plugin and let it run?
Can you set System.Debug to True and post the WUnderground.log after you start the plugin and let it run?