Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mbta/elevator_hotline
Phone service that describes issues affecting elevators at stations
https://github.com/mbta/elevator_hotline
Last synced: about 1 month ago
JSON representation
Phone service that describes issues affecting elevators at stations
- Host: GitHub
- URL: https://github.com/mbta/elevator_hotline
- Owner: mbta
- License: mit
- Created: 2020-05-27T16:24:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T20:12:37.000Z (about 1 year ago)
- Last Synced: 2023-11-29T22:41:21.784Z (about 1 year ago)
- Language: JavaScript
- Size: 1.12 MB
- Stars: 1
- Watchers: 17
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# elevator hotline
The MBTA elevator hotline is a service built on top of AWS connect and lambda.
## Amazon Connect
The contact flow is included here as hotline_prod.json/hotline_dev.json
When making changes in amazon connect make sure to export and update the json file in the git repo.
## AWS Lambda
The lambda is called whenever a call is made to the elevator hotline. It in turn calls the mbta api to get the current alerts and then the affected stations. It then builds a payload broken up by line for the ivr.
To run the lambda locally it is recommended to put an api key in .env.override as API_KEY
First install the dependencies by running
```
npm install
```then run
```
npm run local
```