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.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)
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.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.4.1.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file pyTibber-0.4.1.tar.gz
.
File metadata
- Download URL: pyTibber-0.4.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a0e4b066a53a307b375cc3e3c3e5821f91088c065cae46b297b89cda70dd45 |
|
MD5 | 5e8810352376e94997ecf23e2879612b |
|
BLAKE2b-256 | c9d9af9f60b86c3ce64ae947f3f5c6297e5a964e7a438b54c1ea2810880ee384 |
File details
Details for the file pyTibber-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.4.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e6c4ac2b9a66ab153e9842fb82c64011b2b28d7d77d2bdab4bdd469a23051da |
|
MD5 | ec07a13576b7afe4502ae5391df8caee |
|
BLAKE2b-256 | 33d509ee3ee38538c58edb09ef6c034f1441b3871fc54bd7bb9788caed1fabea |