Page 1 of 1

Using TCP to get current playing and next song info.

Posted: 18 Nov 2019 18:44
by phonic
Hi,

I'm putting together a custom remote app that runs on a android/IOS tablet for our roadshows that controls some parts of ProppFrexx when not behind desk
For live song information, I've currently got CUED and playing with "CURRENT_GET_SELECTEDENTRY" is this the correct one to use? how to I get next track info? I would like to place this below the current playing song info as seen on the screenshot attached.

Without constantly going thought the drop down on ProppFrexx to see possible commands, do you have a complete updated list of commands that can be used via TCP? Do you also have full information on how you've implemented the TCP service on ProppFrexx, and data returned, to ensure I've got it correct, and collecting all fields.

Thanks.

Re: Using TCP to get current playing and next song info.

Posted: 18 Nov 2019 19:22
by radio42
When using the TCP interface as explained here:
https://www.proppfrexx.radio42.com/foru ... &t=12&p=21

You might then use the PING control command and use any macro to get it resolves in result as a result eg.:
PING ${cpltracknamecurrent}|${cpltracknamenext}

Note, that you can use any macros, eg. comma separated to get them resolved at once.

Another alternative is to let them get pushed to your application, instead of you pulling the data? Or use the OSC api...

A list of all available macros can be found in the Appendix of the user manual.

Re: Using TCP to get current playing and next song info.

Posted: 18 Nov 2019 19:58
by phonic
I looked at the OSC app, but does not meet our needs, as we we need other options like live FM/DAB network status, and messaging and linking with our S2 GPIO, etc. It's about finished now, but was just missing the last bit with getting the next song info. I will switch to using the ping command for current and next song info, as it sounds like a better option and cuts down on code needed.

I do use push for website and updating DLS info on DAB/FM, but for the app running on a tablet, it needs to pull the info.

Thanks for your help.

Re: Using TCP to get current playing and next song info.

Posted: 18 Nov 2019 20:16
by radio42
Sounds fair!