Email or sms notifications?



  • Hello, I looked in the forum and found a 2 year old thread about notification.

    Were there any updates to this? Is there a way to make the Duet 3 send either email or sms on a pause or end of print, basically on any status change while working in standalone?



  • @Thalios said in Email or sms notifications?:

    while working in standalone?

    its effectively a Duet 2 when in stand alone mode, so the same (external) workarounds would apply (for now at least)



  • Duet's entire philosophy for things like DWC is to be "polled", not to push things. Don't expect this to change... so the various things that people have done down through the years, macros to a pin to an Arduino or ESP32 or similar, a polling script, all those are still going to apply.

    The one new factor is the Pi in a Duet 3 + Pi config. Still need to poll... but you can poll from there. Pi comes with Python already installed, so that's a pretty obvious choice. And there are a BAZILLION examples of how to email, sms, tweet, etc, etc, from Pi.



  • Mmm, sadly I don't plan on going with a PI on this unit.

    I'll just have to forget about that feature for now..



  • ESP32 are about $5 each, and could be used to do this in a very straight forward fashion...



  • It's not about price, it's about learning curve. I've not messed with that kind of stuff yet...

    I might at a later date, but for now, I have enough playtime with Fusion 360 and making it into 3d things.

    I might install one once I finally order my Railcore II ZLT hehe



  • Understood! So many toys, not enough time... 🙂



  • If you have a raspberry pi or another computer available you can use Node-Red to poll the Duet and send emails.

    I’ve shared a basic flow here that can be customized to do what you want.



  • @mwolter dammit I hate you now. 3h15am and still programming this! haha. (J/K)

    Always wanted to mess with NodeRED. You gave me an excuse. I have a Mac Mini Server running 24/7 so I made that in a NodeRED and Mosquitto server.

    Right now, I just got an email that my filament ran out on my printer! With a complete status. Now I just need to figure out how to format the email so I don't get something like this:

    {"status":"Stopped","homedX":"True","homedY":"True","homedZ":"True","statusRaw":"S","x":-5,"y":-15,"z":100,"speedRequested":0,"speedTop":0,"currentTool":0,"speedFactor":100,"extruderFactor":95,"currentBedTemp":50,"currentHotendTemp":210,"activeBedTemp":50,"activeHotendTemp":210,"standbyBedTemp":0,"standbyHotendTemp":210,"printPercent":99.3,"printDuration":24233.8,"printTimeLeft":439.7,"stateBed":"Active","stateHotend":"Active","fileInfoError":0,"fileSize":4578087,"fileLastModified":"2020-05-09T20:08:40","fileName":"0:/gcodes/3baf5e95-9eed-4423-90bc-642d0dd58873_0.2mm_PLA_ENDER3_6h24m.gcode","online":"Online","statePrinter":7}
    

    THANK YOU SO MUCH. This is exactly what I wanted (Well, would have preferred if the Duet would have something built in but this works too!)



  • @Thalios Glad it will work! I’ve built a few thing with it, amazing software.


Log in to reply