MQTT dashboard example for IBM Bluemix
There are several displays for MQTT based Bluemix IoT dashboards:
By default the application shows drone altitude, message log and slider to set the drone altitude.
You can find test it out live here: mqtt-dashboard.mybluemix.net/drone
To compile the the application locally, use:
git clone https://github.com/samie/bluemix-mqtt-dashboard.git
cd bluemix-mqtt-dashboard
mvn install
NOTE: the application does not work out-of-the-box and you need to configure the IoT foundation first.
First you need to setup the The IBM Internet of Things service in your Bluemix dashboard and configure the application.
You can find the application configuration in the iot-foundation.properties. Copy the required configuration data from the dashboard "Devices" and "API keys" tabs.
Note that, if you add more displays in your code, a different client id is needed for every connecting client.
To run the application locally and open browser:
mvn jetty:run
open http://localhost:8080/drone
Deploy to Bluemix using CloudFoundry commandline tool:
cf push <your-app-name> -p target/bluemix-mqtt-dashboard-1.0-SNAPSHOT.war
And your application is online at <your-app-name>.mybluemix.net/drone
Disclaimer: This source code is provided as a sample only. The application is provided "as-is," without any warranty. In no event shall the author be held liable for any costs or damages arising from the use of the software.