OpenWeatherMap-Alerts-Weather-Driver

Yup! My bad - good catch. I'll edit my post.

1 Like

Does anyone of you clever guys know how to get wind direction for tomorrow?


Probably just as accurate.

Seriously ... The One Call API does provide daily forecast of wind_deg , (direction), but this driver does not expose that. You could add it if you wanted to.

1 Like

Hi Matthew! Unfortunately my skills are no where near that. I don't know what to do or where to start - I'm just a newbie looking for some of the same information I found and used in webcore for Smartthings.
if you can point me in the right direction/guides please do :grinning:

WebCoRE is available on Hubitat. Can you bring that piston over to here?

webCoRE can use open weather to fill in $weather system variables in webcore

see:

Yes. Already did - but none of the $weather variables based on whats available in the "dump weather structure" matches the ones used to get the following day(s) wind direction. The available data is very limited - compared to your driver. Your driver has a lot more different possibilites. However it does not have the wind_deg for the following day(s).

Unfortunately the "weather data dump" is pretty limited. In webCore for ST I had access to $twcweather - which - for the wind direction had windDirectionCardinal[2] to give me tomorrows' wind direction. So I'm looking for a way to still get that from somewhere else :slight_smile:

I installed the openweathermap through HPM and can not see any of the "Current States". All of the attribute fields are available but no data for for City. In the City Name, I tried both the zip code and the actual city name.

Under Logs, it says "Settings Disabled". Am I missing something? Can someone help me get this going?

If you are a new OWM user you need to make sure you have subscribed to OWM's One Call By Call API 3.0 That is the API this driver uses. Once you have subscribed and put you API Key into the driver make sure you select the API Key Version 3.0 (On).

OWM does offer other services and those API's use different API Keys. Only the One Call By Call API Key works with this driver.

2 Likes

Thank you so much for taking the time to respond. I'll go give that a try.

Hi, I'm a little late to the party but have just spent the last 10 days off work setting up my entire Hubitat. Love the driver and all the features and data. I am however stuck on no icons on my tile and cannot seem to find where to update or point to. Tile is prefect and finally working after API issues, any help would be appreciated.

Something is preventing your system from finding the icons. Could be a new or changed firewall, virus software, Pi-Hole, browser filter, etc..., You may need to whitelist the location of the icons so your system can get to them. Icons are located here: https://tinyurl.com/icnqz/ which translates to here: https://raw.githubusercontent.com/HubitatCommunity/WeatherIcons/master/ . Make sure both are available and not blocked.

1 Like

Ok, another pitfall !

I registered to OpenWeatherMap to get temperature data. Open API 3.0 Free account to get an APP key which I got.

Configure OpenWeatherMap Driver with the appropriate information and since it is an Open API 3.0, I configured it to 3.0 rather than 2.5.

Wait 6 hours and i get the infamous 401 until it is ready to provide information....

then I got suspicious.

I tried the following HTTP in my browser :

https://api.openweathermap.org/data/2.5/weather?q=laval&appid=fb34cf1c92d72e5f85e2129d6fa61axx (not the real APPID),

and i got some information ( note it is 2.5 not 3.0). In fact I received :

{"coord":{"lon":-73.692,"lat":45.57},"weather":[{"id":804,"main":"Clouds","description":"overcast clouds","icon":"04n"}],"base":"stations","main":{"temp":272.7,"feels_like":269.03,"temp_min":272.02,"temp_max":273.72,"pressure":1009,"humidity":92},"visibility":10000,"wind":{"speed":3.09,"deg":300},"clouds":{"all":100},"dt":1668643803,"sys":{"type":2,"id":2013133,"country":"CA","sunrise":1668599730,"sunset":1668633831},"timezone":-18000,"id":6050610,"name":"Laval","cod":200}

Which looks valid ( in fact if I change one digit in my appid, nothings returns)

So I decided to switch to 2.5 in the driver, but I think the syntax for the HTTP request is not valid since it looks like this when generated by the driver :
https://api.openweathermap.org/data/2.5/onecall?lat=45.557300&lon=-73.772500&exclude=minutely,hourly&mode=json&units=imperial&appid=fb34cf1c92d72e5f85e2129d6fa61axx

Which obviously returns : OpenWeatherMap.org Weather Driver - WARNING: 401:Unauthorized

Any Idea ? Where should I start ?

Thanks

onecall is a different key vs. not onecall.

If you sign up for a new key and don't give payment info, you won't get onecall key.

You won't be charged if you do give payment information so long as you stay under the api limits.

2 Likes

As @nh.schottfam said. If you do not have a valid One Call By Call API key. This driver will not work. Follow this to get your One Call By Call API key. Members

Understood - Hubitat is a powerfull ecosystem, but ... there is a lot of details to master. Did register and waiting a couple of hours to get the APP key activated... My understanding is that I have to regenerate another APP ID (at least that is what I did)...

Thanks

All good now. Thanks for making me someone more knowledgeable tonite

Cheers

J

1 Like

Matthew thank you, in the status in HE in drivers, I have a full data stream and I have icons and pictures clearly from your repository in the data. For the heck of it I changed the URL to github and it updated on my PC in chrome just like with tinyurl the icon appear inside drivers. I cannot get the tile to populate icons/art in Hubitat dashboard by Joe or in the HE stock dashboard. This is on a Fire HD 10 and my chrome browser. I feel so dumb for bothering you with this but my dashboard is incomplete =) Could I have missed something on the config page like "display icons" I am a bit overwhelmed by the toggles and choices. Maybe is missed something. So, update...I messed around in settings, pulled the driver from MakerAPI, added it back and I have graphics. Thank you for your help.

The driver uses a 'tinyurl' because dashboard tiles are limited to 1,024 characters, including all the HTML that is used to format those tiles. You are free to put the icons anywhere you like and the driver allows for that. Be aware the character length of the URL you do use may impact the presentation of the tiles. For example the default 'TinyURL' is 27 characters long. The full Github URL that it points to is 72 characters long, or 45 characters longer than the TinyURL. If the tile exceeds 1,024 characters it will not display at all. This driver will attempt to remove icons to shorten the overall length to make it presentable. There can be up to eight icons, depending on the tile, and the URL length you use must be repeated for each one of those. It does add up quickly.

To add this driver's dashboard tiles, see this post.

This driver does not directly feed any other driver's dashboard tiles? If by 'Hubitat dashboard by Joe' you are referring to this, then that is not a Hubitat platform dashboard, it is an Android app. That android app does present the same icons used in this driver (I have it on my android phone and the icons do appear). You would have to get with it's author to try to figure out why they do not show on your Android device.

I'm not sure what you mean by 'HE stock dashboard'? You would have to get the author of the 'HE stock dashboard' if you want them to make changes to that.

Hope that helps.

Download the Hubitat app