Skip to content

Latest commit

 

History

History
123 lines (87 loc) · 2.96 KB

README.md

File metadata and controls

123 lines (87 loc) · 2.96 KB

Simple Spring Boot application measuring temperature with a BMP085 sensor.

Features

  • A Springboot standalone application measuring temperature and pressure with an BMP085 sensor
  • Measured data is sent via MQTT to a RabbitMQ server
  • Application is using Spring-Integration with annotation based configuration
  • A Springboot web application consuming the MQTT data and relaying it via STOMP
  • pushing the data via Websocket to the clients
  • A Springboot standalone application consuming the MQTT data and writing it to a Google Spreadsheet
  • A Springboot standalone application pushing alerts to your smartphone using Pushover

CI build

Prerequisites

What you need to run the applications:

Module description

raspberrypi-boot-bmp085

This is the application meant to run on Raspberry PI, measuring data via BMP085 sensor. In development mode there is a mock implementation generating random data.

Application properties can be configured in

raspberrypi-boot-bmp085/src/main/resources

Use

mvn clean install

to build the application and

java -jar target/raspberrypi-boot-bmp085-1.4.0-SNAPSHOT.jar --spring.profiles.active=dev
mvn spring-boot:run -Dspring.profiles.active=dev

to run it on the development machine.

raspberrypi-boot-server

This is the web application relaying the MQTT data via stomp and pushing it to the clients via Websocket.

Application properties can be configured in

raspberrypi-boot-server/src/main/resources

Use

mvn clean install

to build the application and

mvn springBoot:run -Dspring.profiles.active=dev

to run it.

raspberrypi-boot-gdata

This is the application consuming the MQTT data and writing it to a Google Data Spreadsheet. Please make sure you have an Google Account and downloaded the JSON Credentials file as described in this document

Application properties can be configured in

raspberrypi-boot-gdata/src/main/resources

Use

mvn clean install

to build the application and

mvn springBoot:run -Dspring.profiles.active=dev

to run it.

raspberrypi-boot-pushover

This is the application sending temperature alerts to your smartphone if the server sends notification event.

Application properties can be configured in

raspberrypi-boot-pushover/src/main/resources

Use

mvn clean install

to build the application and

mvn springBoot:run -Dspring.profiles.active=dev

to run it.