Skip to content

thomas-hutterer-tik/springboot-mqtt-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

MQTT stands for MQ Telemetry Transport. It is a publish/subscribe, extremely simple and lightweight messaging protocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. The design principles are to minimise network bandwidth and device resource requirements whilst also attempting to ensure reliability and some degree of assurance of delivery. These principles also turn out to make the protocol ideal of the emerging “machine-to-machine” (M2M) or “Internet of Things” world of connected devices, and for mobile applications where bandwidth and battery power are at a premium.

OwnTracks allows you to keep track of your own location. You can build your private location diary or share it with your family and friends. OwnTracks is open-source and uses open protocols for communication so you can be sure your data stays secure and private.

This project demonstrates the use of MQTT as a lightweight message protocol to track gps information and visualize it on a Google map.

screen-shot-1

Build Instructions

  1. git clone https://github.com/frensley/springboot-mqtt-demo.git
  2. cd springboot-mqtt-demo
  3. ./gradlew build
  4. ./gradlew bootRun
  5. Use your browser to open http://localhost:8080

Owntracks Client Instructions

  1. Download OwnTracks for your mobile device
  2. Access settings menu
  3. Deactivate TLS
  4. Deactivate Auth
  5. Enter the IP address or Host name of the machine in the Host field
  6. Enter a unique name in the DeviceID field

To publish Owntracks location use Location Monitoring Mode Menu (second icon from left on top of OwnTracks tab). Location publish can be done using the "Publish Now" or "Move Mode" selections.

To-do:

  • More unit testing
  • Documentation
  • Better UI experience
  • Better broker/messaging solution (ActiveMQ)

About

Spring boot, MQTT, Owntracks, Neo4j/Spatial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.2%
  • Java 42.6%
  • HTML 4.9%
  • CSS 1.3%