Variables in a string?

trying to figure out how to add a variable to a string. i also tried searching so if there is an answer elsewhere i apologize:

'curl -k "https://192.168.1.109:443/cgi-bin/CGIProxy.fcgi?cmd=setMotionDetectConfig&isEnable=1&usr=admin&pwd=password"'

however where is says “usr=admin&pwd=password” i would want those filled in with variables that would normally be ‘!secret camera_un’ and ‘!secret camera_pw’

any ideas?

Here’s an example where I passed a variable to a shell script. You’ll want so set that curl statement up in a shell_command. I’m not sure how to grab those strings, though. Experiment with the templates dev tool.