Release Surveillance Room - Your IP Camera Companion with extra Foscam HD Support
@BuxtonCalvin Thanks for your feedback, much appreciated. I've tried the HTTP request in Chome (and FF) and now I get the following:

error
code-32099
message"Bad client permission."
id2
jsonrpc"2.0"

A different error code. Remote access without password is enabled on port 8080.

I've redone all quotes in NP++ as you suggest and now when I run your Curl command (from Windows), I get the following:

C:\Windows\System32>curl -i -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"Addons.ExecuteAddon","params":{"wait":false,"addonid":"plugin.video.surveillanceroom","params":{"action":"show_preview","camera_number":"1","id":"1"}},"id":"2"}' http://10.0.1.101:8080/jsonrpc -lrpc=trace -v
Warning: Invalid character is found in given range. A specified range MUST
Warning: have only digits in 'start'-'stop'. The server's response to this
Warning: request is uncertain.
*   Trying 10.0.1.101...
* TCP_NODELAY set
* Connected to 10.0.1.101 (10.0.1.101) port 8080 (#0)
> POST /jsonrpc HTTP/1.1
> Host: 10.0.1.101:8080
> Content-Range: bytes pc=trace/155
> User-Agent: curl/7.55.1
> Accept: */*
> Content-Type: application/json
> Content-Length: 155
>
* upload completely sent off: 155 out of 155 bytes
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Connection: Keep-Alive
Connection: Keep-Alive
< Content-Length: 76
Content-Length: 76
< Content-Type: application/json
Content-Type: application/json
< Cache-Control: private, max-age=0, no-cache
Cache-Control: private, max-age=0, no-cache
< Accept-Ranges: none
Accept-Ranges: none
< Date: Mon, 04 Feb 2019 03:45:24 GMT
Date: Mon, 04 Feb 2019 03:45:24 GMT

<
{"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}* Connection #0 to host 10.0.1.101 left intact
Reply


Messages In This Thread
All Cameras - by zaxcom - 2016-08-25, 03:17
Axis M211 - by OnkelKraecker - 2017-03-08, 13:36
RE: Axis M211 - by jinux - 2017-03-08, 14:43
Axis M 211 - by OnkelKraecker - 2017-10-13, 12:57
RE: Axis M 211 - by maikito26 - 2018-01-24, 15:00
RE: Surveillance Room - Your IP Camera Companion with extra Foscam HD Support - by zivodevo - 2019-02-04, 05:52
Logout Mark Read Team Forum Stats Members Help
Surveillance Room - Your IP Camera Companion with extra Foscam HD Support7