{"id":519,"date":"2017-04-29T07:36:33","date_gmt":"2017-04-29T11:36:33","guid":{"rendered":"http:\/\/markwheeler.com\/wordpress\/?p=519"},"modified":"2017-04-29T07:36:33","modified_gmt":"2017-04-29T11:36:33","slug":"party-mode-mod-for-volumio","status":"publish","type":"post","link":"https:\/\/www.markwheeler.com\/?p=519","title":{"rendered":"Party Mode mod for Volumio"},"content":{"rendered":"<p><a href=\"http:\/\/www.volumio.com\/\">Volumio<\/a> is a headless audio player for the Raspberry Pi. I am using it as a jukebox with the 7&#8242; LCD display.<br \/>\n<a href=\"http:\/\/54.159.73.21\/wp-content\/uploads\/2017\/04\/wheelerio1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/markwheeler.com\/wordpress\/wp-content\/uploads\/2017\/04\/wheelerio1-300x191.jpg\" alt=\"\" width=\"300\" height=\"191\" class=\"alignnone size-medium wp-image-520\" \/><\/a><\/p>\n<p>I revised some of the code to work the way I wanted as a &#8220;party mode.&#8221;<br \/>\n1. From the browse window, the default event for clicking on a song is to add it to the queue instead of auto-play.<br \/>\n2. I display a popup message that the song was added to the queue.<br \/>\n3. Give a visual cue of what you clicked on.<\/p>\n<p><a href=\"https:\/\/github.com\/volumio\/Volumio2-UI\">Source and documentation<\/a> can be found on GitHub.<\/p>\n<p>Line rows are basic locations.<\/p>\n<p><strong>\/src\/app\/browse\/browse.controller.js<\/strong><br \/>\nLine 3: Added toastMessageService<\/p>\n<pre>\nmodalService, $timeout, matchmediaService, $compile, $document, $rootScope, $log, playerService, toastMessageService) \n<\/pre>\n<p>Line 18: Added constructor reference:<\/p>\n<pre>this.toastMessageService = toastMessageService;<\/pre>\n<p>Line 68: Modified <strong>clickListItem(item)<\/strong><br \/>\nChanged <\/p>\n<pre>this.play(item)<\/pre>\n<p> to&#8230;<\/p>\n<pre>this.toastMessageService.showMessage('success', item.title+' Added to Queue', 'Queue');\nthis.playQueueService.add(item);<\/pre>\n<p>Line 228:  modified <strong>itemWrapper div<\/strong><br \/>\nChanged <\/p>\n<pre>\nthis.table += '<div class=\"itemWrapper\"><div class=\"itemTab\">';\n<\/pre>\n<p> to&#8230;<\/p>\n<pre>\nthis.table += '<div class=\"itemWrapper\" onclick=\"style.backgroundColor = '#42f4f1'\"><div class=\"itemTab\">';\n<\/pre>\n<p><a href=\"http:\/\/54.159.73.21\/wp-content\/uploads\/2017\/04\/wheelerio.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/markwheeler.com\/wordpress\/wp-content\/uploads\/2017\/04\/wheelerio-300x149.png\" alt=\"\" width=\"300\" height=\"149\" class=\"alignnone size-medium wp-image-521\" srcset=\"https:\/\/www.markwheeler.com\/wp-content\/uploads\/2017\/04\/wheelerio-300x149.png 300w, https:\/\/www.markwheeler.com\/wp-content\/uploads\/2017\/04\/wheelerio-1024x510.png 1024w, https:\/\/www.markwheeler.com\/wp-content\/uploads\/2017\/04\/wheelerio-768x382.png 768w, https:\/\/www.markwheeler.com\/wp-content\/uploads\/2017\/04\/wheelerio-1536x764.png 1536w, https:\/\/www.markwheeler.com\/wp-content\/uploads\/2017\/04\/wheelerio.png 1919w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Volumio is a headless audio player for the Raspberry Pi. I am using it as a jukebox with the 7&#8242; LCD display. I revised some of the code to work the way I wanted as a &#8220;party mode.&#8221; 1. From the browse window, the default event for clicking on a [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[9,11],"tags":[63,120],"class_list":["post-519","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi","category-software","tag-jukebox","tag-volumio"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=\/wp\/v2\/posts\/519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=519"}],"version-history":[{"count":0,"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=\/wp\/v2\/posts\/519\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.markwheeler.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}