Coder Social home page Coder Social logo

phyunsj / iot-dashboard-design-with-dash Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 3.0 5 MB

Sample example to use Dash python framework for IoT Dashboard Design

Home Page: https://phyunsj.github.io

Python 100.00%
python dash dashboard iot node-red node-red-node-sqlite plotlyjs node-red-dash

iot-dashboard-design-with-dash's Introduction

IoT Dashboard Design with Dash

๐Ÿ“Œ The intention of this excericse is to undersatand communications between the front-end generated by Dash framewotk and the back-end. The heavy lifting is done by Dash framework. Any web application serving GET/POST methods can utilize Dash front-end implementaion.

"Dash is a Python framework for building analytical web applications. No JavaScript required. Build on top of Plotly.js, React, and Flask, Dash ties modern UI elements like dropdowns, sliders, and graphs directly to your analytical python code." ...from Dash by plotly

Additional Info on Dash

Example 1. Chart Display

Started with the first example from Dash User Guide, set interval=3000 (3 secs) and defined callbacks.

index.html, _dash-layout, _dash-dependencies are generated by Dash framework. Use it directly on Node-RED template node. For live-update, the back-end responds _dash-update-component request every 3 secs (interval=3000).

Example 2. Wind Speed Monitoring

The original work is done in here(Dash Wind Streaming App). The sample data wind-data.db is also provided.

UPDATE Dash Wind Streaming App : new location & new look.

Install node-red-node-sqlite to access wind-data.db. Manually create DATA for { response: {props: {figure: { data : [DATA], layout : ...}. Node-RED (or any web application) serves two types of POST requests (wind-speed and wind-direction) for this example. The original work has one additional POST request (wind-histogram).

plotly.js-dist can be used instead in function node. See how to use require in Node-RED function node.

Other Consideration

shinydashboard makes it easy to use Shiny to create dashboards

iot-dashboard-design-with-dash's People

Contributors

phyunsj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.