Motion
Get Motion

ReferenceScripting APIMotionSceneweatherAt

MotionScene.weatherAt

method

The weather at a place the scene names itself: a Weather layer's Place, or a setting that follows the weather at a place of its own.

NameweatherAt
Kindmethod of MotionScene
Called asscene.weatherAt(…)
As a nodeGet Weather At (logic graph)
Since0.3

Syntax

weatherAt(place: string | MotionPlace): MotionWeather | null

Parameters

NameTypeDescription
placestring | MotionPlaceThe place, its "lat,lon" key or its name ("Tokyo" finds "Tokyo, Japan")

Returns

MotionWeather | null: the weather there, or null until the desktop says (and for a place the scene doesn't name).

See also

MotionPlace · MotionWeather