Skip to content

Raspberry PI Mocks GUI

eerofeev edited this page Jun 8, 2018 · 8 revisions

Raspberry PI Mocks GUI provides the graphical user interface to the Mock CLI tool, that imitates messages Rapberries send to ActiveMQ using MQTT and allows testing without connecting sensors and real Raspberries.

Build

Prerequisites

  • JDK 8
  • Maven >=3.3.9

Build

Clone Hogarama and build Habarama/raspberry-pi-mocks/raspberry-pi-mocks-gui with

mvn clean install

This will create an Wilfdly Swarm executable jar under Habarama/raspberry-pi-mocks/raspberry-pi-mocks-gui/target/raspberry-pi-mocks-gui-swarm.jar

Run

To start on a local machnine type:

java -jar raspberry-pi-mocks-gui-swarm.jar

The last version is automatically deployed on OpenShift via S2I after each git commit and currently available under http://mock-gui-57-hogarama.cloud.itandtel.at/

This application requires the environment variable AMQ_HOST. Put the value http://broker-amq-mqtt:1883 in order to send data in AMQ of current project.

Other optional environment variables:

  • AMQ_USER
  • AMQ_PASSWDORD
  • AMQ_TOPICS

Configurable parameters in GUI

  • Current value
  • Sensor type
  • Sensor name

After click on "Run" the application sends a message with given parameters to AMQ every 3 seconds. Click on "Stop" in order to break sending.