Skip to Content
Sun & Moon Layout

WeatherBlox - Sun & Moon Layout

Object
aeris.wxblox.layouts.local.SunMoon
Data Usage

The SunMoon local layout is a full-page layout containing an embedded SunMoon component to display monthly sun and moon data for the requested month with additional page controls.

Sun & Moon Layout

Examples

Display a full local sun and moon view for Phoenix, AZ for the current month:

const view = new aeris.wxblox.layouts.local.SunMoon('#wxblox'); view.load({ p: 'phoenix,az' });

Configuration

The following configuration options are supported by this view:

OptionDescriptionDefault
dataType: object ()
enabledType: boolean ()true
metricType: boolean ()false

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)