{"action":"created","issue":{"url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/275","repository_url":"https://api.github.com/repos/ejurgensen/forked-daapd","labels_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/275/comments","events_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/275/events","html_url":"https://github.com/ejurgensen/forked-daapd/issues/275","id":166776287,"number":275,"title":"Chromecast activation fails (\"Could not unpack message\")","user":{"login":"Lakritzator","id":708125,"avatar_url":"https://avatars.githubusercontent.com/u/708125?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakritzator","html_url":"https://github.com/Lakritzator","followers_url":"https://api.github.com/users/Lakritzator/followers","following_url":"https://api.github.com/users/Lakritzator/following{/other_user}","gists_url":"https://api.github.com/users/Lakritzator/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakritzator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakritzator/subscriptions","organizations_url":"https://api.github.com/users/Lakritzator/orgs","repos_url":"https://api.github.com/users/Lakritzator/repos","events_url":"https://api.github.com/users/Lakritzator/events{/privacy}","received_events_url":"https://api.github.com/users/Lakritzator/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ejurgensen/forked-daapd/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2016-07-21T09:32:51Z","updated_at":"2016-08-05T09:46:53Z","closed_at":null,"body":"I use forked-daapd for my multi-room audio system, it's running 24x7 on my \"NAS\" (ubuntu server 14.x).\r\nMy players are a couple of Chromecast audios, and a Denon AVR-X1200W\r\n\r\nMy use-case is to have one (or more) chromecasts play radio around the time we wake up, so I can just turn on a mini-amplifier in my bathroom and radio is playing.\r\n\r\nAs somehow the playing stuff after a while, I use `mpc` in a crontab script, where I make sure that before getting up all outputs are disabled and the one I need is enabled. (`mpc disable` with all the outputs I don't want). Than I enable only the one I need. (should work with `mpc enable only <output>` but it doesn't). And I use load / play to have the song play, set the volume to 100% (the amplifier is used to control the volume.\r\n\r\nMost of the time this works, sometimes it doesn't. `mpc` commandos sometimes seem to take a long time to complete. This is also is visible in other clients. Now when this doesn't work sometimes `forked-daapd` just decides to have the Denon play the music (maybe because it didn't disable correctly, maybe just because), which turns on the Amplifier und does exactly what it was told... play a stream at **100% Volume**. We already had disco 2x at 4:30 in the morning...\r\n\r\nIn fact there are multiple things in this issue:\r\n\r\n1. \"mpd\" output control (mpc enable / mpc disable) seems to be flawed\r\n2. \"mpd\" commands seem to be unstable\r\n3. playing internet radio seems to break every now and than.\r\n4. Outputs seem to be picked at \"random\" (I actually think it just picked the first) for whatever reason.\r\n5. I don't want my Denon to be at 100% volume, but my Chromecasts should be, it would be nice if I can control a range...?\r\n\r\nIn the logs I only found a few entries that were of relevance:\r\n- mpd: No speaker to deactivate\r\n- mpd: Error executing command 'enableoutput': Speakers activation failed: 47113\r\nWhat is interesting about the last entry, there is no 47113 but a 47114 (Chromecast GROUP) and I am 100% sure I didn't try to enable 47113 but 47114!\r\n\r\nSorry for the longer text, but my wife really doesn't like the solution right now... How can I (we?) tackle these issues? What information do you need?\r\n"},"comment":{"url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/comments/237809272","html_url":"https://github.com/ejurgensen/forked-daapd/issues/275#issuecomment-237809272","issue_url":"https://api.github.com/repos/ejurgensen/forked-daapd/issues/275","id":237809272,"user":{"login":"Lakritzator","id":708125,"avatar_url":"https://avatars.githubusercontent.com/u/708125?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakritzator","html_url":"https://github.com/Lakritzator","followers_url":"https://api.github.com/users/Lakritzator/followers","following_url":"https://api.github.com/users/Lakritzator/following{/other_user}","gists_url":"https://api.github.com/users/Lakritzator/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakritzator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakritzator/subscriptions","organizations_url":"https://api.github.com/users/Lakritzator/orgs","repos_url":"https://api.github.com/users/Lakritzator/repos","events_url":"https://api.github.com/users/Lakritzator/events{/privacy}","received_events_url":"https://api.github.com/users/Lakritzator/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T09:46:53Z","updated_at":"2016-08-05T09:46:53Z","body":"I just wanted to report back that with the changes from 4 days ago I don't see any problems any more! The system has been playing for a couple of days, and the script always worked.\r\n\r\nDo you need logs, or something?\r\n\r\nIf possible, I still would like to have the possibility to disable the \"take any output\" feature you explained, this could wreak havoc in my house! :wink: "}}
{"actor":{"display_login":"Lakritzator"}}