LOUIS4Vera 1.0 - A Line-Oriented User Interface for Squeezebox devices for Vera

EOL, unsupported.

Screen video:
[tt]https://docs.google.com/leaf?id=0Bz4omZm4gYcsN2RhMDlmMzAtOTExMi00ODE5LThkYzQtYWM3NWEzZTRlZTU0&hl=en&authkey=CJHc7qsE[/tt]

Script for screen video (see thread for details):
[tt]https://docs.google.com/leaf?id=0Bz4omZm4gYcsNDlmMjU1N2EtMzQwNS00ZmQ5LTgxYzUtN2FiZGRjMDE4OWJh&hl=en&authkey=COHy0awP[/tt]

History:
V1.0: add variables [tt]LastPlayerID, LastButton, LastOut[/tt];
add files [tt]S_LOUIS4Vera1.xml, D_LOUIS4Vera1.json[/tt];
display last playerid, last button, last message on dashboard

Download:
[tt]https://docs.google.com/open?id=0Bz4omZm4gYcsNTQ2ZmUxMTMtOGNiNi00NjJlLTgwZjYtNGNhMDhiZGJmMDVl[/tt]

Looks interesting. What does the squeezebox device with VERA screens look like?
Can you post some pictures?

Unfortunately, it’s impossible to capture the vacuum fluorescence display in decent quality, sorry.

WARNING - the following instructions are really, really far out and not for the faint hearted (but prove the versatility of Squeezebox Server and Vera). :slight_smile:

If you would like to test the LOUIS4Vera setup without buying Squeezebox hardware, there is a workaround:

[ul][li]Install Squeezebox Server (SBS)[/li]
[li]Install SoftSqueeze (Softsqueeze 3.9) or SqueezePlay (Some Software Beta Downloads)[/li]
[li]Configure LOUIS4Vera with the virtual MAC address of your virtual SoftSqueeze/SqueezePlay player[/li][/ul]

SoftSqueeze/SqueezePlay isn’t supported by LOUIS4Vera out of the box, because the Squeezebox emulation lacks a physical IR receiver …

But - as always - there is a workaround: emulate the IR remote commands via Squeezebox Server CLI.

telnet to your SBS:

telnet <ip address of SBS> 9090
version ?

You should see the version of your SBS. Now you are ready to send virtual IR codes.

<virtual MAC address of SoftSqueeze/SqueezePlay> ir <code> <timestamp>

where :

for Vera_Up   : 0000f746
for Vera_Left : 0000f726 
for Vera_Right: 0000f766
for Vera_Down : 0000f716

and : 1, 2, 3, 4, 5, …

Example:

77:d3:f8:e7:03:36 ir 0000f746 1
77:d3:f8:e7:03:36 ir 0000f766 2
77:d3:f8:e7:03:36 ir 0000f766 3

Use a script for sending the virtual IR codes - why not run the script on Vera (http://wiki.micasaverde.com/index.php/Squeezebox#Using_the_SBS_CLI)? :smiley:

local SBS_IP          = '192.168.178.21'
local SBS_CLI_port    = '9090'
local SoftSqueeze_MAC = '77:d3:f8:e7:03:36'

socket=require('socket')
local client = socket.connect(SBS_IP, SBS_CLI_port )

local timestamp = 1

local up    = '0000f746'
local left  = '0000f726'
local right = '0000f766'
local down  = '0000f716'
            
function s(c)

 client:send(SoftSqueeze_MAC..' ir '..c..' '..timestamp..'\n')
 local result=client:receive()

 timestamp = timestamp + 1

-- luup.sleep(1000) -- does not work? (http://wiki.micasaverde.com/index.php/Luup_Lua_extensions#function:_sleep)

 os.execute( 'sleep 1' )

end

-- activate LOUIS

s(down)

-- scroll through the rooms (table luup.rooms may have holes, so we have to use an iterator)

for u,v in pairs(luup.rooms) 
 do
  s(down)
 end

Ok, thanks. Now I have an idea what it looks like. I saw on the Logitech website that there is now the squeezebox touch with a colour screen.

Will it work on that device too?

Will it work on that device too?

I don’t know. You could ask at http://forums.slimdevices.com/forumdisplay.php?f=5 what happens when you send the SBS CLI ‘display’ command to a Squeezebox Touch.

Hey, what a cool plugin. This is pushing me a little more to purchase the SqueezBox. I’ll request for funding (ask to my wife) ;D

Squeezebox is the best thing in digital audio since the original CD player IMHO.
With SB Touch standing on your night table this app can be one major WAF improving factor
:slight_smile:

@325xi

From http://edmidor.com/1479/new-in-squeezebox-apps-louis4vera/:

Application consists of two modules, one for Squeezebox Server running on a computer – it adds new series of options and menus to Squeezebox devices; and the other one is MiOS plugin for Micasaverde Vera – it allows Vera to receive the commands from Squeezebox receiver.

Thank you for your nice review, just a minor addition:
LOUIS4Vera is just a MiOS plugin - it doesn’t come with a Squeezebox Server plugin/module. LOUIS4Vera is completely independent of the Squeezebox Server (as long as the Squeezebox Server CLI doesn’t change).

Right, got to describe it in better way - I referred to necessary changes in SqueezeCenter/IR/jvc_dvd.ir and SqueezeCenter/IR/Default.map as part of the installation

wow Ape15, you rock! I have multiple Squeezeboxes (classic and duet) and have them synched for multi-zone music through the house. This makes my Squeezeboxes and vera much cooler!!! Looks like you just cost me $300 or so, Im headed out to buy a touch soon to add another zone in my bedroom and get access to Vera!!!

Demo script runs on SB Touch, but don’t know how to deal with LOUIS4Vera plugin

@laimjar

Thank you very much for testing the demo script on your Touch.

I’ll post more detailed installation instructions for LOUIS4Vera at http://code.mios.com/trac/mios_louis4vera in the next days.

V0.91 adds support for user-defined status lines, see attachment.

V0.93 adds support for multiple players. Please note ‘9. Security considerations’.

V0.99 adds the device variable AutoDetectPlayers:

If AutoDetectPlayers is 0, you explicitly have to specify the MAC addresses of all players to provide with LOUIS4Vera (SBS_playerid1, SBS_playerid2, … on the ‘Advanced’ tab).

If AutoDetectPlayers is 1, all your players (including software players, e.g. softsqueeze) can be used to control your scenes and devices - without the hassle of adding the MAC addresses on the ‘Advanced’ tab. Please note that this poses a more or less severe security risk (see Instructions, 9. Security considerations).

Please upgrade to V1.0 for compatibility with UI5.