WeatherBlox - Observations Archive
Observations ArchiveObject
aeris.wxblox.views.ArchiveObservationsData Usage
The ArchiveObservations view displays the past weather conditions for a single day (hourly observations) or an entire month (daily summaries) at a particular location.

Examples
Display the observation history for Minneapolis, MN for 5/25/2017:
const view = new aeris.wxblox.views.ArchiveObservations('#wxblox', {
range: {
from: '5/25/2017'
}
});
view.load({
p: 'minneapolis,mn'
});Display the daily observation summaries for Houston, TX for the month of December 2016:
const view = new aeris.wxblox.views.ArchiveObservations('#wxblox', {
summary: true,
range: {
from: '12/1/2016'
}
});
view.load({
p: 'houston,tx'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
summary | Type: boolean () | |
range.from | Type: string () | |
range.to | Type: string () | |
enabled | Type: boolean () | |
metric | Type: boolean () | |
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