Pollutants.eu Monitor kvality ovzduší v České republice

pollutagHome is the pollutants.eu home air-quality monitor. It measures particulate matter (PM1, PM2.5 and PM10), temperature, humidity and VOC, and reports its battery voltage. This guide shows how to set up a Blynk dashboard with live readings, an air quality gauge and history charts.

1. Create the template

In Blynk.Console, open Developer Zone → My Templates and create a new template, for example pollutagHome. Note the Template ID and Template Name on the template's Home page. Your firmware has to declare them at the very top:

#define BLYNK_TEMPLATE_ID   "YOUR_TEMPLATE_ID"
#define BLYNK_TEMPLATE_NAME "pollutagHome"

2. Add the datastreams

Click Edit, open the Datastreams tab and create eight Virtual Pin datastreams, all of type Double:

Name Pin Min Max Unit
PM2_5 V0 0 6554 µg/m³
PM1 V1 0 6554 µg/m³
PM10 V2 0 6554 µg/m³
T (temperature) V3 -100 156 °C
RH (humidity) V4 0 100 %
VOC V5 0 6554 –
Battery V6 0 10 V (Volt)
LEDON V7 0 255 –

Tip: Blynk has no built-in "µg/m³" unit. When choosing the unit, type µg/m³ and pick Create new unit. Blynk also has its own Microgram Per Cubic Meter (shown as ug/m³) if you don't mind the plain "u".

3. Build the dashboard

On the Web Dashboard tab, add these widgets:

  • Value tiles for PM2.5, PM1, PM10, Temperature, Humidity, VOC, Battery and LED ON, each linked to its datastream.
  • A chart titled "Particulate Matter" showing PM1, PM2.5 and PM10 together.
  • A chart titled "Temperature & Humidity" showing T and RH.
  • The air quality gauge, explained in the next step.

4. Add the air quality gauge

The gauge is a custom HTML widget. It works out an air quality score (the US EPA Air Quality Index) from the PM2.5 and PM10 readings, and the higher of the two drives the gauge. It also shows a colour-coded level ("Good", "Moderate" and so on), lists all three PM values in µg/m³, and draws a history chart of the score.

  1. Download ZIP with aqi_gauge_w11.html.
  2. In Developer Zone → Assets, click Upload Files and upload the html file, for example into a Widget Library / Display folder.
  3. On the template dashboard, add an HTML widget and choose the uploaded file.
  4. Under Datastreams, add exactly three in this order:
    • 0 = PM2.5 (V0)
    • 1 = PM1 (V1)
    • 2 = PM10 (V2)
    The widget relies on this order.
  5. Save the widget, then click Save And Apply on the template.

PM1 is shown but doesn't count toward the score, because there's no official air quality scale for PM1.

5. Add the device

On the template's Home page, click New Device to create your pollutagHome device. Copy its Auth Token into your firmware or gateway setup.

Keep your Auth Token private. Anyone who has it can send data to your device.

6. Send the data

[pollutants.eu: describe here how pollutagHome sends its readings to Blynk, e.g. the Blynk library over Ethernet/Wi-Fi, the Blynk HTTP API, or a LoRaWAN network integration.]

Whatever the method, each reading must go to its virtual pin from the table above. When values arrive, the tiles, charts and gauge update automatically.

7. Backing up and restoring

  • Gauge widget: in Developer Zone → Assets, open the file's "…" menu. Use Download to save a copy and Replace to upload a new version.
  • Whole template: use Duplicate in the template's "…" menu to copy it within your Blynk organisation. Blynk.Console has no export file for the full template, so keep the datastream table above as your reference.

8. LoRaWAN console HTTP integration example

HTTP connection

  • Method: GET
  • Endpoint: https://fra1.blynk.cloud/external/api/batch/update
  • Headers: None ({})

URL parameters (payload field → Blynk virtual pin)

Param Value
V0 {{decoded.payload.PM2_5}}
V1 {{decoded.payload.PM1}}
V2 {{decoded.payload.PM10}}
V3 {{decoded.payload.T}} (temperature)
V4 {{decoded.payload.RH}} (humidity)
V5 {{decoded.payload.VOC}}
V6 {{decoded.payload.Battery}}
V7 {{decoded.payload.LEDON}}
token [REDACTED – Blynk device auth token]