WeatherBlox - Threats
ThreatsObject
aeris.wxblox.views.ThreatsData Usage
/threats (1)
The Threats view displays information about threatening weather in or approaching your area, such as precipitation intensity, lightning, hail and other severe weather conditions.
Note: If there are no current threats for the requested location, the result of this request will be empty.

Examples
Display the current nearby or approaching threats for Atlanta, GA:
const view = new aeris.wxblox.views.Threats('#wxblox');
view.load({
p: 'atlanta,ga'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
enabled | Type: boolean () | |
metric | Type: boolean () | |
renderNoData | Type: boolean () | |
request | Type: object () | |
Methods
The following methods are supported by instances of this view:
rendered()show()hide()params()setUnits(:number)units()enabled()setMetric(:boolean)load(:object)refresh()isMetric()Events
The following events are triggered by instances of this view:
renderrender:beforerender:afterload:startload:doneload:errorchange:units