View on GitHub

WebSocketGaugeClientNeo

Renewal version of websocket gauge client, with using typescript and pixi.js(webgl).

Websocket dashboard client (new version with WebGL)

main screen

Table of contents

Description

This program is graphical dashboard gauge, web-based client for DefiSSMCOM_WebsocketServer.

This program receive car sensor information from the websocket server programs, and show sensor data by WebGL(or Canvas) based graphical gauges.

The graphical part of this program depends on PIXI.js. Thanks to PIXI.js, this program can show the gauge in HTML5 Canvas if the browser does not support WebGL (However performance (fps) is degraded compared to WebGL).

You can make your custom gauges by modifying the source code. Please see .

System diagram

System diagram

Requirement

Dependency

Build

This program coded by typescript. And this program uses webpack for deployment. Before modifying the source code (including makinig your custom meter panel or parts), node.js and dependent packages need to be installed.

Install node.js

Install node.js. On windows, you can find the installer on official node.js site. To build sources, node.js newer than 8.x is needed (since build script calls npx comand).

Install dependent npm packages

Before build, please install dependent npm packages. Dependent npm packages can be installed automatically by simply running npm install,

> cd WebSocketGaugeClientNeo
> npm install

Buidling source

Build command is incuded in npm scirpt (please see package.json). To build,

> cd WebSocketGaugeClientNeo
> npm run build-WebSocketTester
> npm run build-benchmark
> npm run build-application

Making custom meter panel

There are some sample source codes of meter application in WebSocketGaugeClientNeo/src/applicationdirectoy. To make your custom meter application, refer CustomMeterApp.md

Install

After buiding sources, compiled htmls and javascripts will be stored in public_html folder. Please copy these files to your web server (e.g. nginx) export directory.

Other docuents

License

MIT License