Skip to content

Access to the undocumented Duke Energy usage API

License

Notifications You must be signed in to change notification settings

asanab76/pydukeenergy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pydukeenergy

Python3 interface to the unofficial Duke Energy API.

NOTE This isn't using an official API therefore this library could stop working at any time, without warning.

from pydukeenergy.api import DukeEnergy

def main():
	# update_interval is optional default is 60 minutes
    duke = DukeEnergy("your_user_name", "your_password", update_interval=60)
    meters = duke.get_meters()
    for meter in meters:
    	print(meter.get_usage())

About

Access to the undocumented Duke Energy usage API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%