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.sh
creates two fake serial ports using pseudo-teletypestest.py
sends test JSON payloads to one of the two fake serial portsapp.py
needs to be configured to connect to the other fake serial port
virtualenv -p python3 env
source env/bin/activate
pip install -r requirements.txt
python app.py
- Development web server will be started at localhost:5000 by default.