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.3.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file pyTibber-0.2.3.tar.gz
.
File metadata
- Download URL: pyTibber-0.2.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40a91ef12795a98c151339c84e7d02661af0ecbd008e388fa9740e5ec800c111 |
|
MD5 | fb4f5f37c25553d48572240cf0e09874 |
|
BLAKE2b-256 | 5a3caae9f6ce0c6ff651bb893145df9a332800912b89e5d88e04e988968aa15d |
File details
Details for the file pyTibber-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: pyTibber-0.2.3-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c04a72002df1c3647ff8371e80f9d1b50d32df87e82983fe1c5f254003279b90 |
|
MD5 | b22df6f9e1d9625eee8a0ef2916f77f4 |
|
BLAKE2b-256 | 776ece7c55b4a1f3ede20ae6551c0bfe079ca8f81c43c99aee88781e3d98b280 |