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)
<a href="https://github.com/ambv/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
<a href="https://github.com/ambv/black/blob/master/LICENSE"><img alt="License: MIT" src="https://black.readthedocs.io/en/stable/_static/license.svg"></a>


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/tree/dev/homeassistant/components/tibber](https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/tibber)


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

Uploaded Source

Built Distribution

pyTibber-0.10.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyTibber-0.10.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for pyTibber-0.10.0.tar.gz
Algorithm Hash digest
SHA256 064d0b76b01282403f0a58f2de9d00dd32933f5ecadceeab67e12fec1b4d7a87
MD5 510b7b53169e482cd030c3e2401e4328
BLAKE2b-256 ec1f856c026bc4bbebf4f4c7910725629fdf0ccb895a75ee14328da8e6f05ed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyTibber-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for pyTibber-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 852296cf8c9cabf1c886f1f61586659faeb160afcb1fe2e45d108b2029adbdcc
MD5 d39e5e077638157dffe706764a560ebb
BLAKE2b-256 83fb6b0553a9fe3ff7a62ff1b1116404b6246e4a72172a58c6b8300bad23635a

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