REST API get current artist.

You have a question or need an advice about how to do something? Ask it here!
Post Reply
John2103
Posts: 20
Joined: 11 Nov 2019 16:32
REST API get current artist.

Post by John2103 »

If I use PING ${cpltrackartistcurrent} via TCP, ProppFrexx returns the name of the artist.

However if I query the REST API via Postman, ["PING ${cpltracknamecurrent}"], ProppFrexx returns ${cpltracknamecurrent}

If I query the REST API for [“PING”], ProppFrexx returns “OK”.

Am I doing something wrong? And is there an alternative way to get the current artist (and title) from the REST API?

Thanks in advance.
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: REST API get current artist.

Post by radio42 »

Yes, currently the PING command is only handled locally within the GPIO Client (i.e. it would only eval macros of the GPIO Client itself), but not passed thru to ProppFrexx ONAIR (to eval macros there as well).
This is also the difference to the TCP command, as TCP commands are send directly to ProppFrexx ONAIR and as such handled there.

But I might change this in a next release, so that macros for the PING command are also handled and evaluated within ProppFrexx ONAIR.
User avatar
radio42
Site Admin
Posts: 8350
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: REST API get current artist.

Post by radio42 »

Fixed in v4.4.3.0!

Post Reply