The Enelogic Reader is a simple tool for interacting with the Enelogic API. It uses the requests library to retrieve data and stores it in daily CSV files for easy access. For analysis, the data is consolidated into a single CSV file per year per measurement.
- Fetch data from the Enelogic API.
- Store data in daily CSV files.
- Consolidate data into yearly CSV files for analysis.
- Avoid redundant API calls by skipping already downloaded data.
- Python 3.0 or higher.
- An Enelogic API key, app ID, and app secret.
-
Install Python
Ensure you have Python 3.0 or higher installed on your system. -
Obtain Enelogic API Credentials
- Visit the Enelogic Developer Center.
- Add your app (the URL can be any value, e.g.,
enelogic.com). - Obtain your
appidandappsecret. - Go to My Account > Applicaties to retrieve your
apikey.
-
Configure the Script
Openexample.pyin your preferred text editor and fill in the following variables:appidappsecretapikeyusername
-
Run the Script
Execute the script using the following command:python example.py -
Access the Data
The retrieved data will be stored in theoutputfolder located in the same directory as the script.
- The script skips downloading data for days that have already been processed, ensuring efficient API usage.
- To re-download all data, delete the
outputfolder before running the script again.
This project is licensed under the GNU General Public License v3.0.