Skip to content

alvaro-octal/iberdrola

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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('test@test.com', '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

About

Integration with Iberdrola API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%