Possibly, however when the JSON is parsed, it does not separate out the values and typical each call gives a long list of updates that occurred in the previous time period. I managed to filter these by the past 24 hours, however the list is extensively long, so further filtering it down to 6 hours and then adding 12 hours, and 18 and 24 hours may be doable the the times are not at specific intervals so setting it up to be precise based on the intervals NWS updates at would seem cumbersome to say the least. The following step from there would be to sort out why it does not provide an actual integer for the value the API presents.
{
"@context": [
"https://geojson.org/geojson-ld/geojson-context.jsonld",
{
"@version": "1.1",
"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/PADQ/observations/2023-08-09T18:53:00+00:00",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-152.5,
57.75
]
},
"properties": {
"@id": "https://api.weather.gov/stations/PADQ/observations/2023-08-09T18:53:00+00:00",
"@type": "wx:ObservationStation",
"elevation": {
"unitCode": "wmoUnit:m",
"value": 34
},
"station": "https://api.weather.gov/stations/PADQ",
"timestamp": "2023-08-09T18:53:00+00:00",
"rawMessage": "PADQ 091853Z 06003KT 10SM -RA BKN003 OVC007 12/11 A2961 RMK AO2 SLP028 P0001 T01170111",
"textDescription": "Light Rain",
"icon": "https://api.weather.gov/icons/land/day/rain?size=medium",
"presentWeather": [
{
"intensity": "light",
"modifier": null,
"weather": "rain",
"rawString": "-RA"
}
],
"temperature": {
"unitCode": "wmoUnit:degC",
"value": 11.7,
"qualityControl": "V"
},
"dewpoint": {
"unitCode": "wmoUnit:degC",
"value": 11.1,
"qualityControl": "V"
},
"windDirection": {
"unitCode": "wmoUnit:degree_(angle)",
"value": 60,
"qualityControl": "V"
},
"windSpeed": {
"unitCode": "wmoUnit:km_h-1",
"value": 5.4,
"qualityControl": "V"
},
"windGust": {
"unitCode": "wmoUnit:km_h-1",
"value": null,
"qualityControl": "Z"
},
"barometricPressure": {
"unitCode": "wmoUnit:Pa",
"value": 100270,
"qualityControl": "V"
},
"seaLevelPressure": {
"unitCode": "wmoUnit:Pa",
"value": 100280,
"qualityControl": "V"
},
"visibility": {
"unitCode": "wmoUnit:m",
"value": 16090,
"qualityControl": "C"
},
"maxTemperatureLast24Hours": {
"unitCode": "wmoUnit:degC",
"value": null
},
"minTemperatureLast24Hours": {
"unitCode": "wmoUnit:degC",
"value": null
},
"precipitationLastHour": {
"unitCode": "wmoUnit:mm",
"value": 0,
"qualityControl": "C"
},
"precipitationLast3Hours": {
"unitCode": "wmoUnit:mm",
"value": null,
"qualityControl": "Z"
},
"precipitationLast6Hours": {
"unitCode": "wmoUnit:mm",
"value": null,
"qualityControl": "Z"
},
"relativeHumidity": {
"unitCode": "wmoUnit:percent",
"value": 96.107794274811,
"qualityControl": "V"
},
"windChill": {
"unitCode": "wmoUnit:degC",
"value": null,
"qualityControl": "V"
},
"heatIndex": {
"unitCode": "wmoUnit:degC",
"value": null,
"qualityControl": "V"
},
"cloudLayers": [
{
"base": {
"unitCode": "wmoUnit:m",
"value": 90
},
"amount": "BKN"
},
{
"base": {
"unitCode": "wmoUnit:m",
"value": 210
},
"amount": "OVC"
}
]
}
}
Above is what the response looks like for the latest observations.