How to setup Weather?

I eventually got it from a UK site. I have finally been able to connect to Open Weather. Not sure how to set up some super tiles to use this information not that I spent a week getting to connect to a weather service while simultaneously getting my Yamaha AVR working and Super Tiles. MyQ took days to debug. On does what Open should and Off does what Close should. Open makes the hub think it is opening when it is not opening and only when the contact report differently does the status change but ON actually opens the door too. I think with Weather you have to install it and wait a half hour before trying tom get any tile to work. I just takes a long ting to initially connect to their server so it reports data.

Meanwhile, is their a tutorial for dummies like me on how to setup Super Tiles for a weather display. It looks so nice in the demos.

Yes, its all documented on the site.
Pretty much all apps and drivers come with instructions :slight_smile: All free :+1:

https://cobra-apps.co.uk

I may have time Tuesday to deal with it.

1 Like

I'm starting back up with Hubitat. I got Webcore going, and now want weather. I followed this procedure:

Optional Apps:

Then I created a piston to get the temp and weather summary per the wiki:

$weather.current.temp
$weather.forecast.forecast.txt_forecast.forecastday[0]

While I get the temp, I only get a blank line for the forecast. What do I need to do to get the rest of $weather working?

When you go into 'webCoRE Storage' app and you dump the data, can you see if forecast is supported?
I'm using Open Weather and cannot see that option dumped.

I'm trying to use OpenWeatherMap. I do not see a Forecast option in the dump. I have that driver in the Drivers list.

With open weather there is the current weather dumped and also
daily 0 through to 7.
Maybe these are options for days ahead. i.e. forecast for the days ahead.
Just a thought but I don't know.
Maybe converting the epoch times for sunrise and sunset will give an idea of the day.

Yes, I can see that structure in Apps-WebCore Storage. But per the instructions, I also created a virtual device called Weather. So how do I access the weather info, using the $weather.current.temp construct or {[Weather.current.temp]} like I would for any device? BTW, neither works.

I've just converted some of the epoch times that I get displayed and they are indeed future days forecast so I assume you can just use those.
Not something I need to do but it may be OK for you.

You could just use this of course.

Yes that is the driver I have in my Driver list. Since neither construct works, I feel I'm doing something fundamentally wrong. I'll keep at it.

1 Like

You probably already figured this out as it's been a couple of months, but OpenWeatherMap's API key takes awhile to activate before you can actually start using it. But I just wanted to post for anyone else in the future. :slight_smile:

3 Likes

Yeah, good point. I had a brief run-in with that (but noticed the warning on the OWM site; and indeed when I waited a while it started working; in my case not the worst-case they quoted, 48 hours or something, but considerably less, which made me happy).

You shouldn't post your API key on the internet. Others will be able to use it and it will go against your rate limiting.

My goodness, thank you for posting this. I couldn't figure out why it wasn't working!

1 Like

How do I get the weather icon to show up on a tile?

1 Like

I went through this after getting an API form OpenWeatherMap -- I get no data, the log shows this error:

OpenWeatherMap - getWeather() execption groovyx.net.http.HttpResponseException: status code: 401, reason phrase: Unauthorized

Did I miss something?

Yep --> Unauthorized

It's hard to just guess what's wrong but it will be something like the API code is invalid within the Driver.

Screen Shot 2022-08-09 at 1.01.57 PM

Make sure you copy it exactly. No missed chars. :smiley:

2 Likes

I call IFM. I went back in to verify the configuration data a BLAM I had weather.