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
git clone https://github.com/kristianpedersen/Websocket-and-Serialport-Template.git
cd Websocket-and-Serialport-Template
npm install
node index.js
- Enter
localhost:3000
in your browser
See index.js
for help with Arduino or micro:bit