In the root directory of the project, simply run:
python run.py
This is the app-portion of my DIY exercycle project.
The website displays count, speed and history in realtime.
Uses:
- express-js - simple, fast webserver
- pyserial - for talking to the Arduino over serial
-
I found nodeJS unsuitable for reading from a serial: there's a great library serialport, but sad to say, javascript
Promise
s defeated me. Specifically I was unable to callSerialPort.list()
because its async. And I couldn't find a way to delay calls to read, so that I don't get broken data. -
When accessing a COM port on Windows, no other app should be using it. So close any arduino IDE / processing windows.