Giter Site home page Giter Site logo

aps-to-pvoutput's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aps-to-pvoutput's Issues

Error between midnight and first unit of power production

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'

Wrong power in PVOutput

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).

Geen data overdracht naar PVOutput

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.

De volgende gegevens zijn ingevuld in PVOutput
API Settings

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?

Error

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

Script error

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',))

Error

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>'

No data retrieved

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.