Last active
August 1, 2023 01:23
-
-
Save mjmenger/852519239771899cb0482db4a790540e to your computer and use it in GitHub Desktop.
weather.gov
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# https://www.weather.gov/documentation/services-web-api | |
# home | |
# @latitude = 45.479293180527236 | |
# @longitude = -122.67109294416308 | |
# Willamette Sailing Club | |
@latitude = 45.47959408818095 | |
@longitude = -122.67105002964772 | |
# @name grid | |
GET https://api.weather.gov/points/{{latitude}},{{longitude}} | |
### | |
@office = {{grid.response.body.properties.gridId}} | |
@gridx = {{grid.response.body.properties.gridX}} | |
@gridy = {{grid.response.body.properties.gridY}} | |
# @name forecast | |
GET https://api.weather.gov/gridpoints/{{office}}/{{gridx}},{{gridy}}/forecast | |
### | |
# @name forecasthourly | |
GET https://api.weather.gov/gridpoints/{{office}}/{{gridx}},{{gridy}}/forecast/hourly | |
### | |
# @name stations | |
GET https://api.weather.gov/gridpoints/{{office}}/{{gridx}},{{gridy}}/stations | |
### | |
# @name alerts | |
GET https://api.weather.gov/alerts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment