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
3583611600 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
- Answered5 of 5 agreed4 needed#18143,583,611,600from aviationweather.gov#133,583,611,600from aviationweather.gov#16463,583,611,600from aviationweather.gov#19433,583,611,600from aviationweather.gov#3983,583,611,600from aviationweather.gov
Signedby the attester 0x5598…2982expired
Checking the signature in this browser.
- typed data
- the exact bytes a consumer verifies, as JSON
- attester
- 0x5598aa9146215bc13eb26f2c692ad1461fd32982
- signature
- 0x2d405b42ba3c7b5c7cb133cbb691c765a2b8825b9902e894545810af8d5ca09713363cf1231ac14bc058a2e0d644cafd14d45990a1dd2f5d7afbc4f79743e9011c
- signed panel
- 5 agreed · quorum 4 · 5 seats
- question hash
- 0x39eecf277118e4219d50e4352a2fcf943cf802239c546d54dd4baba53c72d787
- answer type
- uint256
- consumer
- Ethereum mainnet · 0x37bfb8ac7c960e558657871d41ca70e07e7dbfff