Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 776 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 776 Bytes

PyBerdrola

PyBerdrola allows to get info and invoices about the electric consumption.

This info is obtained from the iberdrola.es using the same APIs that iOS app is using.

Installation

pip install pyberdrola

Using pyberdrola

pyberdrola requires two variables (IBUSER and IBPASS) to be able to log in.

 # the same that you're using to login in https://www.iberdrola.es/
export IBUSER='your_username'
export IBPASS='your_pass'

After that, you can use the CLI:

# Show a list of all your invoices (date, consumption and price)
pyberdrola all

# Show info about your last invoice
pyberdrola last

# Show the help menu
pyberdrola --help

License

Read the LICENSE file.