Author Topic: Sending multiple http queries  (Read 3287 times)

Vintage Radio

  • Newbie
  • *
  • Posts: 6
Sending multiple http queries
« on: May 03, 2018, 05:02:37 pm »
We have been successfully using multiple Silence Detectors at Vintage Radio (on different PC's) for some years but for various reasons I want change this and  use the alarm conditions  to fire off audio on a Radio DJ playout system. I know I can use the http query command to send a command  via a REST server on Radio DJ but I need to be abale to send at least two unique queries on alarm and two different and unique queries on alarm return but the version I am using (1.4) will only allow me to send the same query even though you can actually send several queries. The trouble is, sending just the same query doesnt allow me to do what I want. Have I missed something or is this the way its been designed? If its the latter, it would be very useful to be able to send several different and unique http queries  both on alarm and alarm return conditions. Is this a feasible change? Any alternative suggestions would be welcome. Thanks in anticipation of a steer in the right direction at very least.

Jan

  • Hero Member
  • *****
  • Posts: 1056
Re: Sending multiple http queries
« Reply #1 on: May 04, 2018, 04:45:03 pm »
Modifying the Silence Detector by such way is currently not possible so I would recommend an external solution like calling the curl utility. Use the Open/Play tool and specify a batch file like

query%lasttask.bat

where the %lasttask is used to call unique batch file, query1.bat, query2.bat etc.

In the batch file, call the curl with the parameters required.

Vintage Radio

  • Newbie
  • *
  • Posts: 6
Re: Sending multiple http queries
« Reply #2 on: May 04, 2018, 09:22:22 pm »
Thanks for your prompt reply. I had hoped I'd missed something in the Silence Detector implementation and I was starting to come round to the idea of possibly trying a bat file approach, which you have confirmed. Not used the curl aproach, but you have given me a pointer which I shall look into.