Lift statuses and notifications for Mammoth Mountain
This app shows you the lift statuses for Mammoth Mountain in a mobile-friendly layout. Clients can also subscribe to lift status updates every 10 minutes via Push Notification (supported on iOS and Android). Notifications are supplied via Firebase Cloud Messaging.
All times are in PDT or PST.
SEASON
ENV key can be Summer
or Winter
. That will change whether the updated or seeded lift info is for that specific season (uses different URLs).
You'll also probably have to change the firebase config in the static firebase messaging and messaging service worker files (app/static/firebase*
).
pipenv shell
pipenv sync
pipenv run web
# with standard web running in a different window/process
pipenv run fake
# in another window/process
python app/jobs/updated_lift_statuses.py
pipenv run test
The lifts and their statuses.
GET /api/lifts?season=Winter
{
"lifts": [
{
"id": 1,
"name": "Broadway Express 1",
"status": "Closed",
"kind": "Quad",
"last_updated": "2020-03-15T13:05:00+00:00"
}
]
}
The most recent lift update.
GET /api/latest_update
{
"id": 1,
"created_on": "2020-03-15T13:05:00+00:00",
"updates": [
{
"name": "Broadway Express 1",
"from": "Expected",
"to": "Open"
}
]
}