Skip to content

Consumes National Park Service park alerts from API and outputs JSON for Amazon Alexa's flash briefings.

Notifications You must be signed in to change notification settings

tmedgar/nps-flash-briefings

Repository files navigation

nps-flash-briefings

PHP code that calls the National Park Service (NPS) API, consumes data for a park, and outputs that data in JSON that is properly formatted for use by Alexa flash briefings.

  • park-alert-flash-briefing.php - Parks are selected by passing in a single URL variable (e.g., ?park=acad). URL variable must be a valid alphacode for a national park site. All active alerts for the designated park are returned.
  • nps-news-flash-briefing.php - Five newest news items are pulled from NPS API and returned.
  • park-news-flash-briefing-last-five.php - Parks are selected by passing in a single URL variable (e.g., ?park=acad). URL variable must be a valid alphacode for a national park site. The five most recent news releases for the designated park are returned.
  • park-news-flash-briefing-last-month.php - Parks are selected by passing in a single URL variable (e.g., ?park=acad). URL variable must be a valid alphacode for a national park site. All news releases for the designated park no more than four weeks old are returned.

For more information about the NPS API, visit https://developer.nps.gov/api/index.htm.

About

Consumes National Park Service park alerts from API and outputs JSON for Amazon Alexa's flash briefings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages