kristianpedersen / Websocket-and-Serialport-Template

Send data between your microcontroller and a locally hosted web interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Template: Browser <---> Node.js

I set up this template at my previous job, in order to do the following:

  • Arduino sensor readings --> HTML Canvas.
  • HTML buttons --> Node.js/Linux commands

Installation

  1. git clone https://github.com/kristianpedersen/Websocket-and-Serialport-Template.git
  2. cd Websocket-and-Serialport-Template
  3. npm install
  4. node index.js
  5. Enter localhost:3000 in your browser

See index.js for help with Arduino or micro:bit

About

Send data between your microcontroller and a locally hosted web interface


Languages

Language:JavaScript 59.0%Language:HTML 41.0%