Sending Arduino signals through python to svelte web app
Might be particularly useful for:
Change the port in arduino.py to your arduino port.
Change the websocket port (default here is 8765) in arduino.py and app/src/lib/App.svelte
` python3 -m venv env source env/bin/activate
pip3 install pyserial pip3 install websockets `
In first terminal, run:
python3 arduino.py
In second terminal, run:
cd app npm run dev