executable_obs-websocket-http.sh 511 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -o nounset -o errexit -o pipefail
  3. API_URL="${API_URL:-http://192.168.0.144:4456}"
  4. API_PASSWORD="aevoP4oh"
  5. case "$1" in
  6. "edit")
  7. case "$2" in
  8. scene)
  9. curl --request POST \
  10. --header "Authorization: ${API_PASSWORD}" \
  11. --header "Content-type: application/json" \
  12. --data "{\"sceneName\":\"$3\"}" "${API_URL}/emit/SetCurrentProgramScene"
  13. ;;
  14. esac
  15. ;;
  16. esac
  17. printf "\n"