Air quality info from the web

Hello,

I’m looking to integrate the official public air quality measurements from this website (Wallonia - Belgium):

A widget is available and generated by their site here:

And here’s how it looks:

\u003ciframe src=" https://www.wallonair.be/index.php?option=com_issep\u0026view=widgets_indices\u0026tmpl=widgets\u0026commune=192\u0026auto=false\u0026speed=4000 " scrolling="no" border="0" style="border: none;width:400px;height:350px"\u003e\u003c/iframe\u003e

But I don’t know how to integrate this into my dashboard. Any ideas?

Thanks for your input!

Hi @GBoulvin, you should check whether they have an open API you could call, either from Gladys or from Node-RED, so you can then pull the data into an MQTT virtual device!

1 Like

I haven’t tried it but by taking inspiration from the tutorial script below there’s surely a way to do something directly in gladys.

The script retrieves your widget as an image every X minutes and you insert the link of the generated image into the camera integration which you can then place on your dashboard.

That also works, but it’s a shame, you lose the whole « fully integrated » side of Gladys, where the information that Gladys « knows » is available in the AI, in the scenes, etc…

Yes, I’m not saying otherwise; if there’s a possibility with an API it’s even better.

1 Like

On my side I already do it with Node-RED:

The API used is the following:

https://api.waqi.info/feed/${city}/?token=${apiKey})
3 Likes

I should point out that this can also be done in a Gladys scene, you don’t necessarily need Node-RED :wink:

1 Like

Thanks for your replies!

After researching, there are indeed APIs available (here) but I haven’t yet had the time to look at them.

I’ll keep you posted :wink:

3 Likes

I managed to do it directly in Gladys :slight_smile:
It couldn’t be simpler :sweat_smile:

However, I’d like the date/time to be in day/month/year format while the retrieved value is:

image

Is there a way to do this? :slight_smile:

Thanks

In my opinion, we should retrieve each aa mm dd and send them to an MQTT device in the order that suits you.

Any idea how to do it with Gladys? :grinning_face:

In my opinion, it’s complicated to do that fully in Gladys right now, but we could add a small date-handling function or a date type on the dashboard!

Thanks, I created a feature request: