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.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyTibber-0.9.4.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.30.0 CPython/3.5.6

File hashes

Hashes for pyTibber-0.9.4.tar.gz
Algorithm Hash digest
SHA256 be4f514a72ef77a7c8f616f3ce7d434cbbd7786fbc5bfd19d71937c00a388bd4
MD5 d2a6aeffebd36843947dc50b3287a441
BLAKE2b-256 cfcd50a1e698654fa91fbb4b5b177b261e52b019418d05107c851879f1f9ee08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyTibber-0.9.4-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.30.0 CPython/3.5.6

File hashes

Hashes for pyTibber-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ca3f4467ec1d40b9464252919f7543b1ec726fdeaeed09401242c903c3e43d
MD5 fae5d4f2d50475ca877439851d3f1f0e
BLAKE2b-256 ae6ae8aea018e62a0c290d4b325c51d939d0300e6f23f103f82dea5b76e8feda

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