Skip to content

A simple utility that you can use to login to your KCPL account and retrieve you meter readings.

Notifications You must be signed in to change notification settings

patrickjmcd/kcpl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meter Data Utility for Kansas City Power and Light

A simple utility that you can use to login to your KCPL account and retrieve you meter readings.

Install

pip install git+git://github.com/lawrencefoley/kcpl.git

Usage

# Import the package
from kcpl.kcpl import KCPL

# Login
kcpl = KCPL("username", "password")
kcpl.login()

# Get a list of daily readings
# Note, there is more data available such as 'cost' and 'avgTemp'
data = kcpl.getUsage()
logging.info("Last usage reading: " + str(data[-1]))
logging.info("Last usage reading: " + str(data[-1]["usage"]))

# End your session by logging out
kcpl.logout()

About

A simple utility that you can use to login to your KCPL account and retrieve you meter readings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%