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.
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/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.
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/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.9.5.tar.gz
(7.0 kB
view details)
Built Distribution
File details
Details for the file pyTibber-0.9.5.tar.gz
.
File metadata
- Download URL: pyTibber-0.9.5.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c27bb438166b00a5b9dced8e5f27bd5501e54c22f95dc55d3e02358345d0307 |
|
MD5 | da05e97fc250a43788ab5742205b71e8 |
|
BLAKE2b-256 | ae4b42489d487474b110c44b85b7db4086304146b800ce514398a65b66461a8f |
File details
Details for the file pyTibber-0.9.5-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.9.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c3819cf2c976186e6ff254ae46e15bcb3b4b5005b70bcfcf2c63298a8a74b67 |
|
MD5 | 9791a41ca7a66a21c0a8c56b4a5e8d3b |
|
BLAKE2b-256 | fb4eac71a90b1b5a3224ae832a6f76d13b9ac5a0f610d07a9b25e83b920d63ef |