{"action":"created","issue":{"url":"https://api.github.com/repos/museuminabox/brain/issues/5","labels_url":"https://api.github.com/repos/museuminabox/brain/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/museuminabox/brain/issues/5/comments","events_url":"https://api.github.com/repos/museuminabox/brain/issues/5/events","html_url":"https://github.com/museuminabox/brain/issues/5","id":122505965,"number":5,"title":"Need a way to control volume","user":{"login":"george08","id":354542,"avatar_url":"https://avatars.githubusercontent.com/u/354542?v=3","gravatar_id":"","url":"https://api.github.com/users/george08","html_url":"https://github.com/george08","followers_url":"https://api.github.com/users/george08/followers","following_url":"https://api.github.com/users/george08/following{/other_user}","gists_url":"https://api.github.com/users/george08/gists{/gist_id}","starred_url":"https://api.github.com/users/george08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/george08/subscriptions","organizations_url":"https://api.github.com/users/george08/orgs","repos_url":"https://api.github.com/users/george08/repos","events_url":"https://api.github.com/users/george08/events{/privacy}","received_events_url":"https://api.github.com/users/george08/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"amcewen","id":108468,"avatar_url":"https://avatars.githubusercontent.com/u/108468?v=3","gravatar_id":"","url":"https://api.github.com/users/amcewen","html_url":"https://github.com/amcewen","followers_url":"https://api.github.com/users/amcewen/followers","following_url":"https://api.github.com/users/amcewen/following{/other_user}","gists_url":"https://api.github.com/users/amcewen/gists{/gist_id}","starred_url":"https://api.github.com/users/amcewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcewen/subscriptions","organizations_url":"https://api.github.com/users/amcewen/orgs","repos_url":"https://api.github.com/users/amcewen/repos","events_url":"https://api.github.com/users/amcewen/events{/privacy}","received_events_url":"https://api.github.com/users/amcewen/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-16T13:43:53Z","updated_at":"2016-01-13T15:17:21Z","closed_at":null,"body":"Particularly on the laser cut box from Dec 8."},"comment":{"url":"https://api.github.com/repos/museuminabox/brain/issues/comments/171325936","html_url":"https://github.com/museuminabox/brain/issues/5#issuecomment-171325936","issue_url":"https://api.github.com/repos/museuminabox/brain/issues/5","id":171325936,"user":{"login":"amcewen","id":108468,"avatar_url":"https://avatars.githubusercontent.com/u/108468?v=3","gravatar_id":"","url":"https://api.github.com/users/amcewen","html_url":"https://github.com/amcewen","followers_url":"https://api.github.com/users/amcewen/followers","following_url":"https://api.github.com/users/amcewen/following{/other_user}","gists_url":"https://api.github.com/users/amcewen/gists{/gist_id}","starred_url":"https://api.github.com/users/amcewen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcewen/subscriptions","organizations_url":"https://api.github.com/users/amcewen/orgs","repos_url":"https://api.github.com/users/amcewen/repos","events_url":"https://api.github.com/users/amcewen/events{/privacy}","received_events_url":"https://api.github.com/users/amcewen/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T15:17:21Z","updated_at":"2016-01-13T15:17:21Z","body":"Okay, have got a working version now, and have worked up a not-perfect-but-hopefully-good-enough fix.\r\n\r\nIf you go to the control panel for the brain you want to change the volume for - the http://brain-1.local:1880/ URL for example - then you can add this to give you a functional volume control...\r\n\r\nCopy the following chunk of JSON to your clipboard:\r\n\r\n[{\"id\":\"b69a4894.a22d5\",\"type\":\"inject\",\"name\":\"Full (400)\",\"topic\":\"\",\"payload\":\"400\",\"payloadType\":\"string\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":154.44444444444443,\"y\":541.1111111111111,\"z\":\"8c018666.713f4\",\"wires\":[[\"4a5bc959.0e1758\"]]},{\"id\":\"3979d3a8.6b0134\",\"type\":\"inject\",\"name\":\"Off (-10239)\",\"topic\":\"\",\"payload\":\"-10239\",\"payloadType\":\"string\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":146.66668701171875,\"y\":586.6666870117188,\"z\":\"8c018666.713f4\",\"wires\":[[\"4a5bc959.0e1758\"]]},{\"id\":\"3f4a2166.0600c6\",\"type\":\"inject\",\"name\":\"\",\"topic\":\"\",\"payload\":\"-500\",\"payloadType\":\"string\",\"repeat\":\"\",\"crontab\":\"\",\"once\":false,\"x\":154.44444444444443,\"y\":637.7777777777777,\"z\":\"8c018666.713f4\",\"wires\":[[\"4a5bc959.0e1758\"]]},{\"id\":\"4a5bc959.0e1758\",\"type\":\"exec\",\"command\":\"amixer cset numid=1 -- \",\"addpay\":true,\"append\":\"\",\"useSpawn\":\"\",\"name\":\"set volume\",\"x\":361.1111111111111,\"y\":580,\"z\":\"8c018666.713f4\",\"wires\":[[],[],[]]}]\r\n\r\nThen click the burger menu in the top right corner of the control panel, choose Import, then Clipboard.  Paste the JSON into the Import Nodes dialog box and click OK.\r\n\r\nThat will give you four new nodes - one labelled \"set volume\" and three others with different volume options.  Clicking the \"Deploy\" button in the top right corner will save those nodes so you can use them (and so they'll be there next time you boot up too)\r\n\r\nClicking on the little rounded-corner square button to the left of one of the options will set the volume to that level.  If you want a different volume level then double-click on one of them, type a different number into the payload (below the drop-down that says \"string\"), and then \"Ok\" and \"Deploy\".  The volume level can be anything between -10239 and 400 (such easy-to-remember values, no?!?)\r\n\r\nI think you'll need to set it each time you boot, sadly, but I can work on something better next time I'm down."}}