Coder Social home page Coder Social logo

stianlp / helphelpwhereami Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acntech-archive/helphelpwhereami

0.0 1.0 0.0 180 KB

Node-RED flow that contains functionality for figuring out where a patient is located, and dispatching ambulances to the location by sending navigation details to ambulance drivers via Google Glass

helphelpwhereami's Introduction

Help, help! Where am I?

Node-RED flow that contains functionality for figuring out where a patient is located, and dispatching ambulances to the location by sending navigation details to ambulance drivers via Google Glass

Getting started

Prerequisites

Deploy the example

  1. Register for a trial account at http://bluemix.net (IBM's new PaaS offering, launched in July 2014)
  2. Log in
  3. Click on CREATE AN APP
  4. Choose the Boilerplate Node-RED Starter
  5. Give your app a name and click Create
  6. After a few minutes your app will be running (App Health: Your app is running)
  7. Go to https://<your_app_name>.mybluemix.net
  8. Click on Go to your Node-RED flow editor
  9. Copy the text in exercise1.flow
  10. In your Node-RED flow editor click on the menu button (top right)
  11. Choose Import From - Clipboard
  12. Paste the text your copied in 9.
  13. Click Deploy

Running the example

  1. Open a browser and go to https://<your_app_name>.mybluemix.net/map
  • Some firewalls block websocket packets. It is recommended to use HTTPS in the URL to avoid this
  1. Open a browser on your cellphone and go to http://<your_app_name>.mybluemix.net/client/<your_phone_number>
  • OR register for a trial account at http://www.twilio.com and insert your Twilio API key and your phone number into the SMS node. Update the URL in Send SMS to patient and click the Inject-button to send an SMS
  1. In /client/<your_phone_number> enter the patient's name and click Start tracking
  2. View the patient's position in /map
  3. Click the marker of the patient to dispatch an ambulance (Google Glass notification)

Tips and tricks

  • It is easy to simulate the position of the patient with Google Chrome on a desktop in Developer Tools.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.