[Archived][APP][Pro] OpenWeatherMap

Hi anne

Thanks for the fast response. See my screenshots below. Not working ( 3 intervalls = 9 hours )

Temp is way to low. I now removed the stad land code and see what happens.

Thanks again.

@anne

Turns out its openweathermap itself. Checked on website

Sunday it will be 29c in real world but open weather says 17.5 for amsterdam

Hillegom it will be 24 today at 1500
Openweather says 17

Haarlem same story :frowning:

The app is correct showing to low values

Hi Anne a call from your own town seeing your weather location.
I use 16 3-hour slots to predict the rain in the coming 2 days. If it overshoots a certain amount I shut down my garden watering control.
Sometimes one of the rain predictions is filled with “-”. I add the 16 predictions to one amount, but if one of the 16 is “-” this obviously doesn’t work. It is pretty random in one of them. You would expect all “0” to show as “-” but “0” does appear most of the times.
Is it possible to force a numerical digit, so “0” instead of “-”?

Hi Toon,

Mmm, strange. The ‘rain’ parameter is not always present in the data, which is why I always set the value 0 if the parameter is undefined (although I noticed I don’t do that in the 16 day forecast, I’ll fix that).

The app does not set ‘-‘, which would suggest it comes from the API itself. I can add a check setting the value to 0 if the value is ‘-‘, I guess that might work.

If you could capture the OWM output through the web interface when you get ‘-‘, we would know for sure.

Anyway, I’ll have a look (when I get around to it… :grimacing::+1:).

1 Like

Thank you Anne.
If it occurs I will post an example. Yesterday it was the case according to my log, but of course not right now.
Your solution will probably solve the issues.

I also starter to use owm to warn about weather change. I have roof windows with open-close sensors. Currently I’m using 3h forecast for rain reading. If 3h forecast rain is more then 0 and window is open I get warning.

For now I I’m satisfied. It’s not like rain-alarm (real time reading) rather it’s forecast but ok for warning if I left windows open while forecast is changing.

P. S. Buienradar is completely useless for anything aside few countries like already posted here.

P. P. S. It would be Gr8 to have either 0 or the value like you suggested above.

Thnx for the app, works gr8.

@RonnyW FYI, I think I have addressed this issue. I am waiting for some weather changes to trigger the condition to be sure :wink:

@Toon_Vos @David_K I have changed the ‘rain’ logic to also catch the ‘-’ case, testing that too.

I have made the update available for testing in the alpha channel. If you DM me the email address of your Homey account, I can add your account to the alpha release. The alpha version then becomes available to you in the app store.

Finally, I thought I’d add the new hourly forecast (96 1 hour intervals, so up to four days), however I didn’t realize it requires a paid subscription (only $3,000 USD per month :crazy_face:). Never mind.

Unfortunately, although the data is still available for existing (free) API keys, it seems it is only a matter of time for the 16 day forecast to become limited to paid subscribers only, just like the 4 hour forecast. We’ll see (‘cheapest’ option $40,- USD/month).

Hi Anne love your app. Just have an extra request. Since openweather allows us to also get uv indexes i like to propose to add them to flow options. In that case people can make shutters go up and down automatically or sunscreens. In these warm days now it has a big advantage to take action early in order to keep the house cool. For example temp is 22 c outside and up index is 4. It can get easily much higher in house due to the sunlight heating via the windows. Uv index can also warn for example to wear sunscreen when leaving the house. Or maybe I’m just a vampire trying to figure out if I can leave the house :wink: . I would really appreciate the effort gr. Leroy

There is another app though OpenUV App for Homey | Homey

According to the site of open weather it is free.
https://openweathermap.org/price and I prefer one good app instead of multiple and multiple subscriptions. If it isn’t possible then sorry for the inconvenience

I just had a look, and indeed the UV index can be polled with a free API key, both the current as well as the forecast (up to 8 days).

It’s a bit confusing, on https://openweathermap.org/api it says ‘Available for Professional and Enterprise accounts’. Possibly free access will be revoked later on.

Note that only the UV value for 12:00 p.m. is returned, so the data is limited compared to OpenUv which apparently returns hourly UV values.

Anyway, I plan to add it to the app :+1:

1 Like

Thanks Anne great feedback. Thanks a lot

Hello Anne,
thanks for your response. Please let me know when a app update is online so I can test, too. Thanks :+1:
Bye
Ronny

I have published an alpha version with the fix for the rain is ‘0’ issue. The issue with the conditioncard based on the condition code is not yet fixed in this release. Note that if you want to test you need to DM your Athom login (email address), so I can add you to the list of users eligible for the alpha release.

Hi!
Great app!
I’m trying to use it for automating a window which should open when more than 20C (own sensor) but close if it is wind or rain.
I’m starting with rain, because wind isn’t a big issue. I didn’t quite get how to make it stay up as long as there isn’t any rain, but I tried this:

  • When the weather changes

  • And the window is open

  • And the weather isn’t cloudy

  • And the weather isn’t clear

  • Close the window

  • Send message; Weather is (description), closing window.

Unfortunately it seems like these weather names doesn’t correspond with with what I can choose in the app. F.eks I got a message this morning; “The weather is clear sky, closing window”. And another “the weather is broken clouds, closing window”. And now another again “weather is scattered clouds, closing window. “

So “not cloudy” still ignores all of these?

Sorry if I’m missing something obvious here.

You could try something like:

AND Logic Weather CONTAINS rain

Ok, so not use the OpenWeatherMap cards for that check?

Maybe you can use OWM but instead of comparing the whole description you might be able to check only a part of it (and if it contains rain) then do something.
Beware tough, that I use something like this and one of the descriptions is “dry after rain” which obviously includes the word rain, so I made a check with IS NOT exactly “dry after rain”.

There is a bug in the conditions based on the description/condition codes, they do not trigger reliably in case of changing conditions. Once fixed you don’t have issues with the sometimes strange descriptions as they are based on the numerical condition code, and not on the textual description.

However in the meantime using the rain value should work. You can use the ‘Rain has changed’ condition, and then use tag which contains the nr. of mm of rain, and a logic condition if ‘rain’ > 0 or something like that (the issue with OWM returning emtpy rain values is fixed).

What you can do is set up a couple of different flows for testing (just let them send a notification) to get an idea of the accuracy.

2 Likes

Thanks, seems to be the most stable approach.