Skip to content

SMS messenger to improve Lifeguard responsiveness in First Aid scenarios.

Notifications You must be signed in to change notification settings

hannahrjiang/LifeguardMessenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lifeguard Messenger

Lifeguards must always be ready to handle an upcoming emergency or first aid situation. My local beach stays prepared by reviewing possible scenarios and their treatments, but the studying process involves flipping through a thick Red Cross First Aid manual to find the correct responses. Because this process is slow and tedious, and because quick and accurate treatment is essential in an emergency situation, I created this Lifeguard SMS Messenger. This messenger receives a text from a lifeguard detailing a scenario, such as "heart attack" or "dog bite," and searches through a table of scenarios to respond with the proper treatment. Whether it is used for studying or in emergency situations, I hope this bot will contribute to lifeguard efficiency and accuracy in the future.

See the messenger in action here! (Will open link to Google Drive).

Right now, the number in the video only responds to phone numbers that I have approved. If you are a local Parks & Recreation employee who wishes to use it, please send an email to [email protected].

How to Use

The messenger is very simple. Start with typing "hello" to the provided number and it will respond with a list of possible scenarios. When a scenario is selected, it will respond with its treatment!

Prerequisites

To recreate this messenger, the following is required:

  1. A device that can receive SMS messages
  2. Twilio account and Twilio phone number
  3. An sms-webhook service. I used ngrok to test this project, and will be using it as an example below.

Running the Project

Begin by downloading LifeguardMessage.ipynb and FAScenarios.csv (the table of First Aid Scenarios). To start the ngrok proxy, type the following into the Terminal. Note that the port number (in this case, 5050) can be any port that is not currently in use on your computer. I found that ports 3000 and 5000 both worked fine.

ngrok http 5050

This will cause the following screen to pop up:

alt text

See the link beside the first "forwarding"? In Twilio, go to the section "Messaging" under the "Numbers" tab and change the URL beside "When a message comes in" to that link. Then, add /sms behind it. It should look something like this:

http://{ngrok url}/sms

Below, I've copied and pasted that link into Twilio and saved my changes.

alt text

Go ahead and run the code in LifeguardMessage.ipynb on your device. You should now be able to text your number and recieve a response.

About

SMS messenger to improve Lifeguard responsiveness in First Aid scenarios.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published