#/data/data/com.termux/files/usr/bin/bash read -p "Enter desired temperature and press enter: " temperature echo echo "Temperature set to: ${temperature}" begging='{"commands":[{"component":"main","capability":"thermostatCoolingSetpoint","command":"setCoolingSetpoint","arguments":[' rest="]}]}" command=${begging}${temperature}${rest} echo echo echo "Command is:" echo ${command} echo echo /data/data/com.termux/files/usr/bin/curl -X POST -H "Content-Type: application/json;charset=utf-8" -H "Accept: application/json" -H "Authorization: Bearer a3761a4f-3d53-4206-a09a-54e73b157462" https://api.smartthings.com/devices/C097276A-4909-0000-0000-000000000000/commands -d ${command} | /data/data/com.termux/files/usr/bin/jq read -p "press enter to continue" throwaway