Weather warnings Forecast API endpoint

Does anyone know if the Tempest forecast API endpoint provides weather warnings for a specific station when they are in force?

Best link I can find is https://business.tempest.earth/compare-station-solutions#api-services but it doesn’t sound like they have any such feature. I think the API reference is Forecast - I see no alerts or warnings at all.

The links to the APIs via Getting Started with the Tempest API don’t even resolve to anything and the other API docs via WeatherFlow Tempest API & Developer Platform point to earlier/different documentation. What a mess. Just awful.

2 Likes

There are no alert/warnings with the Tempest API. Even if Tempest did provide it, I wouldn’t use it…instead getting it direct from the National Weather Service who would be providing it to Tempest anyway.

For any scripting that needs weather alerts I use this URL from the NWS:
https://api.weather.gov/alerts/active?point=" + os.getenv('LATLON')
with the LATLON passing in the latitude and longitude of your location.

Documentation here: API Web Service

1 Like

Nice. With a major airport nearby the NWS is a great solution for me. Thanks !!!

Just as another option, the Belchertown skin for weewx uses Aeris but you do need to register with Aeris and get a client id and accompanying secret key which is pretty easy to do…


https://api.aerisapi.com/alerts/LAT,LON?&format=json&limit=1&client_id=MYID&client_secret=MYSECRET

For me at home currently this returns:

{
  "success": true,
  "error": {
    "code": "warn_no_data",
    "description": "Valid request. No results available based on your query parameters."
  },
  "response": []
}

Setting it to a random lat/lon in the north NJ area I get an air quality alert…

{
  "success": true,
  "error": null,
  "response": [
    {
      "id": "666b4ca1707adfb7117194db",
      "loc": {
        "long": -74.411344961045,
        "lat": 40.439378972826
      },
      "dataSource": "noaa_nws",
      "details": {
        "type": "AQA",
        "name": "AIR QUALITY ALERT",
        "loc": "NJZ012",
        "emergency": false,
        "priority": 116,
        "color": "808080",
        "cat": "airquality",
        "body": "The New Jersey Department of Environmental Protection has\nissued a code orange air quality alert Friday for Middlesex\nand Mercer Counties.\n\nA code orange air quality alert means that air pollution\nconcentrations within the region may become unhealthy for\nsensitive groups. Sensitive groups include children...people\nsuffering from asthma... heart disease or other lung\ndiseases...and the elderly. The effects of air pollution can\nbe minimized by avoiding strenuous activity or exercise outdoors.\n\nFor more information on ground-level ozone and fine\nparticles...visit http://www.state.nj.us/dep/",
        "bodyFull": "AEUS71 KPHI 131945\nAQAPHI\n\nAir Quality Alert\nNational Weather Service Mount Holly NJ\n345 PM EDT Thu Jun 13 2024\nNJZ012-015\nMiddlesex-Mercer\n\n...AIR QUALITY ALERT IS IN EFFECT FOR FRIDAY JUNE 14...\n\nThe New Jersey Department of Environmental Protection has\nissued a code orange air quality alert Friday for Middlesex\nand Mercer Counties.\n\nA code orange air quality alert means that air pollution\nconcentrations within the region may become unhealthy for\nsensitive groups. Sensitive groups include children...people\nsuffering from asthma... heart disease or other lung\ndiseases...and the elderly. The effects of air pollution can\nbe minimized by avoiding strenuous activity or exercise outdoors.\n\nFor more information on ground-level ozone and fine\nparticles...visit http://www.state.nj.us/dep/"
      },
      "timestamps": {
        "issued": 1718307900,
        "issuedISO": "2024-06-13T15:45:00-04:00",
        "begins": 1718307900,
        "beginsISO": "2024-06-13T15:45:00-04:00",
        "expires": 1718424000,
        "expiresISO": "2024-06-15T00:00:00-04:00",
        "updated": 1718307900,
        "updateISO": "2024-06-13T15:45:00-04:00",
        "added": 1718308001,
        "addedISO": "2024-06-13T15:46:41-04:00",
        "created": 1718308001,
        "createdISO": "2024-06-13T15:46:41-04:00"
      },
      "poly": "",
      "geoPoly": null,
      "includes": {
        "fips": [
          "34023",
          "34021"
        ],
        "counties": [],
        "wxzones": [
          "NJZ012",
          "NJZ015"
        ],
        "zipcodes": [
          "07001",
          "07008",
          "07064",
          "07067",
          "07077",
          "07080",
          "07095",
          "07747",
          "08512",
          "08520",
          "08525",
          "08528",
          "08534",
          "08536",
          "08540",
          "08541",
          "08542",
          "08543",
          "08544",
          "08550",
          "08560",
          "08561",
          "08601",
          "08602",
          "08603",
          "08604",
          "08605",
          "08606",
          "08607",
          "08608",
          "08609",
          "08610",
          "08611",
          "08618",
          "08619",
          "08620",
          "08625",
          "08628",
          "08629",
          "08638",
          "08645",
          "08646",
          "08647",
          "08648",
          "08666",
          "08690",
          "08691",
          "08695",
          "08810",
          "08816",
          "08817",
          "08818",
          "08820",
          "08823",
          "08824",
          "08828",
          "08830",
          "08831",
          "08832",
          "08837",
          "08840",
          "08846",
          "08850",
          "08852",
          "08854",
          "08855",
          "08857",
          "08859",
          "08861",
          "08862",
          "08863",
          "08871",
          "08872",
          "08875",
          "08879",
          "08882",
          "08884",
          "08899",
          "08901",
          "08902",
          "08903",
          "08904",
          "08906",
          "08933",
          "08989"
        ]
      },
      "place": {
        "name": "middlesex",
        "state": "nj",
        "country": "us"
      },
      "profile": {
        "tz": "America/New_York",
        "isSmallPoly": false
      },
      "active": true
    }
  ]
1 Like

My old stomping grounds! Yes, they and the NYC area are under an AQI advisory today…

Thanks for all the suggestions. I was hoping the Tempest Forecast endpoint contained the alerts as they show in the app, but oh well. I’m looking for something that aggregates data from all over the world (or at least Europe, US and Australia), so I don’t have to rely on a country specific option. Adding in a geolocation step to determine which service to use is just a bit annoying!