# OpenWeather update on dashboard

**URL:** <https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800>\
**Category:** Configuration\
**Tags:** dashboard\
**Created:** [December 31, 2022, 2:18pm UTC](https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800 "2022-12-31T14:18:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![djokoss22](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/d/43a26b/32.png) [@djokoss22](https://community.gladysassistant.com/u/djokoss22)\
**Post date:** [December 31, 2022, 2:18pm UTC](https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800/1 "2022-12-31T14:18:37Z")

</div>

Hello everyone,

Until now, I was using Gladys’ web interface to display my dashboards. And that was fairly rare.  
For a few days now, I’ve been using Android tablets all around my home to display my dashboards and control my devices.

I’ve noticed since then that OpenWeather data is not updating, whether via the Gladys app or its web interface.  
The state of my devices does update correctly as do the various graphs, etc…

I tried several things like restarting my Raspberry Pi 4, revoking all active Gladys sessions in the settings, disabling/re-enabling the OpenWeather service, trying another OpenWeather API key, but nothing works.  
If I display a dashboard, say at 08:00, then at 17:00 the next day the OpenWeather display still shows the 08:00 temperature from the previous day and the forecasts for the hours starting from 08:00 of the previous day. There is no data refresh.

Is anyone else encountering this issue?  
Do I need to create a scene so that the OpenWeather data updates?

Thank you in advance for your help/clarification.

---

<div class="post-metadata">

**Author:** ![spenceur](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/spenceur/32/1961_2.png) [@spenceur](https://community.gladysassistant.com/u/spenceur)\
**Post date:** [January 1, 2023, 6:23pm UTC](https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800/2 "2023-01-01T18:23:09Z")

</div>

No issues on my end, I reload the page when I pass in front of a motion sensor, maybe that’s why

---

<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 2, 2023, 10:18am UTC](https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800/3 "2023-01-02T10:18:57Z")

</div>

> [@djokoss22](#):
>
> If I display a dashboard, say at 08:00, then at 17:00 the next day the OpenWeather display still shows the temperature from 08:00 of the previous day and the forecasts for the hours starting from 08:00 of the previous day. There is no data refresh.

Ok, I just figured out the bug, it’s really dumb! ^^

> <https://github.com/GladysAssistant/Gladys/blob/master/front/src/components/boxs/weather/WeatherBox.jsx#L222>

I created an issue:

> <https://github.com/GladysAssistant/Gladys/issues/1679>
>
> Missing () here =\> https://github.com/GladysAssistant/Gladys/blob/master/front/s…rc/components/boxs/weather/WeatherBox.jsx#L222
> 
> https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800?u=pierre-gilles

---

<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 2, 2023, 10:58am UTC](https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800/4 "2023-01-02T10:58:42Z")

</div>

First commit of 2023 😃

Bug fixed here:

> <https://github.com/GladysAssistant/Gladys/pull/1680>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Fix refresh weather bug

As soon as the tests pass I’ll merge into master

---

<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 2, 2023, 11:41am UTC](https://community.gladysassistant.com/t/mise-a-jour-dopenweather-sur-dashboard/7800/5 "2023-01-02T11:41:17Z")

</div>

It’s merged into master! It will be included in the next Gladys release.
