example script:
Code: Select all
#!/bin/bash
curl -v -X PUT \
--url http://192.168.X.xx:16021/api/v1/***apikey***/effects/\
--header 'content-type: application/json' \
--data '{"select":"'"$1"'"}';
This is working perfectly, but I would also like to write the name of the scene to a user variable, so I can use this in another scripting to see which scene is running. How can I do this?