Q2 Can anybody see a way to get current conditions in JSON form?

Yes, for a given station. As per the documentation, use e.g.: https://api.weather.gov/stations/RRWO3/observations/latest which returns

{ "@context": [ "https://raw.githubusercontent.com/geojson/geojson-ld/master/c +ontexts/ge ojson-base.jsonld", { "wx": "https://api.weather.gov/ontology#", "s": "https://schema.org/", "geo": "http://www.opengis.net/ont/geosparql#", "unit": "http://codes.wmo.int/common/unit/", "@vocab": "https://api.weather.gov/ontology#", "geometry": { "@id": "s:GeoCoordinates", "@type": "geo:wktLiteral" }, "city": "s:addressLocality", "state": "s:addressRegion", "distance": { "@id": "s:Distance", "@type": "s:QuantitativeValue" }, "bearing": { "@type": "s:QuantitativeValue" }, "value": { "@id": "s:value" }, "unitCode": { "@id": "s:unitCode", "@type": "@id" }, "forecastOffice": { "@type": "@id" }, "forecastGridData": { "@type": "@id" }, "publicZone": { "@type": "@id" }, "county": { "@type": "@id" } } ], "id": "https://api.weather.gov/stations/RRWO3/observations/2020-04 +-29T12:35: 00+00:00", "type": "Feature", "geometry": { "type": "Point", "coordinates": [ -122.2908, 45.542200000000001 ] }, "properties": { "@id": "https://api.weather.gov/stations/RRWO3/observations/20 +20-04-29T1 2:35:00+00:00", "@type": "wx:ObservationStation", "elevation": { "value": 9.0999999999999996, "unitCode": "unit:m" }, "station": "https://api.weather.gov/stations/RRWO3", "timestamp": "2020-04-29T12:35:00+00:00", "rawMessage": null, "textDescription": "Clear", "icon": "https://api.weather.gov/icons/land/night/skc?size=med +ium", "presentWeather": [], "temperature": { "value": null, "unitCode": "unit:degC", "qualityControl": "qc:Z" }, "dewpoint": { "value": null, "unitCode": "unit:degC", "qualityControl": "qc:Z" }, "windDirection": { "value": null, "unitCode": "unit:degree_(angle)", "qualityControl": "qc:Z" }, "windSpeed": { "value": null, "unitCode": "unit:m_s-1", "qualityControl": "qc:Z" }, "windGust": { "value": null, "unitCode": "unit:m_s-1", "qualityControl": "qc:Z" }, "barometricPressure": { "value": null, "unitCode": "unit:Pa", "qualityControl": "qc:Z" }, "seaLevelPressure": { "value": null, "unitCode": "unit:Pa", "qualityControl": "qc:Z" }, "visibility": { "value": null, "unitCode": "unit:m", "qualityControl": "qc:Z" }, "maxTemperatureLast24Hours": { "value": null, "unitCode": "unit:degC", "qualityControl": null }, "minTemperatureLast24Hours": { "value": null, "unitCode": "unit:degC", "qualityControl": null }, "precipitationLast3Hours": { "value": null, "unitCode": "unit:m", "qualityControl": "qc:Z" }, "relativeHumidity": { "value": null, "unitCode": "unit:percent", "qualityControl": "qc:C" }, "windChill": { "value": null, "unitCode": "unit:degC", "qualityControl": "qc:V" }, "heatIndex": { "value": null, "unitCode": "unit:degC", "qualityControl": "qc:V" }, "cloudLayers": [] } }

Is that what you meant? Obviously replace RRWO3 with the station of interest.


In reply to Re^3: using a stochastic matrix to simulate weather conditions by hippo
in thread using a stochastic matrix to simulate weather conditions by Aldebaran

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.