Skip to content

zoilomora/iberdrola

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iberdrola

This library aims to help make integrations with the Iberdrola API.

Installation

  1. Install via composer
composer require zoilomora/iberdrola

Example

<?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.

License

Licensed under the MIT license

Read LICENSE for more information