{"action":"opened","issue":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/1312","repository_url":"https://api.github.com/repos/foosel/OctoPrint","labels_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1312/labels{/name}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1312/comments","events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1312/events","html_url":"https://github.com/foosel/OctoPrint/issues/1312","id":148699301,"number":1312,"title":"OctoPi changes config.yaml rearranges and Modifies events","user":{"login":"WVUTampaAlum","id":18038802,"avatar_url":"https://avatars.githubusercontent.com/u/18038802?v=3","gravatar_id":"","url":"https://api.github.com/users/WVUTampaAlum","html_url":"https://github.com/WVUTampaAlum","followers_url":"https://api.github.com/users/WVUTampaAlum/followers","following_url":"https://api.github.com/users/WVUTampaAlum/following{/other_user}","gists_url":"https://api.github.com/users/WVUTampaAlum/gists{/gist_id}","starred_url":"https://api.github.com/users/WVUTampaAlum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WVUTampaAlum/subscriptions","organizations_url":"https://api.github.com/users/WVUTampaAlum/orgs","repos_url":"https://api.github.com/users/WVUTampaAlum/repos","events_url":"https://api.github.com/users/WVUTampaAlum/events{/privacy}","received_events_url":"https://api.github.com/users/WVUTampaAlum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-15T15:57:17Z","updated_at":"2016-04-15T15:57:17Z","closed_at":null,"body":"I am trying to setup octopi to send me a picture of the object when the print is completed.  I running octopi and Version: 1.2.10 (master branch).  I have followed the guide on (https://github.com/foosel/OctoPrint/wiki/Cookbook:-Useful-Eventhooks) .  I have tried 4 times and cannot get it to send me an email but running the same 'command' in terminal I get the email with pic attached.  What I have found from this is that octoprint is moving the section I enter (I put it at the bottom) and completely change the events.\r\n\r\nAs a test I entered the following from the wiki.  I then restarted octoprint server made 0 changes and viewed config.yaml.  It was then completely changed around.\r\n\r\nEntered in Events section/ from wiki:\r\nevents:\r\n  enabled: True\r\n  subscriptions:\r\n  - event: Disconnected\r\n    command: python ~/growl.py -t mygrowlserver -d \"Lost connection to printer\" -a OctoPrint -i http://raspi/Octoprint_logo.png\r\n    type: system\r\n    enabled: false\r\n  - event: PrintStarted\r\n    command: python ~/growl.py -t mygrowlserver -d \"Starting {file}\" -a OctoPrint -i http://raspi/Octoprint_logo.png\r\n    type: system\r\n  - event: PrintDone\r\n    command: python ~/growl.py -t mygrowlserver -d \"Completed {file}\" -a OctoPrint -i http://raspi/Octoprint_logo.png\r\n    type: system\r\n\r\n\r\nRestart octoprint and config.yaml is changed to (its moved events and now added dashes for command line):\r\n\r\nevents:\r\n  enabled: true\r\n  subscriptions:\r\n  - command: python ~/growl.py -t mygrowlserver -d \"Lost connection to printer\" -a\r\n      OctoPrint -i http://raspi/Octoprint_logo.png\r\n    enabled: false\r\n    event: Disconnected\r\n    type: system\r\n  - command: python ~/growl.py -t mygrowlserver -d \"Starting {file}\" -a OctoPrint\r\n      -i http://raspi/Octoprint_logo.png\r\n    event: PrintStarted\r\n    type: system\r\n  - command: python ~/growl.py -t mygrowlserver -d \"Completed {file}\" -a OctoPrint\r\n      -i http://raspi/Octoprint_logo.png\r\n    event: PrintDone\r\n    type: system\r\n\r\n\r\n\r\n"}}