Coder Social home page Coder Social logo

devygz / basic-json-dashboard Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.82 MB

An incredibly simple dashboard for JSON formatted telemetry data.

License: MIT License

CSS 77.47% HTML 13.11% JavaScript 9.42%
dashboard javascript json telemetry-client telemetry-viewer

basic-json-dashboard's Introduction

Basic JSON Dashboard

An incredibly simple JSON dashboard (parser?) for real-time telemetry data

Example Screenshot of the Dashboard

Features

  • Get data from an HTTP endpoint [x] times in 1 second.
  • Reserved key names for larger display and server-side uptime data
  • Very, very simple and lightweight. It is so lightweight that you don't even need to define each key on the client side.

How to Get Started

Clone the repo, then edit js/main.js file. You will notice 2 lines:

const RefreshRate = 2;
const APIEndpoint = "http://127.0.0.1:8078/api.json";

APIEndpoint is the API endpoint of your JSON API. Configure this to point your server.
RefreshRate is how many times the data is fetched in 1 second, similar to Hertz. For example, if it is set to 5, that means the data will be updated every 200ms (or 5 times in 1 second).

Configure them according to the needs, and you are ready!

API Response and Parsing

The server must return a very simple JSON response. Example response can be found in example-api-response/api.json

All the keys (except named speed and uptime) will be displayed as a new sensor value. This allows to add and hide values directly on server-side code, without caring about client-side implementations. speed value will be displayed larger on the screen, and uptime will be displayed under the date in gray color. Please note that speed key is mandatory, but uptime key is optional.

Index Files

Two different index files (named index.html and index2.html) are created. Simply, they are two different designs. Choose the best version for you and customize.

This project was actually created for an Efficiency Challenge Car contest, so variable names tend to be in that direction (like speed).

Licenses

VMWare Clarity City Font is used as default font.

basic-json-dashboard's People

Contributors

deepsource-io[bot] avatar devygz avatar imgbotapp avatar

Stargazers

 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.