We have moved at community.getvera.com

Author Topic: LOUIS4Vera 1.0 - A Line-Oriented User Interface for Squeezebox devices for Vera  (Read 13906 times)

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
EOL, unsupported.

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

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

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

Download:
https://docs.google.com/open?id=0Bz4omZm4gYcsNTQ2ZmUxMTMtOGNiNi00NjJlLTgwZjYtNGNhMDhiZGJmMDVl
« Last Edit: May 08, 2012, 12:55:52 pm by Ap15e »

Offline evanes

  • Full Member
  • ***
  • Posts: 109
  • Karma: +1/-0
Looks interesting. What does the squeezebox device with VERA screens look like?
Can you post some pictures?

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
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).  :)

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


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:
Code: [Select]
telnet <ip address of SBS> 9090
version ?

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

Code: [Select]
<virtual MAC address of SoftSqueeze/SqueezePlay> ir <code> <timestamp>

where <code>:
Code: [Select]
for Vera_Up   : 0000f746
for Vera_Left : 0000f726
for Vera_Right: 0000f766
for Vera_Down : 0000f716

and <timestamp>: 1, 2, 3, 4, 5, ...

Example:

Code: [Select]
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)?  :D

Code: [Select]
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
« Last Edit: March 13, 2011, 01:33:39 pm by Ap15e »

Offline evanes

  • Full Member
  • ***
  • Posts: 109
  • Karma: +1/-0
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?

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Quote
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.

Offline mcardenas

  • Jr. Member
  • **
  • Posts: 72
  • Karma: +0/-0
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

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
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
:)
« Last Edit: January 06, 2011, 02:31:54 pm by 325xi »

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
@325xi

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

Quote
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).

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
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

Offline myhomeserver

  • Hero Member
  • *****
  • Posts: 874
  • Karma: +3/-5
  • http://www.MyZwave.net
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!!! 


MyZWave.net - See Our Z-Wave product Reviews
(formerly MyHomeServer)

Offline laimjar

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Demo script runs on  SB Touch, but  don't know how to deal with LOUIS4Vera plugin

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
@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.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
V0.91 adds support for user-defined status lines, see attachment.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
V0.93 adds support for multiple players. Please note '9. Security considerations'.

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
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).
« Last Edit: January 18, 2011, 08:56:59 am by Ap15e »