Releases: BeatsuDev/tibber.py
Releases · BeatsuDev/tibber.py
v0.5.0
What's Changed
- Support for older Python versions by @BeatsuDev in #41
- fix: method name by @tpd-opitz in #49
- Ability to search for price info in historical data by @BeatsuDev in #56
New Contributors
- @tpd-opitz made their first contribution in #49
Full Changelog: v0.4.0...v0.5.0
v0.4.0
Changelog v0.4.0 🎉
- Asynchronous callback functions. Functions should now be defined with the async def syntax!
Dev changes:
- Code now follows black and flake8 format and uses isort to sort imports.
- Pytests now use a session-scoped fixture "account" to avoid spamming the Tibber API by creating this fixture for each test individually. (This improved test speeds significantly too!)
How to define callbacks now:
import tibber
account = tibber.Account(<your token>)
home = account.homes[0]
@home.event("live_measurement")
async def callback(data):
print(data.power)
home.start_live_feed()
v0.3.0
Changelog v0.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 forfetch_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:
import logging
logging.basicConfig()
logger = logging.getLogger("tibber")
logger.setLevel(logging.DEBUG)
import tibber
<your code here>
v0.2.1
v0.2.0
Changelog v0.2.0 🎉
-
Realtime information is now retrieved differently, using the
graphql-transport-ws
subprotocol (see issue #16) and using the third-party modulesgql
(and gql[websockets]) andgraphql-core
. -
BREAKING: A tiny breaking change to the home object too:
home.start_livefeed()
has now been renamed tohome.start_live_feed()
.
v0.1.1
v0.1.0
Changelog v0.1.0 🎉
- BREAKING: Changed
tibber.Client
totibber.Account
- Much more docs! Check it out https://tibberpy.readthedocs.io/en/latest/.
- More test coverage!
- Get historical data!
v0.0.4
v0.0.3-pre
Finished all queries that are not live subscriptions or mutations.
Changelog v0.0.3
- Added
QueryBuilder.create_query(*args)
method for creating specific queries. - Created many more types.
v0.0.2-pre
This is still an early pre-release and this project is still a work-in-progress.
Changelog v0.0.2-pre
- A clearer project goal has been specified (The goal is to develop a wrapper that is as close to the Tibber API format as possible).
- More types have been added
- The QueryBuilder has been refactored