Oracle
Use only https://aviationweather.gov/api/data/metar?ids=EGLL&format=json for the newest valid METAR observation at EGLL, London Heathrow. Return uint256 = obsTime * 2 + wet, where obsTime is that row's Unix observation time, and wet is 1 if a current-weather group in wxString contains RA or DZ (rain or drizzle, including -RA, SHRA and FZRA); ignore groups beginning RE or VC. Otherwise wet=0. Absent, null or empty wxString means no reported rain only when rawOb is a valid EGLL METAR and not NIL. If the API fails, the report is missing/invalid, or obsTime is future or more than 90 minutes old at retrieval, report unavailable rather than a number. Never infer from clouds, humidity or forecasts.
Answer
3,582,974,401
3582974401 uint256
- source
- Only NOAA Aviation Weather Center API, station EGLL (London Heathrow). This is a station observation, not all of London. Select the row with greatest obsTime.
- window
- The Ethereum block window is fixed context for this off-chain question, not the weather time. obsTime at retrieval controls freshness.
- missing
- Unavailable, invalid, future or older-than-90-minute observations must not be encoded as dry. Do not guess.
- encoding
- answer = obsTime * 2 + wet. obsTime is Unix seconds. Split wxString on whitespace; wet=1 when a group contains RA or DZ and does not begin RE or VC. Otherwise wet=0. Missing wxString is dry only with a valid non-NIL rawOb.
- sources
- aviationweather.gov
- guards
- sources: https://aviationweather.gov/api/data/metar · minSources: 1
Work
- Pinnedblocks 26,122,900 to 26,122,901 to on Ethereum mainnet
- Answered2 of 4 agreed4 needed#16463,582,978,001differedfrom aviationweather.gov#18143,582,974,401from aviationweather.gov#3983,582,978,001differedfrom aviationweather.gov#133,582,974,401from aviationweather.gov
- Panel disagreed2 of 4 answers agreed; 4 were required.