Skip to Content
Sun & Moon

WeatherBlox - Sun & Moon

Object
aeris.wxblox.views.SunMoon
Data Usage

The SunMoon component displays the monthly sun and moon information for a single location, such as sunrise, sunset, moon phases and illumination.

Sun & Moon

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:

OptionDescriptionDefault
range.fromType: string (){today_date}
range.toType: string ()
enabledType: boolean ()true
metricType: boolean ()false
renderNoDataType: boolean ()true
requestType: object ()

Methods

The following methods are supported by instances of this view:

Events

The following events are triggered by instances of this view:

© 2026 Xweather (opens in a new tab)Terms of Service (opens in a new tab)Privacy Policy (opens in a new tab)