# OpenWeather "Météo" no longer works

**URL:** <https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501>\
**Category:** Configuration\
**Created:** [August 25, 2022, 5:50pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501 "2022-08-25T17:50:30Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2022, 2:29pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/21 "2022-09-12T14:29:31Z")

</div>

![Screenshot 2022-09-12 at 16.29.12](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/5/50f849b86eb6a077dc257df3eadcdd9a093c366b.jpeg)

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [September 12, 2022, 2:34pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/22 "2022-09-12T14:34:31Z")

</div>

So we’re going for the 2.5, right?

---

<div class="post-metadata">

**Author:** ![jerem](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jerem/32/11074_2.png) [@jerem](https://community.gladysassistant.com/u/jerem)\
**Post date:** [September 12, 2022, 2:39pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/23 "2022-09-12T14:39:48Z")

</div>

From what I understand, it’s a different subscription for One Call with billing for more than 1,000 API calls per day.  
I will add the subscription to run the test

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2022, 2:41pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/24 "2022-09-12T14:41:01Z")

</div>

If they ever ask you for a credit card, don’t enter one — we need to find a simple solution that doesn’t require a credit card 🙂

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [September 12, 2022, 2:44pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/25 "2022-09-12T14:44:12Z")

</div>

I tested oncall v3 with my API key, and indeed:

`{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}`

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2022, 2:44pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/26 "2022-09-12T14:44:59Z")

</div>

Okay, I created a new account to test, and:

 ![Screenshot 2022-09-12 at 16.43.47](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/dd40c0d348e69823d05a953b980a8caa4fa0b0d3.jpeg)

By default the new account doesn’t have access to the hourly API, nor to the daily forecast..

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [September 12, 2022, 2:48pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/27 "2022-09-12T14:48:01Z")

</div>

J’ai pareil avec mon vieux compte

EDIT: 😕 [Allow OpenWeatherMap config flow to test using old API to pass by jbouwh · Pull Request #78074 · home-assistant/core · GitHub](https://github.com/home-assistant/core/pull/78074)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2022, 2:50pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/28 "2022-09-12T14:50:57Z")

</div>

Indeed, a false alarm! ^^

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2022, 2:51pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/29 "2022-09-12T14:51:42Z")

</div>

> [@VonOx](#):
>
> EDIT: 😕 [Allow OpenWeatherMap config flow to test using old API to pass by jbouwh · Pull Request #78074 · home-assistant/core · GitHub](https://github.com/home-assistant/core/pull/78074)

Ah! Well, we’ll have to adapt Gladys..

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [September 12, 2022, 3:04pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/30 "2022-09-12T15:04:34Z")

</div>

And additional forecast data for the new keys because the weather route doesn’t return it.

[https://api.openweathermap.org/data/2.5/weather?lat=47&lon=1&lang=fr&appid=XXXXXXXX](https://api.openweathermap.org/data/2.5/weather?lat=47&lon=1&lang=fr&appid=XXXXXXXX)

```auto
{
  "coord": {
    "lon": 1,
    "lat": 47
  },
  "weather": [
    {
      "id": 804,
      "main": "Clouds",
      "description": "couvert",
      "icon": "04d"
    }
  ],
  "base": "stations",
  "main": {
    "temp": 308.27,
    "feels_like": 306.21,
    "temp_min": 308.27,
    "temp_max": 308.27,
    "pressure": 1007,
    "humidity": 19,
    "sea_level": 1007,
    "grnd_level": 992
  },
  "visibility": 10000,
  "wind": {
    "speed": 2.26,
    "deg": 120,
    "gust": 4.1
  },
  "clouds": {
    "all": 94
  },
  "dt": 1662994709,
  "sys": {
    "country": "FR",
    "sunrise": 1662960572,
    "sunset": 1663006528
  },
  "timezone": 7200,
  "id": 2987855,
  "name": "Perrusson",
  "cod": 200
}

```

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 12, 2022, 4:34pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/31 "2022-09-12T16:34:01Z")

</div>

Normally on the free plan we also have access to this endpoint:

> **[5 day weather forecast - OpenWeatherMap](https://openweathermap.org/forecast5)**
>
> Get a comprehensive 5-day weather forecast for any global location with OpenWeather's reliable and
> easy-to-use API. Offering detailed 3-hourly updates in JSON or XML formats, our forecast API integrates seamlessly with
> geocoding for accurate location...

 ![Screenshot 2022-09-12 at 18.33.27](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/fc2c610b4fc5fdd7db5d0e2411f9ec554543f0ae.png)

---

<div class="post-metadata">

**Author:** ![Jluc](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jluc/32/12397_2.png) [@Jluc](https://community.gladysassistant.com/u/Jluc)\
**Post date:** [January 20, 2023, 6:41pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/32 "2023-01-20T18:41:19Z")

</div>

Good evening,  
Reading the discussion didn’t allow me to find the solution to integrate the weather. There are many offers on the site; which one should I choose?  
I get this :

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/9/9496711a93e9807cf3a536a280878e16795a8c6d.png)

---

<div class="post-metadata">

**Author:** ![cicoub13](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/cicoub13/32/4482_2.png) [@cicoub13](https://community.gladysassistant.com/u/cicoub13)\
**Post date:** [January 20, 2023, 7:58pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/33 "2023-01-20T19:58:46Z")

</div>

Hello. You have the step-by-step documentation here [OpenWeather | Gladys Assistant](https://gladysassistant.com/fr/docs/integrations/openweather/)

---

<div class="post-metadata">

**Author:** ![Jluc](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jluc/32/12397_2.png) [@Jluc](https://community.gladysassistant.com/u/Jluc)\
**Post date:** [January 21, 2023, 10:45pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/34 "2023-01-21T22:45:59Z")

</div>

Good evening,  
I will review the procedure and start over from the beginning. Thank you.

---

<div class="post-metadata">

**Author:** ![Bruno94](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/b/f17d59/32.png) [@Bruno94](https://community.gladysassistant.com/u/Bruno94)\
**Post date:** [January 22, 2023, 12:40pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/35 "2023-01-22T12:40:22Z")

</div>

Hello everyone,  
Same issues after following the tutorial procedure

 ![Screenshot_2023-01-22-13-37-15-184-edit_com.android.chrome](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/2/2147d1062afbccef9aa34e08be3d1e89eea9f457.jpeg)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 23, 2023, 2:26am UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/36 "2023-01-23T02:26:06Z")

</div>

Hello you two!

Indeed, OpenWeather changed its offering, the API call we use (OneCall) is no longer available in the free plan (they changed it on their side..) 😕

We’ll need to adapt the Gladys integration to use the free API calls, we’ll probably have less information though.

I created a GitHub issue:

> <https://github.com/GladysAssistant/Gladys/issues/1695>
>
> https://community.gladysassistant.com/t/openweather-meteo/7501/27?u=pierre-gille…s

Otherwise, on OpenWeather’s side, the endpoint we use is available in «&nbsp;Pay as you go&nbsp;», with 1000 free API calls/day, the only catch is that you have to enter your credit card:

 ![Screenshot 2023-01-23 at 09.19.22](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/f/ffa757ef44e57fbf3e290fa04fc4e1ff9b9f362a.png)

If anyone drops by and wants to propose a PR, I’m interested, I already have a thousand things this month on Gladys and I hadn’t planned this dev at all!

---

<div class="post-metadata">

**Author:** ![Jluc](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/jluc/32/12397_2.png) [@Jluc](https://community.gladysassistant.com/u/Jluc)\
**Post date:** [January 23, 2023, 1:00pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/37 "2023-01-23T13:00:13Z")

</div>

Thanks Pierre-Gilles for your feedback

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [January 30, 2023, 4:13am UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/38 "2023-01-30T04:13:15Z")

</div>

I did a bit of digging (and tested it in real life).

**In the free tier now, we effectively have access to:**

- Live weather
- Next 5 days in 3-hour increments

So the things we’ll lose compared to the current development are:

 ![Screenshot 2023-01-30 at 10.57.38](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/1/1cfeb529ddf45dff5e5f796b9252123739d40d8a.png)

→ No more hour-by-hour, only 3-hour increments  
 → Forecasts for 5 days only

For forecasts for the following days, we’ll also have to do a little workaround, because until now we had a «&nbsp;per day&nbsp;» prediction, and now we only have «&nbsp;3-hourly&nbsp;» forecasts.

But that’s not the same thing! When we see «&nbsp;26°/27°&nbsp;» in my screenshot, does the number on the left correspond to the day’s lowest temperature and the one on the right to the highest? If so, we need to compute that by iterating over the day’s 8 predictions.

**Management of existing users**

All users who created their token before this change still have access to the old API.

2 options:

1. We code a special mechanism for them to keep the existing code so that users whose key works with the One Call can still use the full API. Need to see how to determine the «&nbsp;old&nbsp;» tokens from the new ones.
2. We switch everyone to the new API, which causes a regression in terms of features for existing users.

Option 1 is preferable, but requires more work.

**For detecting «&nbsp;old vs new&nbsp;», several approaches:**

- Use the creation date of the variable in the DB
- Test both API calls; if one works and the other doesn’t, we can store somewhere (DB or RAM) whether the user is new or old

**Hourly (hour-by-hour) via Gladys Plus?**

If there’s demand, I could pay for the One Call API via Gladys Plus and offer it to Gladys Plus users. Then again, I’m not sure it’s worth it just to have hour-by-hour on your dashboard, especially since we all have free weather apps on our phones…

---

<div class="post-metadata">

**Author:** ![cce66](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/c/8797f3/32.png) [@cce66](https://community.gladysassistant.com/u/cce66)\
**Post date:** [January 30, 2023, 11:32am UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/39 "2023-01-30T11:32:58Z")

</div>

> [@pierre-gilles](#):
>
> **Hour-by-hour via Gladys Plus?**
> 
> If there’s demand, I could pay for the OneCall API via Gladys Plus and offer it to Gladys Plus users. After that, I’m not really sure it’s worth it just to have hour-by-hour on your dashboard, especially since we all have free weather apps on our phones…

We lose the benefit it could have of knowing the weather in advance, for example for controlling roller shutters, awnings, alerts, or weather-based automations. So it’s a real plus!  
Maybe consider other APIs, for example 7 Reliable Weather API Solutions for your smart products

> **[8 solutions API météo de confiance pour vos produits intelligents](https://geekflare.com/fr/weather-api/)**
>
> Vous envisagez de créer une application liée à la météo ? Ces API peuvent faire le travail pour vous.

[https://public.opendatasoft.com/explore/dataset/arome-0025-enriched/table/?disjunctive.commune\u0026disjunctive.code\_commune](https://public.opendatasoft.com/explore/dataset/arome-0025-enriched/table/?disjunctive.commune%5Cu0026disjunctive.code_commune)

---

<div class="post-metadata">

**Author:** ![Einstein8854](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/einstein8854/32/9474_2.png) [@Einstein8854](https://community.gladysassistant.com/u/Einstein8854)\
**Post date:** [January 30, 2023, 2:44pm UTC](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501/40 "2023-01-30T14:44:58Z")

</div>

Hello @pierre-gilles ,

That’s where the interest lies in being able to connect to your own outdoor station for those who have one like me (cf. my requests a while back… about the Bresser station) but the drawback is these stations now tend to transmit their data via the box to a third‑party client (Weather Underground for me) which obviously must give us access to our own data (via an API)

That’s why you suggested at the time — and which I implemented — to go through Node-RED and MQTT.  
And it works very well!

One caveat: some data that I can retrieve via Node-RED cannot be returned (even though useful) in Gladys because the formats are not compatible with the formats offered in the MQTT devices(fake) features, notably the «&nbsp;inconnu&nbsp;» feature, and here I’m talking about things I’ve already raised and for which I recently formalized feature requests (support for a text format that I will supplement with a date format, not having a value-range enforced by default for features) but also the request I made about graph rendering so that views longer than 24 hours can be max, min, … and not averaged values as today.

I’ve been a bit long-winded, I hope this remains understandable and that you can tie it back to my previous posts on the subject.

[Previous page](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501.md?page=1)

[Next page](https://community.gladysassistant.com/t/openweather-meteo-ne-fonctionne-plus/7501.md?page=3)
