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

This version

0.7.3

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

Uploaded Source

Built Distribution

pyTibber-0.7.3-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyTibber-0.7.3.tar.gz
Algorithm Hash digest
SHA256 1bf326f41f66bfb84f07f2f0256af73f650df63d3493a2afaa73682578a3f0fd
MD5 fe0f1d2843c62d0a24f824966a67cbd9
BLAKE2b-256 43e2e58178db27a09f0ed81ed9a77f8c56a77989ec68355dc1068f654a40479f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyTibber-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42f7041671d75c431df4cdf1eb5c8724aae8ac73e880d38c5cdca8f6a35f8338
MD5 0fa6d94dad1bf09af4cc56ba6f4779e6
BLAKE2b-256 cd3ce77b2d61c76498728557a143a36d65b40adaf70d2d3114d808280a7d90a0

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