EventHooks to execute commands @ times

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

EventHooks to execute commands @ times

Post by bubbasnow »

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:

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
Post Reply

Return to “OctoPrint”