stuartofmt last edited by stuartofmt
This program allows monitoring of Duet status codes and display messages.
It runs in the background and periodically polls Duet looking for changes to the specified status values. It can also monitor changes in display messages.
When it detects a change - it sends an email. Changes are detected when entering AND leaving a status. In this way - you can monitor a single status and detect changes to that status. You can, of course, monitor multiple status.
DuetMonitor is designed to run continuously and can accept http commands to change settings. Typically, you would use a browser but curl or other means of sending http can be used.
emails are sent from your gmail account to any recipient with a legal email address. It is intended for short messages.
 Initial version
 Added monitoring of info messages
 Added additional Controls
 Provided additional information in browser UI
The main capabilities include:
Send emails using your gmail address.
Can send to any legitimate email recipient.
Is controllable via a browser (or other http) interface (e.g. curl)
Is dynamically configurable for the values that it monitors.
Reports if disconnected (for more than 2 polling intervals) from Duet and stops monitoring.
Because it can also monitor display messages - you can embed M117 Messages in your gcode and macros (e.g. at the start and end of printing, at key points in a calibration macro) and receive an email in a customizable manner.
DuetMonitor is intended to run constantly (if you wish) in the background.
From a http interface (e.g. browser) you can perform the following:
Start / Stop monitoring
Change the To: and Subject:
Change which values (status, display messages, info messages) are being monitored
Send an email independently of monitoring
The ability to just send an email (does not need to be monitoring) makes it useful in conjunction with other programs such as DueUI and BtnCmd and ....
I selected gmail as the delivery mechanism because:
- It is widely used and reliable.
- Is secure and avoids many possible miss-use situations.
- You can easily get an account if you do not already have one (even if you only use it for DuetMonitor).
- You can easily revoke and re-enable permission to send emails if you need to.
- It is free - unless you want to send 1000's of emails per day
A full set of instructions for installing, creating credentials and initial setup are here:
stuartofmt last edited by
Version 1.0.1 Adds the ability to monitor information messages e.g. messages sent to the console and error messages that are not generated by M117.
In addition there were some general usability improvements.
This has been tested on both Linux(Pi) and Window (10) with a DUet2 Wifi (i.e. using rr_status).
I cannot test it with SBC (i.e. using /machine/status) as I do not have the necessary controller. There is only one previously untried call but ....
It would be helpful if someone could test DuetMonitor on a SBC and report back.