This library aims to help make integrations with the Iberdrola API.
- Install via composer
composer require zoilomora/iberdrola
<?php
use ZoiloMora\Iberdrola\Iberdrola;
$limit = 3.4; // Hired potency (kW)
$iberdrola = new Iberdrola('[email protected]', '123456');
$reading = $iberdrola->getReading();
$floatValue = floatval($reading->valMagnitud);
if (($floatValue/1000) >= $limit) {
// Send notification
}
You can see more in the examples folder.
Licensed under the MIT license
Read LICENSE for more information