[RELEASE: A better weather device handler]


#1

This is a custom device handler that allows you to get weather related info from more than just your hub location. It also works with webCore. You can build pistons based on the attributes in the handler. Smartthings and webCore can get this information for the hub location, but is more difficult to get info for locations away from your hub. Thus the reason I built this. I used the smart weather tile device handler as a spring board to get me started and it went from there. Thank You TAKISSD !
I am a person that would rather use point and click than try to hash away at syntax to get information that I want. Most of what is available from digital weather undergrouind is here as an attribute.

Here’s a screenshot of the device in Smartthings

Here is a piston getting moon rise and set based on GPS locations from webCore presence sensor.

You can use zip ode, state/city ie Tx/Dallas, Geo locations to get weather.

It is available on GitHub:


Using a web request to get a time, and using that time to run a piston
#2

here are a couple more piston examples

this one sends sms message every day with the current conditions, forecast and any weather alerts at a specified time based on webcore presence sensor latitude,longitude cooirdinates

this one will not run on its own, it needs to be called from another piston or use manually for testing. again using webCore Presence sensor coordinates


#3

What I doing wrong. My text returns empty device list. Thanks.


#4

What did you name your weather device that you installed with the custom device handler I posted


#5

Ahh, nevermind. You named it weather test right? If so, In that expression where it is setting the variable (line 27), change all the devices from ‘a better weather’ to ‘ Weather test’


#6

Thank you. That fixed it. So how do I get weather reports texted for the other locations I created?

Does this piston automatically send the report based on where I am?


#7

You would change loc1() to loc2() and then repeat the process from there down in the piston and the same for loc3()


#8

No. It can though. You can have location 1 follow you by using a piston to make it do that.

It is only set up to have location 1 follow you if you use the piston idea.
I have a piston that changes location 1 weather info depending on where you phone is. However it uses the webcore presence to get geo locations and changes location 1 until you are home, then switches back to what you have Setup now. I can share if you want That changes the location 1 to wherever your phone is. Then you can run the piston you are working on to send messages based on location 1


#9

You need to change the ‘presence Kim’ part to whatever you named your webcore presence sensor