Choi-Sung-Hoon / LGSI_webOS_Hackathon

webOS application which notifies that ambulance is approaching in emergency situation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LG Soft India webOS Hackathon

README: 한국어, English


Project Goal

The project goals are to develop an IoT device that can help ambulance driver ensure golden time and reduce traffic accident of ambulances by sending signals to normal drivers to secure rescue lane earlier than an ambulance approach.


Background

Current ambulance traffic laws are focused on ‘how to reduce patient transport time’ with not missing the golden time.

For example, current existing solutions are to hire good qualified drivers or to impose high fine to lawbreakers.

However, these solutions cannot solve the fundamental problem to delay transferring patients via ambulance.

For example, in a sudden situation like an ambulance is rushing on the road, normal drivers may be embarrassed, with not moving aside to clear the lane for the ambulance to pass quickly or the drivers may not think that clearing the lane is not necessary.

This problem may result in another delay or accident.


System Architecture

System Architecture


Prerequisite

Client

Server


Installation

Client

  1. Follow the instructions from ares-package to ares-install from here. This will install webOS application into your Raspberry Pi device.

  2. Move to the directory where this repository is cloned.

    cd ~/Hackathon/LG
    
  3. Update server information in ./raspbian.py

    serverIp = "xxx.xxx.xxx.xxx"
    serverPort = "9999"
    wsUri = "ws://" + serverIp + ":" + serverPort
  4. Update server information in ./ambulanceApp/websocket.js, ./ambulanceRaspbian/websocket.js, ./smartCarApp/websocket.js and ./smartCarRaspbian/websocket.js

    serverIp = "xxx.xxx.xxx.xxx"
    serverPort = "9999"
    wsUri = "ws://" + serverIp + ":" + serverPort

How To Use

Server

  1. Move to the directory where this repository is cloned.

    cd ~/Hackathon/LG
    
  2. Run the server.

    python server.py
    

Client

  1. Move to the directory where this repository is cloned.

    cd ~/Hackathon/LG
    
  2. Run ./raspbian.py and then run webOS application on Raspberry Pi device.

    python raspbian.py
    

Demo Video

About

webOS application which notifies that ambulance is approaching in emergency situation.

License:Apache License 2.0


Languages

Language:JavaScript 42.5%Language:C++ 21.5%Language:Python 17.6%Language:CSS 10.6%Language:HTML 7.9%