The plugin is working fine for me, but I don't know anything about Python, and I want to use some datas from SMA in a bash script.
I would need it to calculate self consumption and other things.
I could use /json.htm?type=devices&rid=1 from the device created by the plugin, but it would be quicker to read directly from the SMA Inverter, and the refresh of the device is too slow (5s).
In the pyhton script it's look like a request is made to the Json of the SMA to get the values back.
For the bash I tried
Code: Select all
curl -k -i -H "Accept: application/json" "https://192.168.0.18/dyn/getValues.json?sid=6400_00260100"
or
curl -k -i "https://usr:[email protected]/dyn/getValues.json?sid=6400_00260100"
Code: Select all
HTTP/1.1 200 OK
Content-Type: application/json;
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Length: 11
Date: Thu, 03 Dec 2020 23:09:52 GMT
Server: lighttpd/1.4.48
{"err":404}