REW Rest API not in 5.30 build

ewfwfewfwef

Registered
Thread Starter
Joined
Dec 26, 2023
Messages
9
Hi - I want to try out the REST api thats mentioned here in the beta documentation

betahelp/help_en-GB/html/api.html

but in testing the latest 5.30 build if I add the -api command line parameter it says "Api not supported in this build"

There does not seem to be any other beta builds available?

Am I missing something?

thanks
 

ewfwfewfwef

Registered
Thread Starter
Joined
Dec 26, 2023
Messages
9
NB I couldnt paste full url but its www dot roomeqwizard dot com /betahelp/help_en-GB/html/api.html
 

ewfwfewfwef

Registered
Thread Starter
Joined
Dec 26, 2023
Messages
9
Ah OK that makes sense then, do you know what the plans are on timescales for a build including them? Thanks
 

ewfwfewfwef

Registered
Thread Starter
Joined
Dec 26, 2023
Messages
9
@John Mulcahy thanks yes I have the api working - I only really wanted to be able to read the current SPL level (as shown in the SPL meter)

is it correct that you need a pro licence to read that?

I am doing a HTTP Post to /measure/command

{
"command": "SPL"
}
 

John Mulcahy

REW Author
Joined
Apr 3, 2017
Messages
7,326
That's a command to make an SPL measurement sweep. There isn't an endpoint for the SPL meter yet, though you can access the raw input levels.
 

ewfwfewfwef

Registered
Thread Starter
Joined
Dec 26, 2023
Messages
9
ah ok thanks - got that working - it only seems to send one event to the subscription

{"unit":"SPL","rms":[59.386411237528165],"peak":[66.70078580605418],"timeSpanSeconds":0.17066666666666666}

should it keep sending it periodically?

Also is an endpoint for the SPL meter planned?
 

John Mulcahy

REW Author
Joined
Apr 3, 2017
Messages
7,326
Yes, there will be an endpoint for the SPL meter.

Per the help, if you don't acknowledge the subscription message the subscription will be cancelled.
 

ewfwfewfwef

Registered
Thread Starter
Joined
Dec 26, 2023
Messages
9
yes I am sending a HTTP 200 but perhaps its in slightly the wrong format - I'll check in fiddler. thanks
 

John Mulcahy

REW Author
Joined
Apr 3, 2017
Messages
7,326
The code is the only thing checked, any 2XX code will be accepted. Timeout for response is 1 second. I'll add error messages to the Application error log if a subscription is removed due to timeout or error.
 
Top Bottom