willemstoker / aps-to-pvoutput Goto Github PK
View Code? Open in Web Editor NEWUpload data from AP Systems solar inverters (APS) automatically to PV Output
Upload data from AP Systems solar inverters (APS) automatically to PV Output
The script works fine, however, starting at midnight, the script probably pulls zero entries from EMA until first light and exits with an error. After first light and power production the script runs fine until midnight
Start time: Wed, 17 Mar 2021 06:10:02 GMT Stop time: Wed, 17 Mar 2021 06:10:04 GMT Current status: 1 (Interrupted) Standard output/error:
Traceback (most recent call last):
File "/-path-/apstopvoutput.py", line 70, in
timesstring = rootdict.get("data").get("time")
AttributeError: 'NoneType' object has no attribute 'get'
I think the wrong power numbers are being sent to PVoutput. There is a difference of a factor of 10 between the EMA app and PVOutput. The power numbers must be divided by 10 before sending tot PVOutput (in my opinion).
Goedemiddag,
Ik heb alle stappen doorlopen zoals beschreven in de Integrations beschrijving "APSystem Solar Energy Integration" vanaf stap 3, ECU without web interface. Ik rijg echter geen data binnen van APS naar PVOutput.
API Access | Disabled Enabled HELP ### Enabled
The API must be enabled to successfully process requests.
API Key | New Key ### API PVOutput
Your API key is used to update your data automatically, always keep your API key secret.
Read Only Key | ### API APS
Add your own key with read only access to your data, ideal for 3rd party apps
API Referrer | ### Niet ingevuld
The URL of your webpage. Only applicable if you are embedding portlets.
Moet ik de URL ook invullen en zo ja welke?
Hello,
I try to run app-to-pvoutput but I got the following error:
Traceback (most recent call last):
File "/volume1/web/ema2pvoutput/apstopvoutput.py", line 70, in
timesstring = rootdict.get("data").get("time")
AttributeError: 'NoneType' object has no attribute 'get'
I hope you can help me.
Guido
So I am back, sorry for that.
I have 2 pi's over 2 locations. On the first pi the script is working beautifully. On the 2nd Pi, its not.
When adding the script, and changing ECU ID, PVoutput system number and API-key. I tried to run the script. But it gives an error, and I cannot find out why. As mentioned, the exact same script, works on the other system perfect.
pi@raspberrypi:~/domoticz/scripts/python $ ./apstopvoutput.py Traceback (most recent call last): File "./apstopvoutput.py", line 69, in <module> rootdict = getDataFromAPS() File "./apstopvoutput.py", line 47, in getDataFromAPS response = requests.post(APSYSTEMS_URL, headers=headers, data=data) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 119, in post return request('post', url, data=data, json=json, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 61, in request return session.request(method=method, url=url, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 530, in request resp = self.send(prep, **send_kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 643, in send r = adapter.send(request, **kwargs) File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.apsystemsema.com', port=8073): Max retries exceeded with url: /apsema/v1/ecu/getPowerInfo (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x764d8d10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
Hi,
I just ran the script and I have the following error. Anyone know why?
Traceback (most recent call last): File "./apstopvoutput.py", line 67, in <module> writeLastUpdate('00:00') #create file for the first time File "./apstopvoutput.py", line 29, in writeLastUpdate f = open(LAST_UPDATE_FILE,"w+") IOError: [Errno 2] No such file or directory: '<path/file>'
Since 26th of march the script retrieve no data from APS API
I have this error when i run the script manually
Traceback (most recent call last):
File "apstopvoutput.py", line 69, in
rootdict = getDataFromAPS()
File "apstopvoutput.py", line 48, in getDataFromAPS
return response.json();
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.