hello all, any help you can provide would be most appreciated !
i've setup a ghostxml dev with type: json; url:
http://192.168.0.98/rpc={"version": "1.0","password":"password","proc": "GetPlantOverview", "id": "1","format": "JSON"}
this is the format as noted in the dev manual* for the webbox (without the password param, but returns same without). but, as i said, i'm completely un-versed in this. so..
it's returning errors:
GhostXML Error sma sunny webbox: No JSON object could be decoded
GhostXML Error Error cleaning dictionary keys: 'NoneType' object has no attribute 'iterkeys'
is there something obvious i'm doing wrong?
*http://files.sma.de/dl/2585/SWebBoxRPC-BA-en-14.pdf
thanks!
- Code: Select all
Jul 9, 2017, 9:38:43 PM
GhostXML Debug User prefs saved.
GhostXML Debugging on (Level: 3)
GhostXML Debug valuesDict: UiValuesDict : (dict)
configMenuPollInterval : 300 (string)
configMenuServerTimeout : 15 (string)
infoLabel0 : (string)
refreshFreq : 300 (integer)
sep2 : (string)
sep3 : (string)
sep4 : (string)
showDebugInfo : true (bool)
showDebugLevel : 3 (integer)
space0 : (string)
space10 : (string)
space11 : (string)
space4 : (string)
space5 : (string)
space6 : (string)
space7 : (string)
space8 : (string)
space9 : (string)
updaterEmail : admin@domain.net, dtich@domain.net (string)
updaterEmailsEnabled : true (bool)
updaterLastCheck : 1499659392 (real)
GhostXML Debug
GhostXML Debug sma sunny webbox:
GhostXML Debug Time since update: 421
GhostXML Debug
GhostXML Debug sma sunny webbox:
GhostXML Debug Time since update: 426
GhostXML Debug refreshData() method called.
GhostXML Debug Updating data...
GhostXML Debug Found configured device: sma sunny webbox
GhostXML Debug sma sunny webbox is enabled.
GhostXML Debug Refreshing device: sma sunny webbox
GhostXML Debug getTheData() method called.
GhostXML Debug * Trying 192.168.0.98...
* Connected to 192.168.0.98 (192.168.0.98) port 80 (#0)
> GET /rpc="version": "1.0" HTTP/1.1
> Host: 192.168.0.98
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Sunny WebBox
< Cache-Control: no-store, no-cache, max-age=0
< Date: Mon, 10 Jul 2017 04:38:52 GMT
< Pragma: no-cache
< Connection: keep-alive
< Keep-Alive: 300
< Content-Type: text/html
< Content-Length: 685
<
{ [685 bytes data]
* Connection #0 to host 192.168.0.98 left intact
* Found bundle for host 192.168.0.98: 0x7fcc23702100
* Re-using existing connection! (#0) with host 192.168.0.98
* Connected to 192.168.0.98 (192.168.0.98) port 80 (#0)
> GET /rpc="password":"passwrd" HTTP/1.1
> Host: 192.168.0.98
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Sunny WebBox
< Cache-Control: no-store, no-cache, max-age=0
< Date: Mon, 10 Jul 2017 04:38:52 GMT
< Pragma: no-cache
< Connection: keep-alive
< Keep-Alive: 300
< Content-Type: text/html
< Content-Length: 685
<
{ [685 bytes data]
* Connection #0 to host 192.168.0.98 left intact
* Found bundle for host 192.168.0.98: 0x7fcc23702100
* Re-using existing connection! (#0) with host 192.168.0.98
* Connected to 192.168.0.98 (192.168.0.98) port 80 (#0)
> GET /rpc="proc": "GetPlantOverview" HTTP/1.1
> Host: 192.168.0.98
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Sunny WebBox
< Cache-Control: no-store, no-cache, max-age=0
< Date: Mon, 10 Jul 2017 04:38:52 GMT
< Pragma: no-cache
< Connection: keep-alive
< Keep-Alive: 300
< Content-Type: text/html
< Content-Length: 685
<
{ [685 bytes data]
* Connection #0 to host 192.168.0.98 left intact
* Found bundle for host 192.168.0.98: 0x7fcc23702100
* Re-using existing connection! (#0) with host 192.168.0.98
* Connected to 192.168.0.98 (192.168.0.98) port 80 (#0)
> GET /rpc= "id": "1" HTTP/1.1
> Host: 192.168.0.98
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Sunny WebBox
< Cache-Control: no-store, no-cache, max-age=0
< Date: Mon, 10 Jul 2017 04:38:52 GMT
< Pragma: no-cache
< Connection: keep-alive
< Keep-Alive: 300
< Content-Type: text/html
< Content-Length: 685
<
{ [685 bytes data]
* Connection #0 to host 192.168.0.98 left intact
* Found bundle for host 192.168.0.98: 0x7fcc23702100
* Re-using existing connection! (#0) with host 192.168.0.98
* Connected to 192.168.0.98 (192.168.0.98) port 80 (#0)
> GET /rpc="format": "JSON" HTTP/1.1
> Host: 192.168.0.98
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: Sunny WebBox
< Cache-Control: no-store, no-cache, max-age=0
< Date: Mon, 10 Jul 2017 04:38:52 GMT
< Pragma: no-cache
< Connection: keep-alive
< Keep-Alive: 300
< Content-Type: text/html
< Content-Length: 685
<
{ [685 bytes data]
* Connection #0 to host 192.168.0.98 left intact
GhostXML Debug Source file type: JSON
GhostXML Debug parseTheJSON() method called.
GhostXML Error sma sunny webbox: No JSON object could be decoded
GhostXML Error Error cleaning dictionary keys: 'NoneType' object has no attribute 'iterkeys'
GhostXML Debug
GhostXML Debug sma sunny webbox:
GhostXML Debug Time since update: 0