lkcozy / calgarysensor

Stimulate moving sensors in the Calgary city. When they are moving, they can monitor temperature and other information. The background service is developed based on Spring MVC. This uses Google Map to display these sensors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CalgarySensor

Overview

CalgarySensor is a web application that stimulates 1000 sensors moving in Calgary at the speed of 150 km/hr. They will randomly change their direction of the movement and obtain observer temperature every 15 seconds. The number of sensors and parameters of the sensor, such as speed, direction change frequency and temperature observe frequency, can be modified in the configuration file.

This web application is built on the Java Spring framework and the background services should be deployed to Tomcat.

The background services include:

  • initializeSensor.do: Creat all sensors and initialize the sensor settings.
  • stimulate.do?start=start: Start or stop stimulation, the parameter ‘start’ can be ‘start’ or ‘stop’.
  • querySensorInfoById.do?id=sid0001: Query certain sensor information service by certain one sensor's id.
  • getSensorInfo.do:Get all sensors' information.

Screenshot

Screenshot

DEMO

This web application works well both on desktop browsers and portable devices.You can see a running version of the application here .

Quick Start

  • Copy calgarysensorserver.war to webapps folder on server VM001
  • Copy calgarysensormap folder to webapps folder on server VM002
    • Edit index.jsp
      • Find “SERVER_HOST” and change its default value

Note:

About

Stimulate moving sensors in the Calgary city. When they are moving, they can monitor temperature and other information. The background service is developed based on Spring MVC. This uses Google Map to display these sensors.

License:MIT License


Languages

Language:JavaScript 76.5%Language:Java 21.9%Language:HTML 1.3%Language:CSS 0.3%