Created
January 2, 2025 15:11
-
-
Save theundefined/be1b11a46501436e18b1e8c107af6c4d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest: | |
- resource: 'https://public-esa.ose.gov.pl/api/v1/smog' | |
scan_interval: 600 | |
sensor: | |
- name: ESA Szkola Podstawowa nr 112 pm10 | |
value_template: "{{ value_json['smog_data'] | selectattr('school.name', 'equalto', 'SZKOŁA PODSTAWOWA NR 112 W POZNANIU') | map(attribute='data.pm10_avg') | first }}" | |
unit_of_measurement: 'µg/m³' | |
- name: ESA Szkola Podstawowa nr 112 pm25 | |
value_template: "{{ value_json['smog_data'] | selectattr('school.name', 'equalto', 'SZKOŁA PODSTAWOWA NR 112 W POZNANIU') | map(attribute='data.pm25_avg') | first }}" | |
unit_of_measurement: 'µg/m³' | |
- name: ESA Szkola Podstawowa nr 112 temperature | |
value_template: "{{ value_json['smog_data'] | selectattr('school.name', 'equalto', 'SZKOŁA PODSTAWOWA NR 112 W POZNANIU') | map(attribute='data.temperature_avg') | first }}" | |
unit_of_measurement: '°C' | |
- resource: 'https://danepubliczne.imgw.pl/api/data/synop/id/12330' | |
scan_interval: 600 | |
sensor: | |
- name: imgw_poznan_godzina | |
value_template: '{{ value_json.godzina_pomiaru }}' | |
unit_of_measurement: 'h' | |
- name: imgw_poznan_temperatura | |
value_template: '{{ value_json.temperatura }}' | |
unit_of_measurement: '°C' | |
- name: imgw_poznan_predkosc_wiatru | |
value_template: '{{ value_json.predkosc_wiatru }}' | |
unit_of_measurement: 'm/s' | |
- name: imgw_poznan_kierunek_wiatru | |
value_template: '{{ value_json.kierunek_wiatru }}' | |
unit_of_measurement: '°' | |
- name: imgw_poznan_wilgotnosc_wzgledna | |
value_template: '{{ value_json.wilgotnosc_wzgledna }}' | |
unit_of_measurement: '%' | |
- name: imgw_poznan_suma_opadu | |
value_template: '{{ value_json.suma_opadu }}' | |
unit_of_measurement: 'mm' | |
- name: imgw_poznan_cisnienie | |
value_template: '{{ value_json.cisnienie }}' | |
unit_of_measurement: 'hPa' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment