The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: xAP for Squeezebox Server



I *think* I had the same issue a while back and tracked it down to a
change
in the showBriefly function in the SB server internals.

I may be wrong, but you could try my fix:

Extract the plugin (rename the .par to .rar and extract with winrar)

Modify the file lib\Plugins\xAP\Display.pm:

#$client->showBriefly($parts, {'duration'     => $dur,
#                              'brightness'   => $brightness,
#                              'firstline'    => $msg->{size} eq 'l',
#                              'block'        => 0,
#                              'callback'     => \&endShowCallback,
#                              'callbackargs' => { 'client' =>
$client->id, 'message' => $msg },
#                              'name'         => 'xAP', } );

$client->showBriefly($parts, $dur, $msg->{size} eq 'l', 0, 1,
$brightness, \&endShowCallback, { 'client' => $client->id,
'message' =>
$msg }, 'xAP');

(so comment out the original call to showBriefly and insert mine)

Drag the changed file back into the rar file in the correct path.

Rename the .rar file back to .par


Let me know if it works?

(As I said, I can't remember if this fix was for the issue you described or
not, but I seem to recall that an update to the SB server broke the display
functions at some point and this fixed it for me).


Martyn



-----Original Message-----
From: la6bla
Sent: Tuesday, July 03, 2012 12:32 PM
To: xap_automation@xxxxxxx
Subject: [xap_automation] xAP for Squeezebox Server

Hi,

I have a problem sending text to my Squeezebox devices via the xAP plugin.
Other commands such as "pause playback" works fine. Also BSC
messages from
plugin are transmitted as they should. But when I send an xAP message to
the
plugin like this:

xap-header
{
v=13
hop=1
uid=FF.000E:0000
class=Message.Display
source=ersp.testscript.test
target=ersp.SlimServer.Srv:>
}
Display.Text
{
Line1=aaaaa
Line2=bbbbb
}

The network symbol on the SB devices turns from white to red for a few
seconds. I have tried changing parameters in xAP message, but same thing
happens.

I ran Wireshark to see what's transmitted to the device to compare packages
from xAP plugin and the SB Telnet CLI command "Display
cccccccccccccccccc",
which works.

Package from CLI:
[{"data":{"type":"showbriefly","display":{"text":["cccccccccccccccccc",null]}},"id":"7","channel":"/d2c8720b/slim/displaystatus/00:04:20:17:db:e6","ext":{"priority":""}}]


Package when sending message via xAP plugin:
[{"error":"encountered CODE(0x8655fc4), but JSON can only
represent
references to arrays or hashes at
/<C:\\PROGRA~1\\SQUEEZ~1\\server\\SqueezeSvr.exe>Slim/Web/Cometd.pm
line
692.\n","successful":false}]


Sqeeze server log shows no errors for none of the methods:
[12-07-03 12:18:04.6948] Slim::Display::NoDisplay::showBriefly (34) caller
Plugins::xAP::Display::showMessage (110) notifyLevel=1

[12-07-03 12:18:26.9863] Slim::Display::NoDisplay::showBriefly (34) caller
Slim::Control::Commands::displayCommand (1884) notifyLevel=1

Debug log looks good too.

Versions:
Logitech Media Server Version: 7.7.2 - r33893
Player Firmware: 7.7.2-r9663
Both controller and radios.
xAP Home Automation (v2.4.3)
Win2003 32bit server.





------------------------------------


xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.