Weather widget: Bug or improvement?

Hello,

In the weather widget, I don’t really understand how today’s weather is displayed.

![IMG_20240320_074752|407x500](upload://xTp7OBkhpjEPrSqSQy1zDnB19Kc.jpeg

Hi @McFlyPartages :slight_smile:

We go through the OpenWeather Forecast API (cf Gladys/server/services/openweather/index.js at master · GladysAssistant/Gladys · GitHub), which returns forecasts in 3-hour intervals.

However, where you’re right is that currently we don’t display the first interval — it’s strange, I don’t remember if that was intentional.

I made a PR to change that:

In your case you should see the « 10h » slot with this change. (However you won’t see 7h which has already passed and is not available in the free OpenWeather API)

I’ll keep you posted when this change lands in production.

2 Likes

This fix is available in Gladys Assistant 4.38.1:

I’m closing this thread :slight_smile:

1 Like