Hellsblade wrote:
>
> I found a little more info using this command;
> curl -v 'http://192.168.1.29:9000/jsonrpc.js' --data-raw
> '{"id":1,"method":"slim.request","params":["08:00:27:6c:e1:a2",["stop"]]}'
>
>
Code:
--------------------
curl -H "Content-Type: application/json" -X POST -d
'{"id":1,"method":"slim.request","params":["08:00:27:6c:e1:a2", ["status", "-",
"1", "tags:al"]]}' "http://192.168.1.29:9000/jsonrpc.js"
--------------------
will return artist/album/title (among others) as JSON, which you can
convert to plain text if your app cannot parse it
a more elegant solution would be to use 'LMS Event Trigger,'
(https://www.nexus0.net/pub/sw/lmseventtrigger/) which can call any
program with the player status as a param on a song change. Probably
doesn't work on windows, though.
'Various SW' (https://www.nexus0.net/pub/sw/): Web Interface | Text
Interface | Playlist Editor / Generator | Music Classification | Similar
Music | Announce | EventTrigger | Ambient Noise Mixer | DB Optimizer |
Image Enhancer | Chiptunes | LMSlib2go | ...
'Various HowTos' (https://www.nexus0.net/pub/documents/LMS/): build a
self-contained LMS | Bluetooth/ALSA | Control LMS with any device | ...
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=115989
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter