World Air Quality Index (Waqi) widget

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
thierry1952
Posts: 2
Joined: Monday 19 April 2021 18:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Brussels
Contact:

World Air Quality Index (Waqi) widget

Post by thierry1952 »

I'm trying to find a way to include an air quality widget from World Air Quality Index.

As I get the message "You can’t post image, email or url links that are external to this domain", more info in attachments.

Is there a way to get the widget in Dashticz ?
Attachments
Waqi widget.jpeg
Waqi widget.jpeg (48.94 KiB) Viewed 1080 times
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: World Air Quality Index (Waqi) widget

Post by Lokonli »

Yes :)
waqi.jpg
waqi.jpg (53.33 KiB) Viewed 1040 times
waqi-xsmall.jpg
waqi-xsmall.jpg (25.71 KiB) Viewed 1040 times
WAQI provides a few standard widgets, which are easy to integrate. I'll make a Dashticz block for these:
https://aqicn.org/widgets/wordpress/brussels/


WAQI also provides a customizable widget, which will take a bit more effort to integrate, I'll add this to the Dashticz wishlist. See:
https://aqicn.org/faq/2015-07-28/air-qu ... oved-feed/
thierry1952
Posts: 2
Joined: Monday 19 April 2021 18:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Brussels
Contact:

Re: World Air Quality Index (Waqi) widget

Post by thierry1952 »

Tks a lot for your response - I really can't wait to include the new Waqi block in my Dashticz screen !
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: World Air Quality Index (Waqi) widget

Post by Lokonli »

done.

Check latest beta.

Documentation:
https://dashticz.readthedocs.io/en/beta ... .html#waqi
kamal
Posts: 3
Joined: Wednesday 20 March 2024 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: World Air Quality Index (Waqi) widget

Post by kamal »

Hello Lokonli,

The readthedocs link fails to mention that the blocks must have the type: 'waqi'

In the block example: there is no type
And the parameters list has 2 times city but not type.

For clarity I believe it should be added.

Thanks for the work.
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: World Air Quality Index (Waqi) widget

Post by Lokonli »

Thanks for reporting.
If you can change it yourself on github (clone the repository, make the corrections, create a Pull Request (PR)) that would be great.
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: World Air Quality Index (Waqi) widget

Post by HansieNL »

I updated the docs. PR #1188

Code: Select all

//example for Amsterdam, large
blocks['My WAQI']= {
   type: 'waqi',
   layout: 'large',
   city: 5771
};
Added type: 'waqi' to parameters
Blah blah blah
Lokonli
Posts: 2260
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: World Air Quality Index (Waqi) widget

Post by Lokonli »

Thanks @HansieNL!


Verzonden vanaf mijn iPhone met Tapatalk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest