Coder Social home page Coder Social logo

iot-cargo-demo's Introduction

Red Hat IoT Precious Cargo Demo

This is an example IoT demo showing a realtime updating dashboard of data streaming from a Red Hat + Eurotech IoT gateway device through the Eurotech Everyware Cloud. It demonstrates realtime package tracking, alerting, and a telemetry dashboard showing critical measurements of packages in transit, including temperature, humidity, displacement, light levels, etc.

Dashboard Screenshot

Requirements to build/run:

  1. Nodejs
  2. NPM
  3. Bower
  4. Maven

Technologies used:

Building and running the Data Streamer

$ cd datastream/
$ npm install
$ npm start

You will see:

Listening to 0.0.0.0:8081...
Sun Jun 12 2016 14:51:12 GMT-0400 (EDT) Server is listening on port 8081

This starts a WebSocket server listening on the above port. Leave this server running and build/run the dashboard in the next step.

Building and running the Dashboard

The dashboard is a Java EE web app built using Maven that can be deployed to JBoss EAP 6.x, 7.x, or later. Building the project results in a .war file. Once deployed to JBoss EAP (e.g. by copying to the standalone/deployments directory), access the dashboard at http://localhost:8080. It will attempt to connect to the Data streamer server at ws://localhost:8081 and start streaming data.

To build:

$ cd dashboard
$ bower install
$ mvn package
$ cp target/ROOT.war /my/jboss/standalone/deployments

If it successfully deploys, you should be able to access the dashboard at http://localhost:8080. Click around, and enjoy. It's read-only so you really can't break anything!

iot-cargo-demo's People

Contributors

jamesfalkner avatar

Watchers

 avatar

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.