Hello, what would be the best way to send a tempvalue to Code_Device in Python?
I dont get it to work....
I tried to use this:
http://192.168.1.108:8083/JS/Run/contro ... level',50)
with this:
os.system(curl... but i end up with errors i cant solve, please help.
(ofcourse i did add IP and add user:password:
os.system('curl -s -LN --globoff http://user:password@127.0.0.1:8083/JS/ ... level',50)')
Thanks in advance/
Marcus
Tempvalue from Python to Code_Device_sensorMultilevel
-
- Posts: 174
- Joined: 02 Mar 2020 22:41
Re: Tempvalue from Python to Code_Device_sensorMultilevel
Your use of the single quote (') is not correct.
Try:
os.system("curl -s -LN --globoff http:// 192.168.1.108:8083/JS/Run/controller.devices.get('Code_Device_sensorMultilevel_38').set('metrics:level',50)")
Try:
os.system("curl -s -LN --globoff http:// 192.168.1.108:8083/JS/Run/controller.devices.get('Code_Device_sensorMultilevel_38').set('metrics:level',50)")