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.
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.
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.7.2.tar.gz
(8.6 kB
view details)
Built Distribution
File details
Details for the file pyTibber-0.7.2.tar.gz
.
File metadata
- Download URL: pyTibber-0.7.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3ae4b496a07373270fa5e40640aabd76c60aa180f4c638d502bc698a95c380 |
|
MD5 | 2f792494f87b907f95fec220fe4d54f6 |
|
BLAKE2b-256 | f90ce4b0f39f1f2518032354c9ad7c66f771af5fac265895a83ffce23e117f65 |
File details
Details for the file pyTibber-0.7.2-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.7.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7aa9383443d62481af34b2619eaa9226320466ea1bacfe286f260b0ab543e5e2 |
|
MD5 | a2435efa6db60e59f7eed9a2addccfc0 |
|
BLAKE2b-256 | 9092090c80741f3a3cf62ddd179646c3dbcee3bfc60f6b3db4f3ca8a2e0560f7 |