Im new to scripting for domoticz and i'm trying to use my Hue lamp with curl and Json Scripts on a windows (2008) PC
I'm trying to start Easy

I want to switch my HUE lamp with Device ID 5 with a Json scirpt With a Dummy On/Off Switch named Hue1 (Type Lightnig 1, X10, On/Off)
(And yes i know it can be Easyer. But i want to start easy with Json later on i want use scene's groups etc...

What i did.
When i run in a "cmd box "on windows 2008
Code: Select all
curl -X PUT -d "{\"on\":true}" http://192.168.1.15/api/myID/lights/5/state

Code: Select all
curl -X PUT -d "{\"on\":false}" http://192.168.1.15/api/myID/lights/5/state

When i create .bat file with the name 5on.bat and 5off.bat and i run the .bat file the lighst switches on/off

The batch files are placed in
Code: Select all
C:\Program Files (x86)\Domoticz\scripts
When i place 5on.bat and 5off.bat in the c:\ and use
Code: Select all
script://5on.bat
Code: Select all
script://5off.bat
Code: Select all
2015-05-07 17:11:18.269 (Dummy) Lighting 1 (Hue1)
2015-05-07 17:11:19.106 Executing script: /5off.bat
2015-05-07 17:11:25.657 (Dummy) Lighting 1 (Hue1)
2015-05-07 17:11:26.127 Executing script: /5on.bat
Is it possible to use this Json code without the / strings? What's the right/easy way to use a json code in Domoticz?
How do i get the .bat file running?