pyberdrola allows to get info and invoices about the electric consumption.
This info is obtained from the www.iberdrola.es using the same APIs that iOS app is using, but in an easy way.
pyberdrola is available at pypi, so you can install it using
pip3 (it requires Python3).
pip3 install pyberdrola
pyberdrola requires two variables (
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
Read the LICENSE file.