Downloadable Air Quality Widgets
Wordpress, Wix & Blogger Widget

Aktie: aqicn.org/widgets/airnet/de/

All-in-one simplified scripts

Using a single script:

Or using an iframe:


You can also specify a container identifier ('div' id) when using the script:

<div id='widget1' style='text-align: center'></div>
...

Last, but not least, you can also change the display style but changing the size parameter to one of those: xxl, xlarge, large, medium, small, xsmall. (see below for the visual result)

Advanced scripting setup

The basic integration is simple and straight forward. You first need to add the following piece of code:

<script  src='https://aqicn.org/widgets/js/waqi-feed.v1.js'></script>

Then, just add this other code to include the widget:

The function `_waqiFeed` takes as argument the configuration for the widget. You just need to define the station, and the widget display style (size). This is what is produces:

You can also specify the container identifier ('div' id) where the widget needs to be shown:

<div id='widget2' style='text-align: center;border: 1px dashed #ccc;'></div>

Specifying the display format

The display format can be changed by changing the size parameter to one of those:

xxl
xlarge
large
small
xsmall
_waqiFeed({
size: "xxl",
station: ""
});
_waqiFeed({
size: "xlarge",
station: ""
});
_waqiFeed({
size: "large",
station: ""
});
_waqiFeed({
size: "small",
station: ""
});
_waqiFeed({
size: "xsmall",
station: ""
});

Advanced template engine

It is possible to customize the text to be displayed within the widget by specifying the display option. For instance, to display with both the textual "AQI" name as well as the update time (as shown on the widget on the left), you can use the following code:

_waqiFeed({    
	display:"%cityname  AQI  is  <span  style='%style'>%impact  (%aqiv)</span>  <small>on  %date</small>",  
	station:"A373120"  
});  

The parameter display is an HTML-based string, and can contain any of the following keywords:

  • `%cityname` for the name of the city (eg Beijing),
  • `%aqi` for the decorated AQI value (eg 58),
  • `%aqiv` for the undecorated (raw text) AQI value (eg 58),
  • `%style` for the css declaration of the decorated AQI details (eg background-color: #ffde33;color:#000000;),
  • `%date` for the time at which the AQI was updated (eg Wed 20:00),
  • `%impact` for the associated health impact (eg Good, Moderate...)
  • `%attribution` for the AQI data attribution ( eg Beijing Environmental Protection Monitoring Center)
  • `%details` for the full AQI details (the content of the popup displayed when moving the mouse over the AQI value).

Here are a few examples:

Display Configuration Result

Specifying the Language

...

You can also specify the language to be used by setting the lang option. For instance, to include the widget in Chinese (as shown on the right), use the following code:

The currently supported languages are:

  • "en": English
  • "cn": Chinese
  • "jp": Japanese
  • "es": Spanish
  • "kr": Korean
  • "ru": Russian
  • "hk": Traditional Chinese
  • "fr": French
  • "pl": Polish
  • "de": German
  • "pt": Portuguese
  • "vn": Vietnamese
  • "it": Italian
  • "id": Indonesian
  • "nl": Dutch
  • "fa": Persian
  • "th": Thai
  • "hu": Hungarian
  • "el": Greek
  • "ro": Romanian
  • "bg": Bulgarian
  • "ur": Urdu
  • "hi": Hindi
  • "ar": Arabic
  • "sr": Serbian
  • "bn": Bangla
  • "hu": Hungarian
  • "bs": Bosnian
  • "hr": Croatian
  • "tr": Turkish
  • "uk": Ukrainian
  • "cs": Czech
  • "be": Belarusian

    If not specified or set to null, English is used.

  • Further questions

    Register to the data-platform and get your "token" to be able to send us questions: aqicn.org/data-platform/register/

    If you have any question or comment, send us a message using the form below:

    Examples

    Click on any of the widgets below to see the associated code:

    Know any Air Quality station in your surroundings?
    Participate with your own air quality monitoring station

    Our GAIA air quality monitors are very easy to set up: You only need a WIFI access point and a USB compatible power supply.

    Once connected, your real time air pollution levels are instantaneously available on the maps and through the API.

    The station comes with a 10-meter water-proof power cable, a USB power supply, mounting equipment and an optional solar panel.

    Über Messungen zur Luftqualität und Verschmutzung

    Über die Luftqualitätsstufen

    - Luftqualitätswerte (AQI)Stufen zur Bewertung der Gesundheitsgefährdung
    0 - 50 Gut Die Luftqualität wird als zufriedenstellend angesehen, und die Luftverschmutzung birgt wenig oder kein Risiko.
    51 -100 Mäßig Luftqualität ist akzeptabel; Bei einigen Schadstoffen kann es jedoch für eine sehr kleine Anzahl von Personen, die gegenüber Luftverschmutzung ungewöhnlich empfindlich sind, zu einem mäßigen Gesundheitsrisiko kommen.
    101-150 Ungesund für sensible Gruppen Mitglieder von sensiblen Gruppen können gesundheitliche Auswirkungen haben. Die breite Öffentlichkeit wird wahrscheinlich nicht betroffen sein.
    151-200 Ungesund Gesundheitliche Auswirkungen sind für jeden spürbar; für sensible Gruppen besteht möglicherweise ein ernstes gesundheitliches Risiko.
    201-300 Sehr Ungesund Notfallwarnung vor Gesundheitsgefahren. Die Gesamtbevölkerung ist davon wahrscheinlich betroffen.
    300+ Gefährlich Gesundheitswarnung: Jeder kann ernstere gesundheitliche Auswirkungen haben

    Um mehr über Luftqualität und -verschmutzung zu erfahren, gehen Sie auf die Seite Luftverschmutzung (Wikipedia) oder den AIRNow Leitfaden für Luftqualität und Ihre Gesundheit der US-amerikanischen Umweltagentur.

    Sehr nützliche Gesundheitsratschläge gibt der Pekinger Arzt Richard Saint Cyr MD, www.myhealthbeijing.com in seinem Blog.


    Nutzungshinweis: Alle Luftqualitätsdaten sind zum Zeitpunkt der Veröffentlichung noch nicht verifiziert, und aufgrund der Qualitätssicherung können diese Daten jederzeit ohne vorherige Ankündigung geändert werden. Das World Air Quality Index Projekt hat alle angemessenen Fähigkeiten und Sorgfalt bei der Zusammenstellung der Inhalte dieser Informationen angewandt und unter keinen Umständen, vertraglich oder anderweitig haftet das , das World Air Quality Index Projektteam oder seine Agenten wegen unerlaubter Handlung oder anderweitig für Verluste, Verletzungen oder Schäden, die direkt oder indirekt aus der Bereitstellung dieser Daten entstehen.



    Einstellungen


    Spracheinstellungen:


    Temperature unit:
    Celcius