A simple CLI to answer a simple - yet important - question: "Is the mountain out?"
Open up your favorite terminal and do one of the following:
Using curl
curl themtn.top
curl https://themtn.top
Using powershell
(Invoke-WebRequest -Uri themtn.top).Content
(Invoke-WebRequest -Uri https://themtn.top).Content
If you're not from Seattle and don't know what I mean by Mountain, this is what I'm talking about!:
Mt. Rainier it all its glory!
While the requests are low, there's an open API endpoint available at /api
:
(Invoke-WebRequest -Uri https://themtn.top/api).Content
gets you:
{
"result":true,
"image":"https://ismtrainierout.com/timelapse/2017_06_19/1550.jpg"
}
There's an even simpler version of the API at /api/simple
that return status code 200 OK
if it's out or 404 Not Found
if it's not.
Here are a list of projects that currently use this API: