Got my xAP working as follows (bit protracted as I wanted to see what
LMS was doing):

-Stopped LMS on the NAS
-renamed my entire cache folder (incase i needed anything).
-removed stringcache binary.
-Restarted LMS
-Reinstalled xAP plug (to make sure i was defo uptodate and clean)
-Stopped LMS
-created a hardlink to Strings.txt called strings.txt (so I wont have to
rename in future).
-added a newline at bottom of strings.txt (looks like file came from
windoze) - caused server parsing issues for me..
-removed stringcache
-restarted LMS

The above fixed my settings screen.

Next, I looked at the xAP control problem quickly:
1. Put xAP into debug
2. crafted a new Audio.Transport message for play and shot it from xfx4
3. I did not see any status change messages?
4. Looked at my xAP settings and noticed that xAP hub was set to
external. Now I dont understand the authors comments and I have not yet
unpacked to .par file to see what he means, but my assumption that
external means it is relying on another xAP hub running on the server
(which its not), so I set to internal and restarted LMS (I understand
this will bind xAP plug directly to socket stopping other xAP apps on
that box working on srd port, but will look at this later.
5. re-shot my message...now I got some messages bouncing in-out, but no
player noise :(.
6. Sat back, thought and checked my player using remote. It was still in
its clean, switched on state (NO MUSIC selected) - i.e Now Playing ->
Nothing. Doh.....
7. Sent a playlist message to select an album -> messages flying..
8. Sent message to turn off player -> player off
9. sent message to turn on player -> player on
10. sent message to play -> Music
11. Sent same sequence to another player (SB3) -> sound
12. Sent same message sequence to .>:* ->house comes alive with sound.

Will look at the hub/internal issue to see what it means to me.
In mean time, I'm gonna write an alarmApplet.lua script for my HAH
synced to our bedroom light fader. 

Sweet....

ps: you will get xAPBSC.Event from your LMS when you turn on/off devices
(among other things), but you 'control' these by issuing xAPBSC.Cmd
messages (as per the BSC specs).
The really good stuff is the Audio.Transport, Query and Playlist classes
(and 'Alarm' - but I gonna use my HAH scheduer instead).

pps: the :0000 is the server, but I already had my 'base' changed to
another UID, and using :0000 to pretend I was a 'server' - not that it
matters currently and I dont want any messages back.

BodgeIT - I see you are also a HAH user - its all new to me, but loving
the last two weekends tinkering :)

BodgeIT wrote: 
> Did you try clearing your cache?
> 
> 
> On my system I think uid 0000 is the server, clients have ids 0001 to
> 0005.  When I try your message, I get no response from the unit. i.e. it
> doesn't pause when playing or vice-versa.
> 
> When I send a play command from the server to my Kitchen unit, the
> output looks like this:
> xap-header
> {
> v=13
> hop=1
> uid=FF.0D7D1610:0002
> class=xAPBSC.Event
> source=ersp.SlimServer.Stargate:Kitchen
> }
> output.state
> {
> DisplayText=Playing
> Level=17/100
> State=on
> }
> 
> As you can see this is a xAPBSC.Event message.  The uid is that of my
> Kitchen unit, not the server.  This actually doesn't make sense to me
> but I'm not very clear on the xAP protocol.  I use xAP to power on/off
> grab details etc.  I cannot see a xAP.Audio message for play or pause.


------------------------------------------------------------------------
TheDistractor's Profile: http://forums.slimdevices.com/member.php?userid=33846
View this thread: http://forums.slimdevices.com/showthread.php?t=52645

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to