Deixo-vos uma configuração para terem um mapa de epicentro e os dados essenciais do último evento sismico registado, cobrindo Portugal Continental.
IGN.es
Mapa de epicentro:
camera:
- platform: generic
name: Mapa Sismo IGN
framerate: 1
still_image_url: "{{ states('sensor.sismo_mapa_ign') }}"
Entidades:
sensor:
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Mapa (IGN)'
select: "td"
index: 0
scan_interval: 600
value_template: 'https://www.ign.es/web/resources/sismologia/www/dir_images_terremotos/detalle/{{ value }}.gif'
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Data (IGN)'
select: "td"
index: 1
scan_interval: 600
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Hora UTC (IGN)'
select: "td"
index: 2
scan_interval: 600
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Latitude (IGN)'
select: ".tar"
index: 2
scan_interval: 600
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Longitude (IGN)'
select: ".tar"
index: 3
scan_interval: 600
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Magnitude (IGN)'
select: ".tar"
index: 5
unit_of_measurement: 'ML'
scan_interval: 600
- platform: scrape
resource: 'https://www.ign.es/web/ign/portal/ultimos-terremotos/-/ultimos-terremotos/get10dias'
name: 'Sismo - Região (IGN)'
select: ".tal"
index: 0
scan_interval: 600
sensor:
- platform: scrape
resource: 'https://www.emsc-csem.org/Earthquake/?filter=yes&min_lat=30&max_lat=45&min_long=-20&max_long=3&min_intens=0&max_intens=8&view=1'
name: 'Sismo - Data e hora'
select: "a[href]"
index: 72
- platform: scrape
resource: 'https://www.emsc-csem.org/Earthquake/?filter=yes&min_lat=30&max_lat=45&min_long=-20&max_long=3&min_intens=0&max_intens=8&view=1'
name: 'Sismo - Magnitude'
select: ".tabev2"
index: 2
unit_of_measurement: 'ML'
- platform: scrape
resource: 'https://www.emsc-csem.org/Earthquake/?filter=yes&min_lat=30&max_lat=45&min_long=-20&max_long=3&min_intens=0&max_intens=8&view=1'
name: 'Sismo - Região'
select: ".tb_region"
index: 0
Poderão ser úteis para automações de proteção de pessoas e bens, como alarmística ou ativar/desativar entidades ou aparelhos.
Abraço.