Variation of now defunct 'oh-my-cv' people tracker, now turned capacitive sensing supervisor included in the up-coming exhibition from Museums Victoria, Gut Feelings.
pip install -r requirements.txt
python oh-my-guts.py
Optionally include -p
or --print
flag to display output from serial device.
Starts to read serial data from the first available USB Serial Device.
Is expecting a stream of Strings representing the state of the sensors, 0=Off, 1=On.
- 1110000
- 0001100
- 0100100
- 1110000
The socket server is accessible on 6789.
In addition there is a Flask server launched on start-up on port 5000 indicating sensor status.
A subscription to the websocket will provide updates on state changes in the following JSON form.
{
"state": [
false,
true,
false,
false,
true,
false,
false
],
"count": 2
}