mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
New USGS Earthquake Hazards Program Feed platform (#7384)
* documenting new usgs earthquakes hazards program feed platform * renamed platform * changed release number Co-Authored-By: exxamalte <exxamalte@users.noreply.github.com>
This commit is contained in:
parent
2d4c0d06dc
commit
49f832f810
@ -19,10 +19,11 @@ Entities can have associated geo location coordinates (latitude and longitude) s
|
||||
|
||||
The [Geo Location trigger](/docs/automation/trigger/#geo-location-trigger) can be used in automations triggered by Geo Location entities appearing in or disappearing from zones. The following value must be used as `source` of the trigger depending on which platform is managing the entities:
|
||||
|
||||
| Platform | Source |
|
||||
|----------------------------------|-------------------------------|
|
||||
| GeoJSON Events | `geo_json_events` |
|
||||
| NSW Rural Fire Service Incidents | `nsw_rural_fire_service_feed` |
|
||||
| Platform | Source |
|
||||
|---------------------------------------------------|-------------------------------|
|
||||
| GeoJSON Events | `geo_json_events` |
|
||||
| NSW Rural Fire Service Incidents | `nsw_rural_fire_service_feed` |
|
||||
| U.S. Geological Survey Earthquake Hazards Program | `usgs_earthquakes_feed` |
|
||||
|
||||
Conditions can be used to further filter entities, for example by inspecting their state attributes.
|
||||
|
||||
|
109
source/_components/geo_location.usgs_earthquakes_feed.markdown
Normal file
109
source/_components/geo_location.usgs_earthquakes_feed.markdown
Normal file
@ -0,0 +1,109 @@
|
||||
---
|
||||
layout: page
|
||||
title: "USGS Earthquakes"
|
||||
description: "Instructions on how to integrate the U.S. Geological Survey Earthquake Hazards Program Feed feed into Home Assistant."
|
||||
date: 2018-11-05 08:00
|
||||
sidebar: true
|
||||
comments: false
|
||||
sharing: true
|
||||
footer: true
|
||||
logo: us-geological-survey.png
|
||||
ha_category: Geo Location
|
||||
ha_iot_class: "Cloud Polling"
|
||||
ha_release: 0.84
|
||||
---
|
||||
|
||||
The `usgs_earthquakes_feed` platform lets you integrate a GeoJSON feed provided by the [U.S. Geological Survey](https://earthquake.usgs.gov/) with information about seismic events like earthquakes. It retrieves incidents from a feed and shows information of those incidents filtered by distance to Home Assistant's location.
|
||||
|
||||
<p class='img'>
|
||||
<img src='{{site_root}}/images/screenshots/usgs-earthquake-hazards-program-feed-entities.png' />
|
||||
</p>
|
||||
|
||||
Entities are generated, updated and removed automatically with each update from the feed. Each entity defines latitude and longitude and will be shown on the map automatically. The distance in kilometers is available as the state of each entity.
|
||||
|
||||
<p class='img'>
|
||||
<img src='{{site_root}}/images/screenshots/usgs-earthquake-hazards-program-feed-map.png' />
|
||||
</p>
|
||||
|
||||
The data is updated every 5 minutes.
|
||||
|
||||
## {% linkable_title Configuration %}
|
||||
|
||||
To integrate the U.S. Geological Survey Earthquake Hazards Program feed, add the following lines to your `configuration.yaml`.
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
geo_location:
|
||||
- platform: usgs_earthquakes_feed
|
||||
feed_type: 'past_day_all_earthquakes'
|
||||
```
|
||||
|
||||
{% configuration %}
|
||||
feed_type:
|
||||
description: The U.S. Geological Survey Earthquake Hazards Program provides 20 feeds covering different timeframes and magnitudes. You must select one of the feed types listed below.
|
||||
type: string
|
||||
required: true
|
||||
minimum_magnitude:
|
||||
description: The minimum magnitude of an earthquake to be included.
|
||||
required: false
|
||||
type: float
|
||||
default: 0.0
|
||||
radius:
|
||||
description: The distance in kilometers around Home Assistant's coordinates in which seismic events are included.
|
||||
required: false
|
||||
type: float
|
||||
default: 50km
|
||||
latitude:
|
||||
description: Latitude of the coordinates around which events are considered.
|
||||
required: false
|
||||
type: string
|
||||
default: Latitude defined in your `configuration.yaml`
|
||||
longitude:
|
||||
description: Longitude of the coordinates around which events are considered.
|
||||
required: false
|
||||
type: string
|
||||
default: Longitude defined in your `configuration.yaml`
|
||||
{% endconfiguration %}
|
||||
|
||||
### Supported Feed Types
|
||||
|
||||
| Description | Feed Type |
|
||||
|----------------------------------------|--------------------------------------|
|
||||
| Past Hour - Significant Earthquakes | `past_hour_significant_earthquakes` |
|
||||
| Past Hour - M4.5+ Earthquakes | `past_hour_m45_earthquakes` |
|
||||
| Past Hour - M2.5+ Earthquakes | `past_hour_m25_earthquakes` |
|
||||
| Past Hour - M1.0+ Earthquakes | `past_hour_m10_earthquakes` |
|
||||
| Past Hour - All Earthquakes | `past_hour_all_earthquakes` |
|
||||
| Past Day - Significant Earthquakes | `past_day_significant_earthquakes` |
|
||||
| Past Day - M4.5+ Earthquakes | `past_day_m45_earthquakes` |
|
||||
| Past Day - M2.5+ Earthquakes | `past_day_m25_earthquakes` |
|
||||
| Past Day - M1.0+ Earthquakes | `past_day_m10_earthquakes` |
|
||||
| Past Day - All Earthquakes | `past_day_all_earthquakes` |
|
||||
| Past 7 Days - Significant Earthquakes | `past_week_significant_earthquakes` |
|
||||
| Past 7 Days - M4.5+ Earthquakes | `past_week_m45_earthquakes` |
|
||||
| Past 7 Days - M2.5+ Earthquakes | `past_week_m25_earthquakes` |
|
||||
| Past 7 Days - M1.0+ Earthquakes | `past_week_m10_earthquakes` |
|
||||
| Past 7 Days - All Earthquakes | `past_week_all_earthquakes` |
|
||||
| Past 30 Days - Significant Earthquakes | `past_month_significant_earthquakes` |
|
||||
| Past 30 Days - M4.5+ Earthquakes | `past_month_m45_earthquakes` |
|
||||
| Past 30 Days - M2.5+ Earthquakes | `past_month_m25_earthquakes` |
|
||||
| Past 30 Days - M1.0+ Earthquakes | `past_month_m10_earthquakes` |
|
||||
| Past 30 Days - All Earthquakes | `past_month_all_earthquakes` |
|
||||
|
||||
|
||||
## {% linkable_title State Attributes %}
|
||||
|
||||
The following state attributes are available for each entity in addition to the standard ones:
|
||||
|
||||
| Attribute | Description |
|
||||
|--------------------|-------------|
|
||||
| latitude | Latitude of the earthquake. |
|
||||
| longitude | Longitude of the earthquake. |
|
||||
| source | `usgs_earthquakes_feed` to be used in conjunction with `geo_location` automation trigger. |
|
||||
| external_id | The external ID used in the feed to identify the earthquake in the feed. |
|
||||
| place | Textual description of named geographic region near to the event. |
|
||||
| magnitude | Reported magnitude of the earthquake. |
|
||||
| time | Date and time when this event occurred. |
|
||||
| updated | Date and time when this event was most recently updated. |
|
||||
| status | Indicates whether the event has been reviewed by a human: "automatic", "reviewed", "deleted" |
|
||||
| type | Type of seismic event: "earthquake" or "quarry". |
|
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
After Width: | Height: | Size: 270 KiB |
BIN
source/images/supported_brands/us-geological-survey.png
Normal file
BIN
source/images/supported_brands/us-geological-survey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Loading…
x
Reference in New Issue
Block a user