Help: Humidity sensor triggers screen message above threshold
lbtqsb last edited by lbtqsb
long time not posted. Have a question that I hope might be interesting for other people as well:
Currently at work we have printer with duet and we have the filament in plasticboxes with seals and drybags. I put a DHT22 in that plastic-box that is wired to that duet. So currently the printer-user has to check time to time in DWC in the "extra"-Tab for the sensors/temperatures the humidity if it is time to change the dry-bags because it is over a certain threshold...
Has anybody any idea to help how to use the conditional g-code, so that it just uses that sensor value and if it is > x triggers a screen-message or something like that
(yeah I have 1heater output left free and I know how to hook up that sensor to that output and make a red 24-V-led (that we have at work with resistor already in place for panel mounting) shine in the filament-box or something like that but I think screenmessage would be the best...?)
Thanks for any hint...
This sounds doable. You could have a check in daemon.g that checks the value of the DHT22 in the object model and performs an action when the value is exceeded. https://docs.duet3d.com/en/User_manual/Reference/Gcode_meta_commands
Hopefully that's enough to set you on the right path.