Test bench code to view the status of the solar car to perform diagnostics
Testing the test bench webapp without physical serial hardware can be done with the following steps:
- Install the socat utility to use
create_pty.sh create_pty.shcreates two fake serial ports using pseudo-teletypestest.pysends test JSON payloads to one of the two fake serial portsapp.pyneeds to be configured to connect to the other fake serial port
virtualenv -p python3 envsource env/bin/activatepip install -r requirements.txt
python app.py- Development web server will be started at localhost:5000 by default.