Giter Club home page Giter Club logo

bluemix-mqtt-dashboard's Introduction

Vaadin MQTT Dashboard sample for Bluemix

There are several displays for MQTT based Bluemix IoT dashboards:

  • round gauge with text value
  • vertical bar display
  • sparkline for history data
  • polar display for directional data
  • list display for text messages

By default the application shows drone altitude, message log and slider to set the drone altitude.

Screenshot

You can find test it out live here: 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 in your Bluemix dashboard and configure the application. Screenshot

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.

Running the app

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.

bluemix-mqtt-dashboard's People

Contributors

samie avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

bluemix-mqtt-dashboard's Issues

Error: mvn install fails for injecting: in.virit.vwscdn.VWSCDNMojo

I just did a git clone based on the instructions from the README.

The mvn install step fails
Downloaded: https://repo.maven.apache.org/maven2/com/vaadin/vaadin-server/7.4.1/vaadin-server-7.4.1.jar (3215 KB at 651.2 KB/sec) Downloaded: https://repo.maven.apache.org/maven2/com/vaadin/vaadin-themes/7.4.1/vaadin-themes-7.4.1.jar (7241 KB at 752.7 KB/sec) [INFO] [INFO] --- vwscdn-maven-plugin:1.3.3:generate (default-generate) @ bluemix-mqtt-dashboard -- [WARNING] Error injecting: in.virit.vwscdn.VWSCDNMojo java.lang.TypeNotPresentException: Type in.virit.vwscdn.VWSCDNMojo not present

The provided error code is

[ERROR] Failed to execute goal in.virit.vwscdn:vwscdn-maven-plugin:1.3.3:generate (default-generate) on project bluemix-mqtt-dashboard: Execution default-generate of goal in.virit.vwscdn:vwscdn-maven-plugin:1.3.3:generate failed: Unable to load the mojo 'generate' in the plugin 'in.virit.vwscdn:vwscdn-maven-plugin:1.3.3' due to an API incompatibility: org.codehaus.plexus.component.repository.exception.ComponentLookupException: in/virit/vwscdn/VWSCDNMojo : Unsupported major.minor version 51.0

I don't know enough of how the code works to fix this and create a pull request for a fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.