Use selected readings from my privately operated weather station in your own page, project, or experiment. This guide shows what is available and how to read it.
Read-only JSONNo account or API keyVersion 1Latest observations
01 / What is published
Available measurements, explicit units.
The published sensor is outdoor-station, labeled “Outdoor weather station.” Only the selected measurements below are available. New sensors and fields are added deliberately as the project develops.
JSON field
Unit
Meaning
temperature_c
degC
Original station-only temperature in degrees Celsius; this field keeps its existing meaning.
agreed_temperature_c
degC
Legacy two-sensor comparison, retained for compatibility: the stored median of recent Cotech station and Acurite outdoor temperatures. With two sources, this is their midpoint. The value is null when agreement or freshness checks fail. The homepage uses the station-only temperature instead.
humidity_pct
%
Station relative humidity.
wind_speed_m_s
m/s
Station-reported average wind speed. Its averaging window has not been established.
wind_gust_m_s
m/s
Station-reported maximum wind speed. Its reporting interval has not been established.
wind_direction_deg
deg
Station-reported direction, clockwise from north.
The homepage uses the station-only temperature_c and shows it in Fahrenheit, with wind speed in mph. Acurite data is excluded from that display. The legacy agreed_temperature_c field retains its original two-sensor meaning for compatibility. Rain readings are withdrawn from the website because the rain sensor is nonfunctional. Legacy rain fields may remain in API responses for compatibility and must not be used as valid rainfall observations.
These are observations from a personal station. They do not represent the town of Lyle or any government agency. The current API provides latest observations; historical queries and NOAA reporting are not available.
02 / Where to request data
Start with the current weather.
Send a GET request to https://lylewashington.com using one of these paths. Requests are public and read-only, with no account, password, or API key. Cross-origin browser requests are supported without credentials.
Unknown sensors return 404. Temporarily unavailable public data returns 503. Responses are briefly cached; polling every 30 seconds is sufficient for a simple live display.
03 / A first request
Read a value with its context.
Request the current weather.
Open the endpoint in a browser, or make an HTTPS GET request. Check that the response succeeded before parsing its JSON.
Find your measurement.
Read sensor.measurements. For the same station temperature shown on the homepage, use sensor.measurements.temperature_c. Its value is in the accompanying unit. The separate agreed_temperature_c field is the retained legacy two-sensor comparison.
Check freshness and availability.
Use a current numeric value only when export_stale and that measurement’s stale are both false, value is a finite number, and quality is "unverified". Missing or rejected values are null.
Show the timestamp and status.
Keep the measurement’s observed_at with the value. If the reading is stale or unavailable, say so instead of showing it as current. One measurement can be stale while another is fresh.
"unverified" means the reading passed the publication checks, but has not been independently quality assured or scientifically validated.
04 / Use it in a project
A few working examples.
These examples use the public HTTPS address. They request approved readings only and do not require credentials.
This displays the response as JSON. In Windows PowerShell, use curl.exe in place of curl. Inspect the per-measurement status before treating a value as current.
Browser JavaScript
async function readTemperature() {
const response = await fetch(
'https://lylewashington.com/api/v1/weather/current',
{ credentials: 'omit', signal: AbortSignal.timeout(8000) }
);
if (!response.ok) throw new Error('Weather data unavailable');
const data = await response.json();
const reading = data.sensor.measurements.temperature_c;
if (data.export_stale !== false || reading.stale !== false ||
reading.quality !== 'unverified' ||
typeof reading.value !== 'number' ||
!Number.isFinite(reading.value)) {
throw new Error('No current temperature reading');
}
return {
value: reading.value,
unit: reading.unit,
observed_at: reading.observed_at
};
}
readTemperature().then(console.log).catch(console.error);
This reads the agreed temperature used by the homepage. Paste into a modern browser’s developer console, or call the function from your own page. CORS allows read-only requests from another origin. An unavailable agreement raises an error instead of falling back to one sensor.
Python
import json
import math
from urllib.request import Request, urlopen
request = Request(
"https://lylewashington.com/api/v1/weather/current",
headers={"Accept": "application/json"},
)
with urlopen(request, timeout=8) as response:
data = json.load(response)
reading = data["sensor"]["measurements"]["temperature_c"]
value = reading["value"]
if (data["export_stale"] is not False or
reading["stale"] is not False or
reading["quality"] != "unverified" or
type(value) not in (int, float) or not math.isfinite(value)):
raise RuntimeError("No current temperature reading")
print(value, reading["unit"], reading["observed_at"])
This example reads the same station-only temperature_c shown on the homepage, using Python’s standard library. To inspect the legacy two-sensor comparison, use agreed_temperature_c instead; keep all the availability checks. HTTP failures and connection timeouts raise an error instead of supplying an invented value.
05 / Try it here
See what the API returns.
Current weather request
This button fetches the actual public endpoint. The result includes timestamps and status alongside the values.
No request yet.
The response will appear here.
06 / Readings have a history
Fresh data is more than a new response.
Each reading has its own time.
For individual station readings, observed_at is the UTC time the collector received a packet, not an independently verified sampling time. For agreed_temperature_c, it is the finalized UTC minute boundary of the stored calculation, not either sensor’s packet time.
The agreed temperature becomes stale when that minute is more than 120 seconds old. Other measurements become stale after 600 seconds. Check each measurement’s own stale flag.
The export has a separate status.
generated_at describes the published snapshot. export_age_seconds reports its age, and export_stale becomes true after 120 seconds. A new snapshot does not make an old measurement fresh.
How the retained comparison works.
For each finalized UTC minute, one latest observation from the Cotech station and one from the Acurite outdoor sensor are selected at or before that boundary. Each must be at most 120 seconds old at that boundary. The sensors get equal weight even though they transmit at different rates.
If they differ by at most 3°C (5.4°F), agreed_temperature_c is their median: with two values, their arithmetic midpoint. A larger difference produces null with quality: "rejected". Missing, stale or invalid source data produces null with quality: "missing". The API does not substitute one sensor or an earlier agreement.
A numeric agreed result still has quality: "unverified". Agreement is useful, but it does not prove calibration, correct siting, or scientific accuracy.
Missing is not zero.
quality is "unverified", "missing", or "rejected". Unavailable readings use null. A numeric zero, such as calm wind, can be a valid reading.
What does a missing measurement look like?
This illustrative excerpt shows one entry inside sensor.measurements. It is a format example, not a live reading or a complete response.
Check the individual measurement rather than relying only on sensor.stale: that sensor-level flag is true when all of its measurements are stale. This personal station may have errors or gaps.