{"action":"created","issue":{"url":"https://api.github.com/repos/dtcooper/raspotify/issues/15","repository_url":"https://api.github.com/repos/dtcooper/raspotify","labels_url":"https://api.github.com/repos/dtcooper/raspotify/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/dtcooper/raspotify/issues/15/comments","events_url":"https://api.github.com/repos/dtcooper/raspotify/issues/15/events","html_url":"https://github.com/dtcooper/raspotify/issues/15","id":254512118,"number":15,"title":"Piping this to another app","user":{"login":"1liminal1","id":10505942,"avatar_url":"https://avatars2.githubusercontent.com/u/10505942?v=4","gravatar_id":"","url":"https://api.github.com/users/1liminal1","html_url":"https://github.com/1liminal1","followers_url":"https://api.github.com/users/1liminal1/followers","following_url":"https://api.github.com/users/1liminal1/following{/other_user}","gists_url":"https://api.github.com/users/1liminal1/gists{/gist_id}","starred_url":"https://api.github.com/users/1liminal1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1liminal1/subscriptions","organizations_url":"https://api.github.com/users/1liminal1/orgs","repos_url":"https://api.github.com/users/1liminal1/repos","events_url":"https://api.github.com/users/1liminal1/events{/privacy}","received_events_url":"https://api.github.com/users/1liminal1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-09-01T01:30:38Z","updated_at":"2018-03-07T21:02:06Z","closed_at":null,"author_association":"NONE","body":"Hi guys, \r\n\r\nJust wondering if you could help me, how can I run this as a named pipe to output it to forked-daapd. Im using it as an Airplay Server for Spotify."},"comment":{"url":"https://api.github.com/repos/dtcooper/raspotify/issues/comments/371283340","html_url":"https://github.com/dtcooper/raspotify/issues/15#issuecomment-371283340","issue_url":"https://api.github.com/repos/dtcooper/raspotify/issues/15","id":371283340,"user":{"login":"ricardovdheijden","id":20791917,"avatar_url":"https://avatars1.githubusercontent.com/u/20791917?v=4","gravatar_id":"","url":"https://api.github.com/users/ricardovdheijden","html_url":"https://github.com/ricardovdheijden","followers_url":"https://api.github.com/users/ricardovdheijden/followers","following_url":"https://api.github.com/users/ricardovdheijden/following{/other_user}","gists_url":"https://api.github.com/users/ricardovdheijden/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardovdheijden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardovdheijden/subscriptions","organizations_url":"https://api.github.com/users/ricardovdheijden/orgs","repos_url":"https://api.github.com/users/ricardovdheijden/repos","events_url":"https://api.github.com/users/ricardovdheijden/events{/privacy}","received_events_url":"https://api.github.com/users/ricardovdheijden/received_events","type":"User","site_admin":false},"created_at":"2018-03-07T21:02:06Z","updated_at":"2018-03-07T21:02:06Z","author_association":"NONE","body":"Hi, I seem to have the same issue as @1liminal1 in the beginning. However I cannot get it working.\r\nMy setup is: raspotify + forked-daap with library folder /srv/music. The pipe \"spotify\" is placed in this folder.\r\nWith the default configuration of raspotify I am able to play music through a connected headphone.\r\n\r\nI gave the folowing permissions:\r\n`sudo chmod -R 757 /srv/music/`\r\n(yes it is overkill, but just being sure)\r\n\r\nAfter that i noticed @chimpy 's note about permissions for raspotify:\r\n`sudo chown -R raspotify /srv/music`\r\n\r\nThe only thing I am not confident about, is the config line for OPTIONS:\r\n`OPTIONS=\"--username \"username\" --password \"password\" --$  --backend pipe --device /srv/music/spotify --disable-discovery\"`\r\nI tried it with and without --disable-discovery and I removed the # in front assuming this activates that line of configuration.\r\n\r\nWhen I restart the raspotify service I see:\r\n```\r\npi@raspberrypi:/srv/music $ sudo systemctl status raspotify.service -l\r\n● raspotify.service - Raspotify\r\n   Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset: enabled)\r\n   Active: activating (auto-restart) (Result: exit-code) since Wed 2018-03-07 20:47:47 UTC; 9s ago\r\n  Process: 19670 ExecStart=/usr/bin/librespot --name ${DEVICE_NAME} --backend alsa --bitrate ${BITRATE} $CACHE_ARGS $OPTIONS (code=exited, status=101)\r\n  Process: 19667 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify (code=exited, status=0/SUCCESS)\r\n  Process: 19664 ExecStartPre=/bin/mkdir -p 0755 /var/cache/raspotify (code=exited, status=0/SUCCESS)\r\n Main PID: 19670 (code=exited, status=101)\r\n\r\nMar 07 20:47:47 raspberrypi systemd[1]: raspotify.service: Main process exited, code=exited, status=101/n/a\r\nMar 07 20:47:47 raspberrypi systemd[1]: raspotify.service: Unit entered failed state.\r\nMar 07 20:47:47 raspberrypi systemd[1]: raspotify.service: Failed with result 'exit-code'.\r\n```\r\n\r\nAny idea what I am missing? Thanks in advance :)"}}
{"actor":{"display_login":"ricardovdheijden"}}