EventHooks to execute commands @ times
Posted: Sun Feb 23, 2014 3:53 am
so I have the PI sending me mms with pics on verizon when the print starts and finishes.
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:
If you look at my other posts, i should also be able to use this method to turn on/off anything in my pgio connected...especially my super loud 24v power supply
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