See where the wind is coming from, compare sustained speed with gusts, and switch units.
Wind and Gusts · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
readingWindObservation | null (optional)
Wind-from bearing clockwise from true north, sustained speed and gusts in mph, and an optional observedAt timestamp. Individual measurements can be null. Pass null for an unavailable feed or omit to show the sample.
locationstring (optional)
Observation site shown above the readings.
initialUnitWindUnit (optional)
Initial display unit for local selection. Defaults to mph.
unitWindUnit (optional)
Controlled display unit. Choose mph, km/h, kn or m/s.
onUnitChange(unit: WindUnit) => void
Called when the user chooses a different unit. If unit is controlled, update that prop to confirm the selection.
simulateboolean (optional)
Animates only the built-in sample. When reduced motion is enabled, the sample stays still.
Data and integration
Preview
Alder Point shows sustained wind and gusts. In the interactive example the compass follows changes in the sample bearing.
Inputs
Supply sustained speedMph and gustMph in miles per hour, and direction in degrees clockwise from true north. The bearing names the direction the wind comes from. For example, 270° is wind from the west. Supply the reporting site through location and the observation time through reading.observedAt.
Source options
Map a station or provider observation, using sustained speed and gusts from the same reporting context. Publish a new reading when the host refreshes its feed. Use ISO 8601 with an explicit offset for observedAt. The widget displays it in UTC.
Actions
Select mph, km/h, kn or m/s using the segmented control. Use the arrow keys, Home or End when the control has focus. Pass unit and onUnitChange to manage the preference in your app.
Integration requirements
Use finite, nonnegative speeds and null for missing measurements. A true zero sustained speed displays Calm and hides the needle. The compass normalizes finite bearings to 0–359.999… degrees and uses the nearest of 16 compass points. Units affect display only. mph, km/h and kn display as whole numbers, and m/s shows one decimal. Pass reading: null when unavailable. Only an omitted reading can show simulated measurements.