PHP Classes

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

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 79 All time: 10,082 This week: 158Up
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: 44433 in Nicaragua Nicaragua
Week rank: 312 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  
File Role Description
Accessible without login Plain text file index.php Example Example script
Plain text file Peco.class.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:79
This week:0
All time:10,082
This week:158Up