Stereo Tool
https://forums.stereotool.com/

API to get current processing data
https://forums.stereotool.com/viewtopic.php?t=25897
Page 1 of 1

Author:  Minetti [ Sat Mar 02, 2019 12:28 pm ]
Post subject:  API to get current processing data

I'm building stereotool PCs from time to time, the last one is a 1U device with a nice LCD in its front. Now I use a whole battery of software tools to get processing levels to display on the LCD.
Would it be possible to have a sort of API, of course REST or WebSocket comes to mind if it can be fast enough, to get current processing data? Like buffer status, in and out levels,...
As something similar works with the web interface I thought it might be possible to get some plain data out of it.
Maybe with filter options to define which data is needed.

Author:  hvz [ Sat Mar 02, 2019 3:38 pm ]
Post subject:  Re: API to get current processing data

There are 3 options:
1. Use the web interface.
2. Use the new (and not yet documented) JSON interface
3. Use the "generic plugin" version of Stereo Tool that gives you access to every setting and meter in the software directly.

Author:  Minetti [ Sat Mar 02, 2019 5:21 pm ]
Post subject:  Re: API to get current processing data

Quote:
2. Use the new (and not yet documented) JSON interface
That sounds good. Can you give some pointers?

Author:  hvz [ Tue Mar 05, 2019 11:13 am ]
Post subject:  Re: API to get current processing data

Quote:
Quote:
2. Use the new (and not yet documented) JSON interface
That sounds good. Can you give some pointers?
I guess I'd better start documenting it... Here are a few examples (for MicroMPX, but if you use the correct ID's it will work for Stereo Tool as well):

Set a string or IP address: http://127.0.0.1:8080/json-1/list%7B%22 ... 1%22%7D%7D

Set MicroMPX port number: http://127.0.0.1:8080/json-1/list%7B%22 ... 8%22%7D%7D

Click on a button: http://127.0.0.1:8080/json-1/list%7B%22 ... 1%22%7D%7D

Note: The kinda unreadable URLs contain a lot of characters like quotes and brackets which are all replaced by %XX values... but it's basically just simple JSON notation.

I know this isn't useful yet, I'll document it. Soon.

Author:  oRiCLe [ Fri Nov 29, 2019 5:24 am ]
Post subject:  Re: API to get current processing data

A bump for this feature, I am currently using the above JSON URLs along with some deducing from the IDs of each field in the web interface source code to update the RDS text directly from the playout system wich is working well.

Would love some info on how to get a stream/feed/update of the processing updates (in/out levels at least) etc to display on some hardware like VU meters and HMI screens on the rack and also use for silence detect and triggering OSC and MIDI messages to the studio switching mixer we are using/failover etc. :)

Author:  anthonyedenhope [ Thu Dec 19, 2024 4:00 am ]
Post subject:  Re: API to get current processing data

Hello,

Just wondering if you could help me update the Main Input field dynamically via the JSON API? Whenever I try the following, I get 'not found' next to the input name in the UI.
Code:
http://127.0.0.1:8080/json-1/lis{"9851":{"forced":"1", "new_value":"DVS Receive  1-2 (DVS Channels  1-2) (Kernel Streaming 44.1 - 192kHz)"}}
I have tried the above both with and without explicit URL encoding of the JSON.

I'm trying to use this to do some basic studio switching directly in StereoTool.

Thanks for your assistance!

Author:  hvz [ Thu Dec 19, 2024 4:11 pm ]
Post subject:  Re: API to get current processing data

Quote:
Hello,

Just wondering if you could help me update the Main Input field dynamically via the JSON API? Whenever I try the following, I get 'not found' next to the input name in the UI.
Code:
http://127.0.0.1:8080/json-1/lis{"9851":{"forced":"1", "new_value":"DVS Receive  1-2 (DVS Channels  1-2) (Kernel Streaming 44.1 - 192kHz)"}}
I have tried the above both with and without explicit URL encoding of the JSON.

I'm trying to use this to do some basic studio switching directly in StereoTool.

Thanks for your assistance!
Hi, is a sound card with this exact name listed in the pulldown menu? Also: I'm pretty sure (but not fully) that the name shouldn't include 44.1 - 192 kHz; can you check the name that's reported when you just read this field when the correct sound card is selected?

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/