It is Solar Edge, and i'm totally unknown in this area.
How can I get the information about it and where should I search?
Moderators: marcelr, TerrorSource, Toonz, TheHogNL
Daily Limitation
Use of the monitoring server API is subject to a query limit of 300 requests for a specific account token and a parallel query limit
of 300 requests for each specific site ID from the same source IP.
import RPi.GPIO as GPIO
import requests
import time
import urllib
GPIO.setmode(GPIO.BCM)
GPIO.setup(18, GPIO.OUT)
# how long in seconds should the pulse set to HIGH to be detected by the connect equipment
ledPulseWidth = 0.01
# after how many seconds new realtime Watts should be collected from the solar installation
collectWattsInterval = 5
# Start watts, can not be zero due to division by zero so initial is a bit higher
watts = 0.01
# pulses per WattHour which the script should simulate (pwh = 2 is the same as 2000 imp/kWh)
pwh = 2
# value is used to calculate the last generated pulse
last = time.time()
def getWatts():
r = requests.get('a url to get json data showing realtime generated solar data')
json = r.json()
value = json['results'][0]['series'][0]['values'][0][1]
try:
newwatts = float(value)
except ValueError:
newwatts = watts
print "New watts: ",newwatts
return newwatts
watts = getWatts()
lastWattsPull=time.time()
nextPulseTime = 3600/watts/pwh
while True:
if (time.time() > (last+nextPulseTime)):
last = time.time()
nextPulseTime = float(3600/watts/pwh)
if (watts > 10):
GPIO.output(18,GPIO.HIGH)
print "pulse"
time.sleep(ledPulseWidth)
GPIO.output(18,GPIO.LOW)
if (time.time() > (lastWattsPull+collectWattsInterval)):
watts = getWatts()
lastWattsPull=time.time()
time.sleep(0.01)
GPIO.cleanup()
pulse
New watts: 346.646002867
pulse
New watts: 346.646002867
pulse
New watts: 346.646002867
pulse
New watts: 344.85
pulse
New watts: 336.025598423
pulse
New watts: 336.025598423
pulse
New watts: 324.025598423
pulse
New watts: 316.45080388
pulse
New watts: 316.45080388
pulse
New watts: 316.45080388
pulse
New watts: 316.45080388
pulse
New watts: 306.674213404
New watts: 306.674213404
pulse
SDeath wrote:Hi Marek,
I've seen the same document indeed.
There are some limitations though:Daily Limitation
Use of the monitoring server API is subject to a query limit of 300 requests for a specific account token and a parallel query limit
of 300 requests for each specific site ID from the same source IP.
Which means it isn't going to be realtime data, like I can do on my FP4All logger, which I can fetch every second for realtime data.
It will be every 5 minutes or something like that.
Will that be of any use?
Users browsing this forum: No registered users and 1 guest