PHP Classes

PECO Energy Usage Data API: Get the energy usage from the PECO API

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 80 All time: 10,105 This week: 206Up
Version License PHP version Categories
peco 1.0BSD License5.0PHP 5, Web services, Physics
Description 

Author

This class can get the energy usage from the PECO API.

It can send HTTP requests to the PECO API Web server get an authorization cookie.

Then the class can send another request to get the energy usage of a given account in terms of current used capacity, power in KW, pending capacity and other usage data.

Picture of Carlos Ernesto López
Name: Carlos Ernesto López <contact>
Classes: 1 package by
Country: Nicaragua Nicaragua
Age: ???
All time rank: 44473 in Nicaragua Nicaragua
Week rank: 187 Up1 in Nicaragua Nicaragua Up

Example

<?php
   
include 'Peco.class.php';
   
$peco = new Peco($_GET['id'], $_GET['zip']);
    print
$peco->run();


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file index.php Example Example script
Plain text file Peco.class.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:80
This week:0
All time:10,105
This week:206Up