WorldWeather APP question

Good Morning,

I use World Weather to turn on a heater in a rainfall sensor on my weather station. I’m unsure about the Condition input, weather it should be “equals” or “contains” as it’s a string variable. It wasn’t clear in the help files as all it mentions for the Condition input are “y”, “yes”, “t” or “true”. This is what I have programmed:

WeatherConditions (#224)
Version 2.1547549739 01/15/19 05:55:39
Message/status: Not tripped
Group #1 false as of 05:44:47
=f (service) World Weather (85) urn:upnp-micasaverde-com:serviceId:Weather1/ConditionGroup contains “Freezing Rain/Sleet” [false/false as of 05:44:47/05:44:47; clear at 05:44:47]
Group #2 false as of 05:45:34
=f (service) World Weather (85) urn:upnp-micasaverde-com:serviceId:Weather1/ConditionGroup contains “Snow” [false/false as of 05:45:34/05:45:34; clear at 05:45:34]

Thanks,
Dave

[quote=“IslandMan54, post:1, topic:200438”]Good Morning,

I use World Weather to turn on a heater in a rainfall sensor on my weather station. I’m unsure about the Condition input, weather it should be “equals” or “contains” as it’s a string variable. It wasn’t clear in the help files as all it mentions for the Condition input are “y”, “yes”, “t” or “true”. This is what I have programmed:

WeatherConditions (#224)
Version 2.1547549739 01/15/19 05:55:39
Message/status: Not tripped
Group #1 false as of 05:44:47
=f (service) World Weather (85) urn:upnp-micasaverde-com:serviceId:Weather1/ConditionGroup contains “Freezing Rain/Sleet” [false/false as of 05:44:47/05:44:47; clear at 05:44:47]
Group #2 false as of 05:45:34
=f (service) World Weather (85) urn:upnp-micasaverde-com:serviceId:Weather1/ConditionGroup contains “Snow” [false/false as of 05:45:34/05:45:34; clear at 05:45:34]

Thanks,
Dave[/quote]

Dave, I think you’re on the right track. For some devices/plugins, if the range of possible values for a variable isn’t published (and correct), you may have to watch the plugin’s behavior to observe what relevant values you want to test for. But in a string like this, using “contains” is often a better choice than “is” because it allows for some flexibility in the text, in case the message changes slightly as the plugin evolves, or if it goes through permutations that you’d want to handle equally (e.g. “Rain”, “Rain/Light”, “Rain/Heavy”, “Rain/Biblical” can all be caught by “starts with Rain” or “contains Rain”).

I’m not sure where that plugin gets those strings. I’m just getting moving this morning, but when I’m settled at my desk, I’ll install the plugin and take a squiz at the code and see if it’s something it sets, or if it’s just passing through from a remote API. If the former, I can tell you exactly what you might want to test for. If the latter, we can move on to look at the API documentation and see if exposes the possible values. But if there’s no definitive list, you’re just going to have to watch it and learn what it gives you, and adjust your tests accordingly.

Also, would you mind going to the Tools page on your ReactorSensor, and in the “Submit Device Data” area, select your World Weather plugin and send it up? I don’t have data for that yet in the enhancement database.

Dave, where is this mysterious plugin of which you speak? I cannot find it in the plugin marketplace (which isn’t saying much, because the search there is sh… sure not very good, but still). I Google’d a reference connecting it to the Weather Underground plugin, which is on its way out for most I understand (no more free tier). If that’s another name for it or it’s related, here’s an interesting list: Loading | Weather Underground

I apologize, it’s the Weather Underground App, it created world weather. It’s using the weather from the station on my roof.
[url=https://www.wunderground.com/weather/us/ny/kings%20park/11754?mr=1]Kings Park, NY Weather Conditions | Weather Underground

I selected my World Weather(#85) and clicked on Submit Device Data, not sure if it did anything, no response.

I am forced to use Edge to log into my Vera Account now, and it’s going thru some relay. Not sure what that’s all about but I cannot use Firefox any longer, just sits in an endless loop trying to connect.
Thanks,
Dave

PS Looks like the API will be continuing for a while for us paid users. I think it sucks we all supply good data to Wunderground and they act like this… just sayin’

Good Morning,
So, the weather here is affording me a test of the World Weather Sensor. Current conditions from the APP are:
Conditions
Snow
Wind
NE
Speed
1.40288
Location Used
Indian Head Knolls, Kings Park, New York

*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************

Version: 2.1 config 204
Local time: 2019-01-18T03:52:25-0500, DST=0
House mode: 1
Sun data: { “stamp”: 20190118, “civdawn”: 1547811837, “nautdawn”: 1547809816, “sunset”: 1547848336, “nautdusk”: 1547852161, “astrodusk”: 1547854128, “civdusk”: 1547850139, “astrodawn”: 1547807848, “sunrise”: 1547813641 }

WeatherConditions (#224)
Version 2.1547549739 01/15/19 05:55:39
Message/status: Not tripped
Group #1 false as of 01-15.05:44:47
=f (service) World Weather (85) urn:upnp-micasaverde-com:serviceId:Weather1/ConditionGroup contains “Freezing Rain/Sleet” [false/false as of 01-15.05:44:47/01-15.05:44:47; snow at 02:35:36]
Group #2 false as of 01-15.05:45:34
=f (service) World Weather (85) urn:upnp-micasaverde-com:serviceId:Weather1/ConditionGroup contains “Snow” [false/false as of 01-15.05:45:34/01-15.05:45:34; snow at 02:35:36]
Trip Actions
Device 121 (WX Outlet) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=1 )
Untrip Actions
Device 121 (WX Outlet) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=0 )
Events
01/18/19 03:41:34 start:

Any thoughts?
Thanks,
Dave

I would suspect it’s the use of “snow” vs “Snow” that’s not engaged trigger.

Wunderground API has Current Condition Phrases as Snow. APP variables have a mixed bag of upper and lower case.
I’ll add another Group for lower case and see of that trips it. Figuring out “Freezing Rain/Sleet” should be fun.

Thanks,
Dave

I’m outside of the USA and Wunderground is still up and running for me…rather annoying as I moved all weather related automation from it.

I hear the WU API is disabled at the end of January.

Update:
https://apicommunity.wunderground.com/weatherapi/topics/weather-underground-api-update

I have a PWS and have been uploading > 10 years now so I might be an onwner contributor

Personal Weather Station (PWS) owners/contributors will continue to be eligible for a free replacement API service selected from our standard IBM/Weather Company standard offerings that contain:

Current observations from the PWS network
5 day daily forecast
PWS historical data
PWS lookup by geocode, zip code and location
Call volume: 1500/day, 30/minute

Just have to rely on someone to update the World Weather APP I suppose.
Dave