2019-08-10 10:50:27 +00:00
|
|
|
"""Define constants for the GeoNet NZ Quakes integration."""
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
DOMAIN = "geonetnz_quakes"
|
|
|
|
|
2019-09-03 15:16:13 +00:00
|
|
|
PLATFORMS = ("sensor", "geo_location")
|
|
|
|
|
2019-08-10 10:50:27 +00:00
|
|
|
CONF_MINIMUM_MAGNITUDE = "minimum_magnitude"
|
|
|
|
CONF_MMI = "mmi"
|
|
|
|
|
|
|
|
FEED = "feed"
|
|
|
|
|
2019-09-03 15:16:13 +00:00
|
|
|
DEFAULT_FILTER_TIME_INTERVAL = timedelta(days=7)
|
2019-08-10 10:50:27 +00:00
|
|
|
DEFAULT_MINIMUM_MAGNITUDE = 0.0
|
|
|
|
DEFAULT_MMI = 3
|
|
|
|
DEFAULT_RADIUS = 50.0
|
|
|
|
DEFAULT_SCAN_INTERVAL = timedelta(minutes=5)
|
2019-09-03 15:16:13 +00:00
|
|
|
|
|
|
|
SIGNAL_DELETE_ENTITY = "geonetnz_quakes_delete_{}"
|
|
|
|
SIGNAL_UPDATE_ENTITY = "geonetnz_quakes_update_{}"
|
|
|
|
SIGNAL_STATUS = "geonetnz_quakes_status_{}"
|
|
|
|
|
|
|
|
SIGNAL_NEW_GEOLOCATION = "geonetnz_quakes_new_geolocation_{}"
|