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

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

Uploaded Source

Built Distribution

pyTibber-0.3.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyTibber-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2e5b05e68e33130dd2f69e11e023a8f983951a9395e1274239e153893e8e51c1
MD5 9cfa650cf3d94d96e001027acc61e599
BLAKE2b-256 1559d1edf0c3fc8113c08aa2c952efdf6e4845dbfec9ef2d0dcce81aa37322ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyTibber-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b87d9672a388b70fc6a73e35ff0b5b637099f70546500c07ff4adad326c8f83
MD5 697b6495e9a04998cef0b1d1b71ec3eb
BLAKE2b-256 6c65e4961fa9fbd29cb14eb187cc6fa7e799046eb4070789ab1dfe94f53116c0

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