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)
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e5b05e68e33130dd2f69e11e023a8f983951a9395e1274239e153893e8e51c1 |
|
MD5 | 9cfa650cf3d94d96e001027acc61e599 |
|
BLAKE2b-256 | 1559d1edf0c3fc8113c08aa2c952efdf6e4845dbfec9ef2d0dcce81aa37322ac |
File details
Details for the file pyTibber-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.3.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b87d9672a388b70fc6a73e35ff0b5b637099f70546500c07ff4adad326c8f83 |
|
MD5 | 697b6495e9a04998cef0b1d1b71ec3eb |
|
BLAKE2b-256 | 6c65e4961fa9fbd29cb14eb187cc6fa7e799046eb4070789ab1dfe94f53116c0 |