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.

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.websession.close()
```

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.3.2

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

Uploaded Source

Built Distribution

pyTibber-0.3.2-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyTibber-0.3.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyTibber-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4cf821f55dc1709d13dd4a664f0595f398e7d4f80910f227f5e572585b9766ad
MD5 dc956481b8baa9be31e332ac37d7252b
BLAKE2b-256 44606aa591cd7f332a1ccada6b3f47591b7f71d3c9bcd5af55166e922a1a8922

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyTibber-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd1901d4ad2c70eedb670c855a637819bf5e5a3af6e7042d0ff455307cfb6e3
MD5 cc17a2f1854261c8219ed9cbfa154fab
BLAKE2b-256 58474fa885a55b9fe00260767ddf22147828b913692bd762939589fff61018c0

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