Previous posts:
EasyConfigure - Modular/Configurable System Intro
EasyConfigure - Hardware Components
EasyConfigure - BASH scripting
EasyConfigure - MQTT test setup
EasyConfigure - Remote sensor unit preparation
Sudden Impact Monitor
This application is used to present current sensor readings from selected remote sensor unit. Short history is visible as realtime chart.
Previously, I made a video of this application running but data that was fed to it was published with a utility application made just for testing.
This time, data is published using a real wireless device powered from battery (ESP8266 module). Random values are still being published, but this time, I'm a step closer to my goal.
User interface is really simple but some additional features are planned.
At the top of the window, unit selection is given with "friendly" unit names shown in dropdown selector. These names are hardcoded in this build, but I plan to allow their change through the Sudden Impact Configurator tool GUI.
As for the value that's being displayed, this version displays only one value as that's what it's getting from broker (this is published by remote sensor unit).
Figure 1. Sudden Impact Monitor being updated from ESP8266 running Arduino sketch (Serial port debug visible)
Usage
As soon as user starts the application, it connects to MQTT broker and subscribes to the first topic in a list. When user changes selection in the Select remote unit dropdown, chart is cleared and data published by other unit is displayed.
Further improvements
1) Multiple sensor values will be displayed using different colours.
2) Alert functionality will be added. This will enable alerts if any of units triggers alert. Alerts are generated (published to a special MQTT topic) whenever some threshold value is crossed. These values will also be configurable using Sudden Impact Configurator (EasyConfigure - Configurator). Monitor will always be subscribed to alerts topic.
Top Comments