Figured out quite a bit more using crossbar.io:
I have two python processes generating measurement data,
a router monitor that logs websocket measurements to the console
A notebook that subscribes to the sensors.
-
crossbar start
starts the system running (open the console at localhost:8060) - running the notebook will create a dashboard plotting the sensor outputs.
- a button on the dashboard propagates a command back to the sensor_1 code, causing the trend of the measurements to reverse.
The code is in the files
CROSSBAR subdirectory https://gitlab.com/ea42gh/awesomepanelplayground/-/tree/master/WebSocket/CROSSBAR/sensors
(you will need all the files in the subtree, and a working crossbar.io installation)