Motion
Get Motion

ReferenceScripting APIMotionWeather

MotionWeather

interface

The weather where the desktop is (scene.weather), as a Weather layer shows it. What the desktop doesn't say is null, but rain and cloud come from the conditions and daylight from the sunrise and sunset or the clock.

NameMotionWeather
Kindinterface
Script reaches it asMotionScene.weather · MotionScene.weatherAt() · MotionEvents.weather
Since0.3

Syntax

interface MotionWeather { … }

Properties

NameTypeDescription
knownpropertyreadonly booleanWhether the desktop said what the weather is.
conditionpropertyreadonly "clear" | "partly" | "cloudy" | "fog" | "drizzle" | "rain" | "storm" | "snow" | "sleet" | "wind" | nullWhat it's like: clear, partly, cloudy, fog, drizzle, rain, storm, snow, sleet or wind; null when not known.
temperaturepropertyreadonly number | nullThe temperature, °C, or null.
windpropertyreadonly number | nullThe wind, km/h, or null.
rainpropertyreadonly numberHow hard it rains: 0 dry to 1 pouring.
cloudpropertyreadonly numberHow cloudy it is: 0 clear to 1 overcast.
daylightpropertyreadonly numberHow light it is: 0 at night to 1 at midday, from the sunrise and sunset.
highpropertyreadonly number | nullToday's highest, °C, or null.
lowpropertyreadonly number | nullToday's lowest, °C, or null.
placepropertyreadonly stringThe place it's for, as named.