Myfirstone
Member
hello,check_green_energy for SolarEdge solar systems:
- Login to your account on SolarEdge
- Click Admin -> Site Access -> API Access and generate API or copy that if you have one already
- Edit TWCManager.py and make the following changes...
lines to changed in check_green_energy() function...
search for greenEnergyData = run_process(... and replace with:
greenEnergyData = run_process('curl -s -m 60 "https://monitoringapi.solaredge.com/site/<YOUR_SITE_ID>/overview?api_key=<YOUR_API_KEY>')
search for m = re.search(b'... and replace with:
m = re.search(b'.*\"power\"\:[0-9\,\.]*)\}.*', greenEnergyData, re.MULTILINE)
is this api url still correct?