Skip to content

FreeWillyB/pydukeenergy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 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(
        email = "your_user_name", 
        password = "your_password", 
        electric_meters=[12341234,56785678], 
        gas_meters = [11223344,55667788],
        update_interval=60,
        verify = True
    )
    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

 
 
 

Contributors

Languages

  • Python 100.0%