following foosel directions here https://github.com/foosel/OctoPrint/wik ... Eventhooks
replace the ########## with your 10-digit Verizon number and slap this code in the config.yaml in between controls: and features:
Code: Select all
events:
gcodeCommandTrigger:
enabled: true
subscriptions:
- command: M115,M17 printer connected!,G28
event: Connected
systemCommandTrigger:
enabled: true
subscriptions:
- command: logger 'Printer got disconnected'
event: Disconnected
- command: curl -o /tmp/printDone.jpg "http://localhost:8080/?action=snapshot"
&& mpack -s "Print of %(filename)s finished" /tmp/printDone.jpg ##########@vzwpix.com
event: PrintDone
- command: curl -o /tmp/printDone.jpg "http://localhost:8080/?action=snapshot"
&& mpack -s "Print of %(filename)s stared" /tmp/printDone.jpg ##########@vzwpix.com
event: PrintStarted