Open otello86 opened 3 years ago
I am trying to fetch power data via api http://api.apsystemsema.com:8073/apsema/v1/ecu/getPowerInfo
but getting error with 404 status code. It seems like for all user this API stops sending the response at same time. Is there any specific reason for this?
Looks like the EMA app from AP Systems itself is also not working anymore (the app uses the same url, that's how I found this url). I assume they will fix this eventually?
Looks like the EMA app from AP Systems itself is also not working anymore (the app uses the same url, that's how I found this url). I assume they will fix this eventually?
It seems a new version of the app has been released today.
The app is working again! Is the url working too? Or did they change it?
The previous working URL is still returning a 404 Not Found error.
http://api.apsystemsema.com:8073/apsema/v1/ecu/getPowerInfo
Do you know if the new app is using a new URL?
Looks like it's using Amazon cloud now with SSL. It's a bit harder to use that unfortunately.
Maybe the old server is still up as well and reachable on it's old IP address?
The old API continue to response 404 error. Is it possible to implement the new url in the your script please ?
Unfortunately I think it's not as simple as changing the URL, because it's now using SSL. I'm currently busy with other things and I'm not using pvoutput myself anymore.. Maybe some other volunteer can investigate this.
Is there another solution to read APS datas and import them into pvoutput or home assistant like Domoticz
@willemstoker you mention APS is now using AWS and SSL; would you be able to share that URL and what you found out about it? Understand you have other projects, would love to see where others can bring this. Myself having limited python experience would also like to help, though realistically have to know my limitations.
@willemstoker you mention APS is now using AWS and SSL; would you be able to share that URL and what you found out about it? Understand you have other projects, would love to see where others can bring this. Myself having limited python experience would also like to help, though realistically have to know my limitations.
You can capute the URL by using an app like this one on your android phone while using the official ECU app: https://play.google.com/store/apps/details?id=app.greyshirts.sslcapture&hl=nl&gl=US
Here you will find the new API documentation I not a developper so if someone would like to investigate on this implementation
When the APS API stopped to work and this script did not work anymore, i wrote my own python script to collect the power-data (incl tempertures and voltages) from the local webpage of my ECU-R and pushes it to pvoutput. https://github.com/daanvdl/-ecu2pvoutput I am not sure it will work on a APS ECU-C.
When the APS API stopped to work and this script did not work anymore, i wrote my own python script to collect the power-data (incl tempertures and voltages) from the local webpage of my ECU-R and pushes it to pvoutput. https://github.com/daanvdl/-ecu2pvoutput I am not sure it will work on a APS ECU-C.
In your script what do you mean with APIID and SYSTEMID
I got a ECU-R and your script will help me !
Here you will find the new API documentation I not a developper so if someone would like to investigate on this implementation
I am able to use http://installerapi.apsystemsema.com:8074/apsema/v1/apiecu/getEcuPowerDetail api from the documentation which return data for all previous days except current days and is returning data. But when i try to use http://installerapi.apsystemsema.com:8074/apsema/v1/apiecu/getCurrentInfoByEcuList API for current day it is returning 204 status with No content. Is there any way to fetch data for current date?
I try to use the api but an "apiuserid" is needed. The support can only give userid to professionnal (installer) and I'm just au poor end user ! Have you got a user id ?
I try to use the api but an "apiuserid" is needed. The support can only give userid to professionnal (installer) and I'm just au poor end user ! Have you got a user id ?
yes, i do have userId and using it to fetch access token
Any update on this, how we can retrive power data for current day for any systemId?
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