Indigo Weather Conditions Plugin (for Indigo 5) is released.

Posted on
Tue Dec 13, 2011 11:42 am
bschollnick2 offline
Posts: 1297
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Dave Durham wrote:
Hi Ben, thanks again for the plug in, very slick. I have a question similar to Mat's above. How do I get a Forecast onto a Control Page??? I don't see the forecast variables in my list, only the current conditions. What am I missing???


Forecasts are not currently translated into variables, simply because I didn't have a good idea on how to condense the information into a single variable.... Or a good way to name the variable (Forecast1, forecast2, etc? MondayForecast, TuesdayForecast? etc)....

I am open to suggestions....

The proper method to display the data would be using states.... But I need to rework the plugin slightly to allow that.... (After hearing back from Matt & Jay, that is).

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Tue Dec 13, 2011 12:11 pm
jay (support) offline
Site Admin
User avatar
Posts: 14156
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

bschollnick2 wrote:
Matt & Jay, can a device-less plugin have states appear in the control page?


No. States are tied inextricably to devices and that's not likely to change soon. Adding yet another object type (plugin) in the UI seems like a really bad idea - there are already a bunch of objects that a user has to learn about.

If your plugin doesn't have states but needs to expose data, use variables. That's what the Airfoil plugin does so it's a decent example. It creates a folder and adds/updates variables as part of it's normal operation and so far it seems to be working well.

In this case, it seems like you actually want devices that represent different locations. Then you can have a forecast for multiple locations if you want.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Dec 13, 2011 12:35 pm
Otis offline
Posts: 210
Joined: Jan 24, 2006

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

All I'm looking for is the forecast temperatures for the next two or three 12-hour periods inserted into Indigo variables, along with the probability of precipitation. Just integers with no units works for my application.

I was getting these from the NOAA XML data with hacked-up AppleScript, but that stopped working (I guess they changed the format) and I don't want to invest the time in fixing it since XML support has apparently gone away in the current version of AppleScript. I'll probably upgrade to Lion someday.

Posted on
Tue Dec 13, 2011 6:00 pm
mat offline
Posts: 574
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

How about 16 variables for the next 4 day forecast, just as google sets it out if you google "weather". That would give you a five day forecast including "today".
Day x 4 ie tomorrow, and following Three days
Temp high for each of the four days
Temp low for each of the four days
Icon ref for each of the four days that relates to the forecast image. I'm sure we can work out how many images there are, and they could be displayed as a hurlistic (sp) variable.

I'm happy to look at getting a set of images, although I think there's a set for NOAA already.

Would love to help with the scripting but my python is no existent this side of christmas!

Just an idea, no pressure intended.

Ps I'm loving being reminded by indigo to defrost my car early now it's frosty.

Mat

mini 10.11.6

Posted on
Thu Dec 15, 2011 10:26 am
bschollnick2 offline
Posts: 1297
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

mat wrote:
How about 16 variables for the next 4 day forecast, just as google sets it out if you google "weather". That would give you a five day forecast including "today".
Day x 4 ie tomorrow, and following Three days
Temp high for each of the four days
Temp low for each of the four days
Icon ref for each of the four days that relates to the forecast image. I'm sure we can work out how many images there are, and they could be displayed as a hurlistic (sp) variable.

I'm happy to look at getting a set of images, although I think there's a set for NOAA already.

Would love to help with the scripting but my python is no existent this side of christmas!

Just an idea, no pressure intended.

Ps I'm loving being reminded by indigo to defrost my car early now it's frosty.

Mat


I am going to have to rethink the current Weather Conditions model, since the state won't be available...

The idea that Jay suggested of a "Location" would work, but the issue with the web page report....

If I have different locations, then is there a page per location? If so, then the web page needs to be aware of each device.... And have someway to display each location....

It's do-able... But I'm not completely happy with that....

But of course, Weather Conditions was one of the earlier plugins that I made for v5.... So.... Live and learn...

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Thu Dec 15, 2011 5:27 pm
mat offline
Posts: 574
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Ben,

It's great as it is. It's only a would like.

Will test the email version over the weekend. Have been busy integrating DMX lighting, and trying to hold down a day job!

Thanks for a great plugin.

Mat

mini 10.11.6

Posted on
Sat Dec 17, 2011 10:17 am
morps offline
Posts: 122
Joined: Nov 01, 2003

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Hey Ben (and everyone else),

I thought you might get a kick outta this one. I am using your plugin and leveraging the current conditions variable along with some image heuristics to paint a purty icon into my control page. See below and thanks for your great work!

Image

Posted on
Sat Dec 17, 2011 1:55 pm
bschollnick2 offline
Posts: 1297
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

morps wrote:
Hey Ben (and everyone else),

I thought you might get a kick outta this one. I am using your plugin and leveraging the current conditions variable along with some image heuristics to paint a purty icon into my control page. See below and thanks for your great work!

Image


Nice... I love it!

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Sat Dec 17, 2011 2:38 pm
mat offline
Posts: 574
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Love it. Are the images copywrite free? Are they going to be shared? ;)

mini 10.11.6

Posted on
Sat Dec 17, 2011 3:04 pm
morps offline
Posts: 122
Joined: Nov 01, 2003

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

http://dl.dropbox.com/u/9889465/imgs/weather.zip

...depending on the variables you get back, you may have to tweak file names and/or add some images.

Have fun...

Posted on
Sat Dec 17, 2011 3:10 pm
mat offline
Posts: 574
Joined: Nov 25, 2010
Location: Cambridgeshire - UK

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Thanks for the share

Mat

mini 10.11.6

Posted on
Mon Dec 19, 2011 7:33 am
kpfriedberg offline

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Very neat, while the plugin pulls up in, no matter what zip code i put in it defaults to Danbury, CT for weather info...nevermind, saw this was a limitation of using WU vs Google...thanks!

Posted on
Mon Dec 19, 2011 2:16 pm
bschollnick2 offline
Posts: 1297
Joined: Oct 17, 2004
Location: Rochester, Ny

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

kpfriedberg wrote:
Very neat, while the plugin pulls up in, no matter what zip code i put in it defaults to Danbury, CT for weather info...nevermind, saw this was a limitation of using WU vs Google...thanks!


So Weather Underground only had one weather station nearby to that Zip code?

- Ben

------
My Plugins for Indigo (v4, v5, and v6) - http://bit.ly/U8XxPG

Security Script for v4 - http://bit.ly/QTgclf
for v5 - http://bit.ly/T6WBKu

Support Forum(s) - http://www.perceptiveautomation.com/userforum/viewforum.php?f=33

Posted on
Mon Dec 19, 2011 2:46 pm
kpfriedberg offline

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

Yep

Posted on
Thu Jan 19, 2012 8:37 pm
BlaineM offline
Posts: 25
Joined: Jan 13, 2012

Re: Indigo Weather Conditions Plugin (for Indigo 5) is relea

First off, thank you Benjamin for contributing this plugin... I believe its goal is exactly what I'm looking for.

I'm evaluating a variety of different automation platforms for a client's application that requires looking out 72 hours for rain events. Based on the likelyhood of that rain event, I may trigger off some activities. I was attracted to Indigo based purely on the potential to look at weather forecasts and its ability to integrate with not only Insteon, but also 3rd party hardware. I'm a complete newbie to Indigo with less than a day's work under my belt, but am liking what I see so far.

From your previous posts, I can see that you're investigating how to populate forecast data into variables. For now, I have your plugin working successfully for the Weather Underground w/ Forecast service (at least according to the variables list and event log), but am not clear on how to access the forecast data if it's not populated into variables. Can you (or anyone else) point me in the right direction on how to leverage that data?

From what I've tried so far, I believe your plugin is the only one that actually looks at forecasts. If anyone knows otherwise, I'm all ears. I'm open to writing code to get the forecast data if it comes down to that.

Thanks,
Blaine

Who is online

Users browsing this forum: No registered users and 1 guest