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.2.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file pyTibber-0.9.2.tar.gz
.
File metadata
- Download URL: pyTibber-0.9.2.tar.gz
- Upload date:
- Size: 6.8 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.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc1fd3a5505c4491deb6fa2c2c5d789eed2acbbba537072197f4758ebd8c5aa |
|
MD5 | fc50b8ca1f6aa5a0000e8a3f97f30937 |
|
BLAKE2b-256 | a67bb330f3f02861f46c0ee5b1f3eb9fe454c5fc911f4dfa6179aca3cde2c3ff |
File details
Details for the file pyTibber-0.9.2-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.9.2-py3-none-any.whl
- Upload date:
- Size: 5.3 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.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cca290b6682679ab0fe0b6755e792111469816f7f48b0cd7df67735d1951eda |
|
MD5 | b5c6f6c0614f5508e1c69f1c1daef257 |
|
BLAKE2b-256 | ce1e1382c39a851f1a5102340bb010357c45b66354d96f9827715f8160a6a1fa |