Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samie/bluemix-mqtt-dashboard
MQTT dashboard example for IBM Bluemix
https://github.com/samie/bluemix-mqtt-dashboard
bluemix ibmcloud java mqtt vaadin
Last synced: 21 days ago
JSON representation
MQTT dashboard example for IBM Bluemix
- Host: GitHub
- URL: https://github.com/samie/bluemix-mqtt-dashboard
- Owner: samie
- Created: 2015-03-06T08:54:31.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T16:08:06.000Z (almost 2 years ago)
- Last Synced: 2023-03-14T09:15:30.241Z (over 1 year ago)
- Topics: bluemix, ibmcloud, java, mqtt, vaadin
- Language: Java
- Homepage:
- Size: 347 KB
- Stars: 3
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vaadin MQTT Dashboard sample for Bluemix
There are several displays for [MQTT](http://mqtt.org/) based [Bluemix IoT](https://internetofthings.ibmcloud.com/) dashboards:
* round gauge with text value
* vertical bar display
* sparkline for history data
* polar display for directional data
* list display for text messagesBy default the application shows drone altitude, message log and slider to set the drone altitude.
![Screenshot](/drone-altitude-dashboard.png?raw=true "Drone control")
You can find test it out live here: [mqtt-dashboard.mybluemix.net/drone](http://mqtt-dashboard.mybluemix.net/drone)
## Get the source and compile
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._
## Setting up IoT foundation for messaging
First you need to [setup the The IBM Internet of Things service](https://www.ng.bluemix.net/docs/#services/IoT/index.html#gettingstartedtemplate)
in your Bluemix dashboard and configure the application.
![Screenshot](/setup-iot-service.png?raw=true "Setup IoT in Bluemix")You can find the application configuration in the [iot-foundation.properties](src/main/resources/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.
## Running the app
To run the application locally and open browser:
mvn jetty:run
open http://localhost:8080/droneDeploy to Bluemix using CloudFoundry commandline tool:
cf push -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._