Page 1 of 1

World Air Quality Index (Waqi) widget

Posted: Wednesday 07 February 2024 19:26
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 ?

Re: World Air Quality Index (Waqi) widget

Posted: Sunday 11 February 2024 10:58
by Lokonli
Yes :)
waqi.jpg
waqi.jpg (53.33 KiB) Viewed 3172 times
waqi-xsmall.jpg
waqi-xsmall.jpg (25.71 KiB) Viewed 3172 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/

Re: World Air Quality Index (Waqi) widget

Posted: Wednesday 14 February 2024 18:55
by thierry1952
Tks a lot for your response - I really can't wait to include the new Waqi block in my Dashticz screen !

Re: World Air Quality Index (Waqi) widget

Posted: Monday 26 February 2024 20:41
by Lokonli
done.

Check latest beta.

Documentation:
https://dashticz.readthedocs.io/en/beta ... .html#waqi

Re: World Air Quality Index (Waqi) widget

Posted: Thursday 21 March 2024 16:26
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.

Re: World Air Quality Index (Waqi) widget

Posted: Thursday 21 March 2024 17:24
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.

Re: World Air Quality Index (Waqi) widget

Posted: Thursday 21 March 2024 22:14
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

Re: World Air Quality Index (Waqi) widget

Posted: Friday 22 March 2024 2:56
by Lokonli
Thanks @HansieNL!


Verzonden vanaf mijn iPhone met Tapatalk