WeatherBlox - Sun & Moon
Sun & MoonObject
aeris.wxblox.views.SunMoonData Usage
/sunmoon (1)
The SunMoon component displays the monthly sun and moon information for a single location, such as sunrise, sunset, moon phases and illumination.

Examples
Display the sun and moon data for the active month in Boulder, CO:
const view = new aeris.wxblox.views.SunMoon('#wxblox');
view.load({
p: 'boulder,co'
});Configuration
The following configuration options are supported by this view:
| Option | Description | Default |
|---|---|---|
range.from | Type: string () | |
range.to | Type: string () | |
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