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

Feature: Add events configuration #25

Open shadycuz opened 3 years ago

shadycuz commented 3 years ago

This feature changes the plugin so that an SMS can be sent for any OctoPrint event. Currently the plugin only supports PrintDone. This feature was inspired by https://github.com/taxilian/OctoPrint-Twilio/issues/14 and https://github.com/taxilian/OctoPrint-Twilio/issues/12 who wanted to send a SMS at different events other than the PrintDone event.

When upgrading to this version the existing configuration is migrated to the new events system. That means if you do not want to use any other events, you can still upgrade and the plugin will still send the exact same message it did before.

I have tested the new feature and the settings migration with python2 and 3. I'm currently waiting for Octoprint 1.6.0 to release which includes this change to events https://github.com/OctoPrint/OctoPrint/pull/3903.