Skip to main content

A python3 library to communicate with Tibber

Project description

# pyTibber [![Build Status](https://travis-ci.org/Danielhiversen/pyTibber.svg?branch=master)](https://travis-ci.org/Danielhiversen/pyTibber) [![Coverage Status](https://coveralls.io/repos/github/Danielhiversen/pyTibber/badge.svg?branch=master)](https://coveralls.io/github/Danielhiversen/pyTibber?branch=master) [![PyPI version](https://badge.fury.io/py/pyTibber.svg)](https://badge.fury.io/py/pyTibber)

Python3 library for Tibber.

Read electricity price and consumption.

If you have a Tibber Pulse you can see your consumption in real time.

[Buy me a coffee :)](http://paypal.me/dahoiv)


Go to [developer.tibber.com/](https://developer.tibber.com/) to get your API token.

## Install
```
pip3 install pyTibber
```

## Example:

```python
import tibber
tibber_connection = tibber.Tibber() # access_token=YOUR_TOKEN
tibber_connection.sync_update_info()
print(tibber_connection.name)

home = tibber_connection.get_homes()[0]
home.sync_update_info()
print(home.address1)

home.sync_update_price_info()

print(home.current_price_info)

tibber_connection.sync_close_connection()
```

The library is used as part of Home Assitant: [https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/sensor/tibber.py](https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/sensor/tibber.py)


Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyTibber-0.9.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

pyTibber-0.9.3-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pyTibber-0.9.3.tar.gz.

File metadata

  • Download URL: pyTibber-0.9.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.6

File hashes

Hashes for pyTibber-0.9.3.tar.gz
Algorithm Hash digest
SHA256 d004472c6bf4b763aa70c8bb79a84e19a138dd75a7644c66ff4d1047dc18532d
MD5 3dfae05b14d3c72678098270d20bbf3b
BLAKE2b-256 239ce2cfa2c58f771980d5d7b6544560fb8a4bbe0eb14f9e9257657dfde33c58

See more details on using hashes here.

File details

Details for the file pyTibber-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: pyTibber-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.6

File hashes

Hashes for pyTibber-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 973c571ac39714bce4df5d9defd4f7b1e50e65575f21b44ab772f86298e6e806
MD5 98c3eec3ed04069b48817af6ef3a1a68
BLAKE2b-256 e7236eabe63b7a06518808f2bd51d9e2531ac6cf8df86a72f22337c588530d46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page