Lua Script tu update a device with json url -help
Posted: Saturday 19 August 2023 12:13
Maybe somebody can help to find a solution. I am trying to add a local variable to a json url command without success. The following command is working well and the RBG color will change.
os.execute('curl "http://127.0.0.1:8080/json.htm?type=com ... hite=false"')
but if I replace the hex value by a local variable the curl command end with an error.
os.execute('curl "http://127.0.0.1:8080/json.htm?type=com ... hite=false"')
I tried serveral things to to create first the the http string and store it to a variable but everything will fail.
What am I doing wrong? Please help
os.execute('curl "http://127.0.0.1:8080/json.htm?type=com ... hite=false"')
but if I replace the hex value by a local variable the curl command end with an error.
os.execute('curl "http://127.0.0.1:8080/json.htm?type=com ... hite=false"')
I tried serveral things to to create first the the http string and store it to a variable but everything will fail.
What am I doing wrong? Please help