Meteo France integration

Today I worked on a meteo france integration.

The current widget with openweather is very good but lacks a bit of color for me.
As I was already using the meteo france api to display a vigilance map (thanks to @prohand’s tutorial Tuto - Afficher les cartes vigilances Météo France) I decided to integrate this directly into Gladys.

As images are more expressive, here are the widgets (it’s the same widget each time but customizable)
Light theme:

Dark theme:

The widget settings

For this integration, you need a free api key only to display the vigilance map. The rest is done without an api key.

I’m waiting for a change in the vigilance level to test the rendering and then I will add a trigger in the scenes for orange/red vigilance, to create scenes to be notified and receive the vigilance text for example.

I love @Will_71 !!

Once I have put the trigger in the scenes, I will provide an image

Here is the test image: docker pull willde71/gladys-test:meteofrance_integration

and the PR

Oops, as I’m still discovering Gladys, how can I try this widget safely and how do I do it?

Hi, I saw that you bought the Gladys kit so you didn’t do the installation.
If you’re a beginner and you didn’t do the first Gladys installation yourself with the Docker commands, I wouldn’t recommend doing it.
But don’t worry, because if it’s well received and I haven’t written too many mistakes in the PR, it could be quickly integrated.

Okay, thank you!

That’s so cool!!!
It’s really nice and indeed it’s more colorful :+1:

However, we find here the small flaw (for me) of the dark theme: it seems to add a dark filter to all elements. Here, the map, the sun icons.

That’s also why the color pickers have a black center instead of white.

It’s not related to this PR but I think we should improve that, what do you think @pierre-gilles?

Actually, I worked on it to mitigate the phenomenon, here’s the result now

Excellent :slight_smile:

Thanks for the dev anyway

Very nice, I like it a lot! :grinning_face_with_smiling_eyes:

The only comment I have is that this is a development very specific to France, whereas the project has an international scope.

I know we already have a few widgets specific to France, but so far the weather widget was international. With this approach, we end up with two widgets that serve the same purpose.

Wouldn’t it be possible to evolve the existing weather widget by allowing the selection of a source (OpenWeather or Météo-France)? Depending on the selected source, it could simply display an appropriate interface. This would avoid duplicating widgets while maintaining support for Météo-France. :slightly_smiling_face:

I hadn’t thought of this case but yes I can work to merge these 2 parts and put the source choice as a parameter. And there will be only one weather widget.

And in general, the design proposal you’re making is super clean and could even replace the existing weather widget, even for data from OpenWeather :slight_smile:

It’s a case-by-case basis :slight_smile:
If there are places where dark mode is poorly implemented, don’t hesitate to create a topic with the details!

In this case, everyone will be able to have the new design with a single weather box, which is quite relevant!

I’m working in this direction to integrate what I’ve done in the OpenWeather part.

So, the OpenWeather integration + my Météo France integration will become the Weather integration. I’ll look for a new image.

For the settings page, I’ll put the explanations for the 2 data sources. But should I put the choice of the 2 sources in a list and, depending on the one selected, then display the related settings or everything on the same page?

For information, here is the display when there is an active alert

You can click on the text to enlarge and read the full alert text.

This text, however, will only be in French as it is the text received directly from the Meteo France API

@pierre-gilles, for the integration I’m not sure what to choose.
Do you prefer having a single weather integration and in the parameter we choose the data source + a weather widget.
Or 2 separate integrations Openweather and Meteo France. A single weather widget with the source choice as a widget parameter?

I’ll add my two cents :stuck_out_tongue_winking_eye:

yes!

yes!

yes!

yes!

Well, there you go :sweat_smile:

Here’s what I did, choosing the source in a weather integration

The widget reconfigured itself based on the source set in the integration