GithubHelp home page GithubHelp logo

shashanklokeshareddy / iot-hub-data-visualization Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akhanna02/iot-hub-data-visualization

0.0 0.0 0.0 84 KB

copied from https://github.com/Azure-Samples/web-apps-node-iot-hub-data-visualization.git

License: MIT License

JavaScript 83.81% HTML 14.42% CSS 1.76%

iot-hub-data-visualization's Introduction

web-apps-node-iot-hub-data-visualization

This repo contains code for a web application, which can read temperature & humidity data from IoT hub and show the real-time data in a line chart on the web page.

Browser compatible

Browser Least Version
IE 10
Edge 14
Firefox 50
Chrome 49
Safari 10
Opera 43
iOS Safari 9.3
Opera Mini ALL
Android Browser 4.3
Chrome for Android 56

Run a daemon application to send data to your IoT hub

You can refer the related lesson to run an daemon application, to send data to your IoT hub.

Add new consumer group to your event hub

Go to Azure Portal and select your IoT hub. Click Endpoints -> Events, add a new consumer group and then save it.

Deploy to Azure web application

Go to Azure Portal to create your own Azure web app service. Then do the following setting:

  • Go to Application settings, add key/value pairs Azure.IoT.IoTHub.ConnectionString and Azure.IoT.IoTHub.ConsumerGroup to App settings slot.
  • Go to Deployment options, set Local git repository to deploy your web app.
  • Go to Deployment credentials, set your deploy username and password.
  • In the Overview page, note the Git clone url.
  • Push the repo's code to the git repo url you note in last step.
  • After the push and deploy finished, you can view the page to see the real-time data chart.

Local deploy

  • Open a console and set the following environment variable:
    • set Azure.IoT.IoTHub.ConnectionString=<your connection string>
    • set Azure.IoT.IoTHub.ConsumerGroup=<your consumer group name>
  • npm install
  • npm start

iot-hub-data-visualization's People

Contributors

akhanna02 avatar microsoftopensource avatar msftgits avatar yuwzho 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.