Raspberry PI MPD Client for 2.8 PiTFT

 Raspberry PI  Comments Off on Raspberry PI MPD Client for 2.8 PiTFT
Sep 132017
 
Share

I modified the YMPD Web GUI to create an interface suitable for a 2.8 PiTFT screen.
In my scenario, I am connecting to another Raspberry Pi running as a MPD server.

I compiled these files into a new build.
From there I simply launch the Chromium browser in Kiosk mode.

#!/bin/bash  
echo "Start Kiosk"
chromium-browser --start-fullscreen --kiosk --window-position=0,0 --window-size=320,240 http://localhost:8080 &
cd ympd/build
echo "Launch YMPD"
./ympd --webport 8080 --host 192.168.1.92 --port 6600
 Posted by at 12:34 pm  Tagged with: ,

Party Mode mod for Volumio

 Raspberry PI, Software  Comments Off on Party Mode mod for Volumio
Apr 292017
 
Share

Volumio is a headless audio player for the Raspberry Pi. I am using it as a jukebox with the 7′ LCD display.

I revised some of the code to work the way I wanted as a “party mode.”
1. From the browse window, the default event for clicking on a song is to add it to the queue instead of auto-play.
2. I display a popup message that the song was added to the queue.
3. Give a visual cue of what you clicked on.

Source and documentation can be found on GitHub.

Line rows are basic locations.

/src/app/browse/browse.controller.js
Line 3: Added toastMessageService

modalService, $timeout, matchmediaService, $compile, $document, $rootScope, $log, playerService, toastMessageService) 

Line 18: Added constructor reference:

this.toastMessageService = toastMessageService;

Line 68: Modified clickListItem(item)
Changed

this.play(item)

to…

this.toastMessageService.showMessage('success', item.title+' Added to Queue', 'Queue');
this.playQueueService.add(item);

Line 228: modified itemWrapper div
Changed

this.table += '<div class="itemWrapper"><div class="itemTab">';

to…

this.table += '<div class="itemWrapper" onclick="style.backgroundColor = '#42f4f1'"><div class="itemTab">';

 Posted by at 7:36 am  Tagged with: ,