Skip to content

AudYoFlo: Behavior: Http Commands (Curl) to Control the AudYoFlo Web Host

jvxgit edited this page Jun 17, 2024 · 21 revisions

So far, this is only a very compact representation of the options you have to control the AudYoFlo Web Host. More details to come soon.

  • Command <show(connections)>: curl 127.0.0.1:8000/jvx/host/connections/list
  • Command <show(connections, path)>: curl 127.0.0.1:8000/jvx/host/connections/path
  • Command <show(connections, upath, 12)>: curl 127.0.0.1:8000/jvx/host/connections/path?uid=12
  • COmmand <show(connections, ready)>: curl 127.0.0.1:8000/jvx/host/connections/ready

  • Command <show(system)>: curl 127.0.0.1:8000/jvx/host/system/status
  • Command <show(system, version)>: curl 127.0.0.1:8000/jvx/host/system/version

  • Command <show(audio technology, devices)>: curl "127.0.0.1:8000/jvx/host/components/audio_technology/devices?slotid=0"

  • Command <show(audio node<1>, properties, full)>: curl "127.0.0.1:8000/jvx/host/components/audio_node?purpose=full&slotid=1"
  • Command <show(signal processing node<1>, properties, fullp|x, [/eq/equalizer_15,/eq/equalizer_14]): curl "127.0.0.1:8000/jvx/host/components/signal_processing_node/multi?purpose=fullp|x&slotid=0&multi=[/eq/equalizer_15,/eq/equalizer_14]"
  • Command <act(audio node, get_property, /allow_overwrite)>: curl 127.0.0.1:8000/jvx/host/components/audio_node/allow_overwrite
  • Command <act(audio node, set_property, /allow_overwrite, yes)>: curl -d "yes" -X PUT 127.0.0.1:8000/jvx/host/components/audio_node/allow_overwrite
  • Command <act(audio node, get_property, [/inout/system/framesize,/inout/system/rate])>: curl "127.0.0.1:8000/jvx/host/components/audio_node/multi?multi=[/inout/system/framesize,/inout/system/rate]"
  • Command <act(audio node, get_property, [(/inout/system/framesize, offs, num, content-only, ctxt),/inout/system/rate])>: curl "127.0.0.1:8000/jvx/host/components/audio_node/multi?multi=[(/inout/system/framesize,offs,num,content-only,ctxt),/inout/system/rate]"
  • Command <act[rc](signal processing node, set_property, [(/pots/gain1, 2, 0),(/pots/gain2, 2, 0)])>: curl -d "[(/pots/gain1, 2),(/pots/gain2, 2)]" -X POST "127.0.0.1:8000/jvx/host/components/signal_processing_node/multi?report=yes&collect=yes"
  • Note 1: The report triggers that the property ident is reported, the collect also triggers a report but the property ident is not set unless report is set.
  • Note 2: Put the arguments in quotes if the special characters cause problems!!

  • Command <act(sequencer, status)>: curl 127.0.0.1:8000/jvx/host/sequencer/status
  • Command <act(sequencer, start)>: curl -d "" -X POST 127.0.0.1:8000/jvx/host/sequencer/start
  • Command <act(sequencer, stop)>: curl -d "" -X POST 127.0.0.1:8000/jvx/host/sequencer/stop

  • Command <act(audio device, unselect)>: curl -d "" -X POST 127.0.0.1:8000/jvx/host/components/audio_device/unselect
  • Command <act(audio device, activate, 5)>: curl -d "" -X POST 127.0.0.1:8000/jvx/host/components/audio_device/activate?id=5

  • Command <file(config, write)>: curl -d "" -X POST 127.0.0.1:8000/jvx/host/system/file

  • Any command as given for <show(system)>: curl -d "show(system)" -X POST 127.0.0.1:8000/jvx/host/commands/

Back

Clone this wiki locally