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 = Tibber.Tibber() # access_token=YOUR_TOKEN
tibber.sync_update_info()
print(tibber.name)
home = tibber.get_homes()[0]
home.sync_update_info()
print(home.address1)
home.sync_update_price_info()
print(home.current_price_info)
tibber.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 = Tibber.Tibber() # access_token=YOUR_TOKEN
tibber.sync_update_info()
print(tibber.name)
home = tibber.get_homes()[0]
home.sync_update_info()
print(home.address1)
home.sync_update_price_info()
print(home.current_price_info)
tibber.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.2.1.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file pyTibber-0.2.1.tar.gz
.
File metadata
- Download URL: pyTibber-0.2.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a411d9c370b8f59b89d4a18d412a3c99f2ed2b984326c3749c8dbc9b81d1b2 |
|
MD5 | 0b09e46909afcb22fa13a69ce0b46176 |
|
BLAKE2b-256 | 147e4c568975d1fba674a887362a16461857f52381f2b9183d3bf41091b84ca6 |
File details
Details for the file pyTibber-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59f980334b1e920bb71a9210d28f0543a84d350e92e3c5bce3f2058e7d22099d |
|
MD5 | cdeebcd32c5c5b458f90e895974ed339 |
|
BLAKE2b-256 | cdc7f08bd06266583528baf43ac31f237a41a42ebc47284d167b27f0ae619884 |