Tibber.py

Latest version: v0.4.0

Safety actively analyzes 626381 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.3.0

- A lot of improvements to the realtime data websocket connection! The bug where "Connection limit reached: 2" occurs should be improved (should occur less frequently. I'm still needing to monitor and work on this).
- `start_live_feed()` now checks if realtime consumption is enabled before connecting to the websocket.
- Added the `tibber.Account.update()` method: An alias for `fetch_all()`
- Much better logging for websocket information
- QueryExecutor now uses a permanent session instead of creating a whole new session for each request.

Enable logging:
py
import logging

logging.basicConfig()
logger = logging.getLogger("tibber")
logger.setLevel(logging.DEBUG)

import tibber

<your code here>

0.2.1

Added exit conditions
py
home.start_live_feed(exit_condition = lambda data: data.power > 1000)

Fixed bug where stopping a live feed, then starting it again resulted in duplicate callback function calls.
Other general improvements and fixes!

0.2.0

- Realtime information is now retrieved differently, using the `graphql-transport-ws` subprotocol (see issue https://github.com/BeatsuDev/tibber.py/issues/16) and using the third-party modules `gql` (and gql[websockets]) and `graphql-core`.

- **BREAKING:** A tiny breaking change to the home object too: `home.start_livefeed()` has now been renamed to `home.start_live_feed()`.

0.1.1

Updated demo token.

0.1.0

Changelog v0.1.0 :tada:
- **BREAKING:** Changed `tibber.Client` to `tibber.Account`
- Much more docs! Check it out https://tibberpy.readthedocs.io/en/latest/.
- More test coverage!
- Get historical data!

v.0.0.4
Initial live measurement release.

Edit: This version has a critical bug that does not allow it to work. See issue 8

0.0.3

- Added `QueryBuilder.create_query(*args)` method for creating specific queries.
- Created many more types.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.