04.05.2021, 13:44
Hi,
I have a script that gets data from my solar panels from the SolarEdge monitoring site.
This script has worked without problems for the past year, but lately two out of three attempts fail.
For testing I can run the same script on another server in the same network without any problems.
This is the relevant part of the script:
At first I thought that I exceeded the maximum number of reads per day but that is not the case. The script runs every 15 minutes (=96 times a day) and Solaredge allows 300 reads.
This is the Alert message:
So this is not a SolarEdge server error message.
This is on a LM4 firmware 20160714.
What could be the cause of this?
I have a script that gets data from my solar panels from the SolarEdge monitoring site.
This script has worked without problems for the past year, but lately two out of three attempts fail.
For testing I can run the same script on another server in the same network without any problems.
This is the relevant part of the script:
Code:
require('socket')
local https = require("ssl.https")
socket.http.TIMEOUT = 20
local SolarEdge = https.request('https://monitoringapi.solaredge.com/site/1234567/overview?api_key=mykey')
if not SolarEdge then
alert('SolarEdge data cannot be retrieved.. ' .. tostring(SolarEdge))
return
else
log(SolarEdge)
end
This is the Alert message:
Code:
SolarEdge data cannot be retrieved nil
This is on a LM4 firmware 20160714.
What could be the cause of this?