A PHP package (based on https://github.com/trocotronic/edistribucion) for use in PHP projects to access data from e-distribucion private area.
Developed and distributed under GPL-3.0 License and exclusively for academic purposes
composer require edistribucion\edistribucion
cp .env.dist .env
and edit with your detailsdocker compose up -d
for running in de-attached modedocker exec edis composer install
for enter in bash mode inside the containerphp test/index.php
docker exec -it edis sh
for enter in bash mode inside the container use Edistribucion\EdisClient;
$edis = new EdisClient(<YOUR_USERNAME>,<YOUR_PASSWORD>);
$edis->login();
After succeed login, you should be able to execute predefined actions
$edis->get_cups();
$edis->get_cups_info($homeCups);
$edis->get_meter($homeCups);
$edis->get_cups_detail($homeCups);
$edis->get_cups_status($homeCups);
$edis->reconnect_ICP($homeCups);
$edis->get_list_cups($homeCups);
$edis->get_list_cycles($homeCups);
$edis->get_meas($homeCups, "24/01/2022 - 20/02/2022", "*****");
$edis->get_measure($homeCups);
$edis->get_maximeter($homeCups);
There're many things to do... maybe never will be get all of them. For have a public list:
This project is part of the main bachelor's degree final project for TI Engineering for the Universitat Overta de Catalunya UOC. Therefore, this project is exclusively for academic purposes.
Thanks to @trocotronic, @duhow, @polhenarejos and rest for their contribution and for open me the way
Please note: this package is released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. We disclaim any and all warranties, either express or implied, including but not limited to any warranty of non-infringement, merchantability, and/ or fitness for a particular purpose. We do not warrant that the technology will meet your requirements, that the operation thereof will be uninterrupted or error-free, or that any errors will be corrected.
Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment, and we are not responsible for any damage or data loss incurred with their use.
You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.