Page 1 of 1

REST API get current artist.

Posted: 07 Jan 2024 15:34
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.

Re: REST API get current artist.

Posted: 07 Jan 2024 18:37
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.

Re: REST API get current artist.

Posted: 13 Jan 2024 21:04
by radio42
Fixed in v4.4.3.0!