EventHooks to execute commands @ times

Talk about the web based OctoPrint controllers
User avatar
bubbasnow
ULTIMATE 3D JEDDI
Posts: 1064
Joined: Fri Aug 02, 2013 4:24 pm
Location: Dayton, WA

EventHooks to execute commands @ times

Postby bubbasnow » 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/wiki/Cookbook:-Useful-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


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

Return to “OctoPrint”

Who is online

Users browsing this forum: No registered users and 1 guest