hammockman / breather

Ventilators for the Masses
1 stars 0 forks source link

software review #12

Open hammockman opened 4 years ago

hammockman commented 4 years ago

@racleave, there's a bare bones version of the app pushed at 0a26576. It uses three threads:

  1. a main thread that as yet does very little but will run the breathing profile and control the valves
  2. a sensor thread that tries to update a dict of sensor values at a fixed sampling rate
  3. a messaging thread that eats MQTT messages and makes data available to the main thread to react to.

I've not tried running it on manawa-ora-1 yet (its not talking to me, off maybe?) but start it up with

$ python3 breathe.py

and kill it by

$ mosquitto_pub -t breathe/runstate -m quit

Take a squiz asap and let me know if this is what you were imagining.