{"action":"created","issue":{"url":"https://api.github.com/repos/balbuze/volumio-plugins/issues/164","repository_url":"https://api.github.com/repos/balbuze/volumio-plugins","labels_url":"https://api.github.com/repos/balbuze/volumio-plugins/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/balbuze/volumio-plugins/issues/164/comments","events_url":"https://api.github.com/repos/balbuze/volumio-plugins/issues/164/events","html_url":"https://github.com/balbuze/volumio-plugins/issues/164","id":317690197,"number":164,"title":"--onstart not working","user":{"login":"richpuch","id":18352874,"avatar_url":"https://avatars0.githubusercontent.com/u/18352874?v=4","gravatar_id":"","url":"https://api.github.com/users/richpuch","html_url":"https://github.com/richpuch","followers_url":"https://api.github.com/users/richpuch/followers","following_url":"https://api.github.com/users/richpuch/following{/other_user}","gists_url":"https://api.github.com/users/richpuch/gists{/gist_id}","starred_url":"https://api.github.com/users/richpuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richpuch/subscriptions","organizations_url":"https://api.github.com/users/richpuch/orgs","repos_url":"https://api.github.com/users/richpuch/repos","events_url":"https://api.github.com/users/richpuch/events{/privacy}","received_events_url":"https://api.github.com/users/richpuch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-25T15:54:32Z","updated_at":"2018-05-22T08:55:37Z","closed_at":null,"author_association":"NONE","body":"Did you rework the way spotify connect2 is run...you helped me in the past with getting things reported into home assistant with the use of the onstart1.sh and onstop1.sh files.  I recently upgraded the plugin, created the files and edited volspotconnect2.tmpl but it doesn't seem like that file gets called anymore.  trying to execute this line when starting and a similar line when stopping:\r\n\r\n/usr/bin/curl -X POST  -H \"x-ha-access: mocha211\" -H \"Content-Type: application/json\" -d '{\"state\": \"on\"}' http://192.168.2.25:8123/api/states/input_boolean.volumio_spotify_status\r\n\r\nAlso...can't seem to get the volume set...I set it in the plug in section but it never changes when I start using the plugin."},"comment":{"url":"https://api.github.com/repos/balbuze/volumio-plugins/issues/comments/390914750","html_url":"https://github.com/balbuze/volumio-plugins/issues/164#issuecomment-390914750","issue_url":"https://api.github.com/repos/balbuze/volumio-plugins/issues/164","id":390914750,"user":{"login":"ashthespy","id":16233271,"avatar_url":"https://avatars2.githubusercontent.com/u/16233271?v=4","gravatar_id":"","url":"https://api.github.com/users/ashthespy","html_url":"https://github.com/ashthespy","followers_url":"https://api.github.com/users/ashthespy/followers","following_url":"https://api.github.com/users/ashthespy/following{/other_user}","gists_url":"https://api.github.com/users/ashthespy/gists{/gist_id}","starred_url":"https://api.github.com/users/ashthespy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashthespy/subscriptions","organizations_url":"https://api.github.com/users/ashthespy/orgs","repos_url":"https://api.github.com/users/ashthespy/repos","events_url":"https://api.github.com/users/ashthespy/events{/privacy}","received_events_url":"https://api.github.com/users/ashthespy/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T08:55:37Z","updated_at":"2018-05-22T08:55:37Z","author_association":"NONE","body":"@richpuch \r\nSorry for the delay -  I just tested this out maybe this helps you get your setup working?\r\n\r\n```bash\r\n#startconnect.sh\r\n ./librespot -b 320  -c /tmp -n 'Volumio' --onevent ./onstart.sh\r\n```\r\n\r\n```bash\r\n#onevent.sh\r\necho \"$PLAYER_EVENT $TRACK_ID\"  >> onevent.log\r\n```\r\n\r\n```\r\n#onevent.log\r\nstart 5ef9bfb004d4415bae220c0a79da3fa3\r\nchange 04f235e2ce6c4c5ba189e327dbbe620c\r\nchange 945f800b0ed64cd087d5ce624ffeebfc\r\nstop 945f800b0ed64cd087d5ce624ffeebfc\r\n```\r\n"}}
{"actor":{"display_login":"ashthespy"}}