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

Uploaded Source

Built Distribution

pyTibber-0.8.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyTibber-0.8.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for pyTibber-0.8.0.tar.gz
Algorithm Hash digest
SHA256 cb07369350ff7b8aee3865e49bbb229210d47fd813c62260c89d8ccd25b1fe1b
MD5 1fad1512d97a4b6c07bfc8c10226b26b
BLAKE2b-256 d00548540061aa4243d31fcc7922d5c10d3200a2cb3d69bc7a079bdf9ca2cad7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyTibber-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for pyTibber-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4d039b02a005d7c2fe698d193c3f570f8fb8f63de9501e7f9b67f60cf0310a
MD5 48b8e679ddcba26ddd54fcf51519005c
BLAKE2b-256 ba8e4271319b8260fba1acd6b530529fb9e62c3450c0be8911f140ea2d9a6568

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