I've just installed a MEW-01 energy meter to examine the daily, weekly and monthly power consumption. My goal is to fetch the current and historical data from the SUPLA CLOUD provided REST API with a Python program. I managed to fetch the current data but I'm missing some knowledge about how to fetch the historical data and I'm looking for sources to get this knowledge.
I found a discussion in the Polish spoken SUPLA forum . Since I do not understand Polish I tried to use google translator. This is tiring .
The REST API is documented here SUPLA REST API at swaggerhub . I fetched the current data successfully from /api/channels/1 and subsequently I tried to fetch historical data from /api/channels/1/measurement-logs - but without luck,
I guess that only active energy data for each phase are available as historical data. This is sufficient for me.
My questions are:
- Does anybody know where to find information how to access historical data. Examples in any programming language are welcome.
- Does anybody know where the active energy samples are stored - within the MEW-01 or within the SUPLA CLOUD?
- What is the sample rate or the resolution in time for the data?
Thank you in advance