Problem JSON -> "type=command&param="

Moderator: leecollings

Post Reply
User avatar
warp
Posts: 33
Joined: Thursday 07 May 2015 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Fr
Contact:

Problem JSON -> "type=command&param="

Post by warp »

I have a problem with my JSON all commands beginning with "type=command&param=", eg:

Code: Select all

curl http://127.0.0.1:8080/json.htm?type=command&param=getuservariables
{
   "status": "ERR"
}
curl http://127.0.0.1:8080/json.htm?type=command&param=system_reboot
{
   "status": "ERR"
}
Why ?
Raspberry 2B:RaZberry Z-Wave+:Edimax EW-7811UN:Huawei E220 3G
4xQubino ZMNHCA2
Everspring SE812 & ST812
Mcohome MH-S411 & MH-S412
2xAEON LABS ZW-100
2xFibaro FGSD-002:Fibaro FGFS-101:Fibaro FGS-221 & KLF-050
User avatar
warp
Posts: 33
Joined: Thursday 07 May 2015 12:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Fr
Contact:

Re: Problem JSON -> "type=command&param="

Post by warp »

Sorry i ave forget the escape key.

Code: Select all

curl http://127.0.0.1:8080/json.htm?type=command\&param=getuservariables
{
   "result" : [
      {
         "LastUpdate" : "2015-11-20 11:04:57",
         "Name" : "test",
         "Type" : "0",
         "Value" : "1",
         "idx" : "1"
      }
   ],
   "status" : "OK",
   "title" : "GetUserVariables"
}
Raspberry 2B:RaZberry Z-Wave+:Edimax EW-7811UN:Huawei E220 3G
4xQubino ZMNHCA2
Everspring SE812 & ST812
Mcohome MH-S411 & MH-S412
2xAEON LABS ZW-100
2xFibaro FGSD-002:Fibaro FGFS-101:Fibaro FGS-221 & KLF-050
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest