* Add nws weather. * Hassfest * Address multiple comments * Add NWS icon weather code link * Add metar fallback. Use metar code from nws observation if normal api is missing data. * only get 1 observation - we dont use more than 1 * add mocked metar for tests * lint * mock metar package for all tests * add check for metar attributes * catch errors in setup * add timeout error * handle request exceptions * check and test for missing observations * refactor to new pynws * change to simpler api * Make py3.5 compatible Remove f string * bump pynws version * gen_requirements * fix wind bearing observation * Revert "Make py3.5 compatible" This reverts commit 4946d91779a6e539ea43e667b2265557a49a0bb5. * Precommit black missed a file? * black test * add exceptional weather condition * bump pynws version * update requirements_all * address comments * move observation and forecast outside try-except-else * Revert "move observation and forecast outside try-except-else" This reverts commit 53b78b32837b55b8a0b61de6192e846f6a486754. * remove else from update forecast block * remove unneeded ConfigEntryNotReady import * add scan_interval, reduce min_time_between_updates * pytest tests * lint test docstring * use async await * lat and lon inclusive in config
81 lines
2.5 KiB
JSON
81 lines
2.5 KiB
JSON
{
|
|
"@context": [
|
|
"https://raw.githubusercontent.com/geojson/geojson-ld/master/contexts/geojson-base.jsonld",
|
|
{
|
|
"wx": "https://api.weather.gov/ontology#",
|
|
"geo": "http://www.opengis.net/ont/geosparql#",
|
|
"unit": "http://codes.wmo.int/common/unit/",
|
|
"@vocab": "https://api.weather.gov/ontology#"
|
|
}
|
|
],
|
|
"type": "Feature",
|
|
"geometry": {
|
|
"type": "GeometryCollection",
|
|
"geometries": [
|
|
{
|
|
"type": "Point",
|
|
"coordinates": [
|
|
-85.014692800000006,
|
|
39.993574700000003
|
|
]
|
|
},
|
|
{
|
|
"type": "Polygon",
|
|
"coordinates": [
|
|
[
|
|
[
|
|
-85.027968599999994,
|
|
40.005368300000001
|
|
],
|
|
[
|
|
-85.0300814,
|
|
39.983399599999998
|
|
],
|
|
[
|
|
-85.001420100000004,
|
|
39.981779299999999
|
|
],
|
|
[
|
|
-84.999301200000005,
|
|
40.0037479
|
|
],
|
|
[
|
|
-85.027968599999994,
|
|
40.005368300000001
|
|
]
|
|
]
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"properties": {
|
|
"updated": "2019-08-12T23:17:40+00:00",
|
|
"units": "us",
|
|
"forecastGenerator": "BaselineForecastGenerator",
|
|
"generatedAt": "2019-08-13T00:33:19+00:00",
|
|
"updateTime": "2019-08-12T23:17:40+00:00",
|
|
"validTimes": "2019-08-12T17:00:00+00:00/P8DT6H",
|
|
"elevation": {
|
|
"value": 366.06479999999999,
|
|
"unitCode": "unit:m"
|
|
},
|
|
"periods": [
|
|
{
|
|
"number": null,
|
|
"name": null,
|
|
"startTime": null,
|
|
"endTime": null,
|
|
"isDaytime": null,
|
|
"temperature": null,
|
|
"temperatureUnit": null,
|
|
"temperatureTrend": null,
|
|
"windSpeed": null,
|
|
"windDirection": null,
|
|
"icon": null,
|
|
"shortForecast": null,
|
|
"detailedForecast": null
|
|
}
|
|
]
|
|
}
|
|
}
|