Hi, I have a filament runout switch connected to my printer board andconfigured on marlin latest release version. It works great.. the filament runs out, the firmware beeps, I feed more in and resume.
However, I would like to get notified when the filament runs out.. I am using the octoprint API to send push notifications by updating config.yaml.. I get notifications when the print finishes, but I can't find an event for filament runout. I tried PrintPaused but it doesn't fire on filament runout. Is there a way to configure Octoprint to fire an event when the filament runs out?
That plugin doesn't mention anything about notification or API under features.. will it help?
Shouldn't it be possible to solve this without a hardware change by adding some message to the filament runout script in marlin and have octoprint catch it and fire a filament runout event?
Is it possible to use the action command plugin to trigger shell scripts or to send push notifications via Pushover, etc. ? That could be really powerful.
I just wrote up a guide on how to set up SMS notification on filament runout (twilio not necessary). I figure runout is an important enough scenario that I'd want to know right away. SMS does the job.
The TLDR is:
Use ssmtp + mail command on your pi to send a text message via email
Set the filament runout plugin to pause on filament runout
Fire some M118 action commands on pause action
Configure the pause action to execute the shell command to send you a SMS
This example is using Gmail. I couldn’t get this to work using my normal email address, which is an office.com account, and I do have a secondary Gmail account so I took the path of least resistance and used it.
You do have to make a setting change in Gmail. You go to Settings > Google Account > Security, scroll down and turn on “Less secure app access”
You should then be able to test the system using any working email address, or better yet the text from email address listed in your set of instructions thus: