taxilian / OctoPrint-Twilio

Octoprint plugin for print completion notifications using Twilio (for free w/ trial account)
GNU Affero General Public License v3.0
5 stars 9 forks source link

Dev Question: How do I trigger a fake event? #4

Closed shadycuz closed 6 years ago

shadycuz commented 6 years ago

I'm wanting to learn more about octoprint so I decided to add a feature to your plugin. I have set up my development environment using the provided octoprint instructions. The only thing I haven't been able to figure out is how to generate a fake "PrintDone" event so I can test things.

Thanks, Levi

taxilian commented 6 years ago

Unfortunately, I don't actually have any idea either =]

I did this because I needed it and I just modified an existing plugin which didn't have a "fake event" helper either. I got it working and haven't hardly touched it since... =]

shadycuz commented 6 years ago

@taxilian I used a empty gcode file with one command like turn of fan m107