Plethra

Welcome!

This is a collaboratively edited question and answer site for power users of Plethra hardware and software. It's 100% free to participate.

Get current playing song from a session

0 votes

I am using controller.js to figure out the API. So far I have successfully found a way to detect the status of a sink and when the sink becomes active I can trigger a macro that turns on my receiver and switches to the correct input and then when the sink goes inactive for 10 mins it will then turn off my receiver.

What I am trying to do now is write a Now Playing interface. First I am using SessionGetDetails to gather up the parent, item, instance and user and then calling SourceGetItemDetails like this:
http://master-acacia.local.:8060/SourceGetItemDetails?parent=slacker-station-38&item=slacker-song-14480071&instance=0&user=slacker

But it isn't returning anything.

What am I missing? I suspect it has to do with the user parm being wrong. Could you give me some hints?

Thanks in advance!

asked Feb 25, 2016 by user1430 (13 points)

1 Answer

0 votes

Nevermind. I figured it out. I want to use SourceGetDetails rather than SourceGetItemDetails.

answered Feb 25, 2016 by user1430 (13 points)
...