Giter Site home page Giter Site logo

itterheim / electron-serial-port-monitor Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 0.0 1.25 MB

Serial port monitor written in TypeScript and Electron

License: MIT License

TypeScript 86.06% CSS 12.71% HTML 1.22%
serialport electron typescript serial serial-port

electron-serial-port-monitor's Introduction

GitHub package.json version GitHub Release

Serial Port Monitor

Serial port monitor written in TypeScript and Electron.

This is a work in progress.

README contents:

Data requirements

data example:

> time,humidity,temperature
> 1,20.8,28
> 1001,21.41,28
> 2001,21.93,28
> 3002,22.1,28
> 4003,22.24,28
  • messages separated by \n

chart and table

  • values separated by comma ,
  • first message contains data header
  • first value is used for the x axis
  • values are parsed as float or ignored

Download (windows x64)

Release: https://github.com/itterheim/Electron-Serial-Port-Monitor/releases/latest

(zip: ~70 MB, unpacked: ~180 MB)

Build

  1. https://nodejs.org/en/
  2. npm install
  3. Start:
  • option 1: start app: npm run start
  • option 2: create executable: npm run dist (creates new folder Serial Port Monitor-...)

Screenshots

Monitor

Chart

Table

How it works

Node.js

  • JavaScript runtime
  • https://nodejs.org/en/
  • command: npm - package manager
  • file: package.js - description of the app and its dependencies

TypeScript

  • JavaScript on steroids (transpiles into JavaScript - makes life much more easier)
  • TypeScript in 5 minutes
  • file: tsconfig.json - configuration of the TypeScript compiler
  • file: tslint.json - additional code analysis and automatic formatting
  • command: tsc - transpiles code into JavaScript (folder /dist)

Electron

  • creates cross-platform desktop apps with JavaScript, HTML, and CSS
  • https://www.electronjs.org/
  • command: electron . - finds the main JavaScript file in package.json and starts the application
  • command: npm run start - creates JavaScript files and immediately starts the application
  • command: npm run dist - builds and creates executable application into the folder /Serial Port Monitor-...

Main process

/ts/main/index.js

  • creates an application window;
  • links html file into window (file: /web/index.html)
  • manages communication with serial port

Renderer process

/ts/renderer/index.js

  • linked through the index.html file.
  • creates user interface

Code

Additional info about the code:

https://github.com/itterheim/Electron-Serial-Port-Monitor/tree/master/ts

electron-serial-port-monitor's People

Contributors

dependabot[bot] avatar itterheim avatar

Stargazers

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