Get-TibberConsumption
andGet-TibberProduction
now knows how to return consumption/production data based on dates provided using the-From
/-To
parameters.
- Add support for Windows PowerShell (Note: PowerShell Core is recommended).
- ♻️ INTERNAL: Change format of cache keys.
⚠️ BREAKING CHANGE: AdaptConnect-TibberWebSocket
to new requirements and best practices:- Repurposed the
-URI
parameter to reference the API instead of the (now dynamically obtained) WebSocket URI. - Removed the
-RetryWaitTimeInSeconds
parameter, the retry wait time is now calculated dynamically. - Introduced a new
-HomeId
parameter.
- Repurposed the
⚠️ BREAKING CHANGE: Removed the-HomeId
parameter fromRegister-TibberLiveMeasurementSubscription
, this information is now instead taken from the connection object.Read-TibberWebSocket
now has separate (optional) callbacks available forcomplete
anderror
responses.- In addition to the
TIBBER_USER_AGENT
environment variable, added a-UserAgent
parameter to all functions for setting the user agent.
- Set user agent header in
Invoke-TibberQuery
andConnect-TibberWebSocket
. Append your own user agent with theTIBBER_USER_AGENT
environment variable, see README.md.
- Override default using the
TIBBER_API_URI
environment variable in allGet-*
functions, seeInvoke-TibberQuery
. - Add
websocketSubscriptionUrl
to the returned values fromGet-TibberUser
(see the Tibber API changelog). - Change default URI to
wss://websocket-api.tibber.com/v1-beta/gql/subscriptions
inConnect-TibberWebSocket
.
- ♻️ INTERNAL: Make all cache keys lower case.
⚠️ BREAKING CHANGE: AllGet-*
functions now cache the response from the GraphQL endpoint by default, see here for more details.
Get-TibberPriceInfo
now knows how to filter out past prices with the-ExcludePast
parameter.
- 🆕 NEW: Support for sending push notifications (#13) with
Send-PushNotification
.
- Added output formatting using EZOut - get the unformatted output by piping to
Select-Object *
, e.g.Get-TibberUser | Select-Object *
.
- Fixed release notes link in PowerShell Gallery.
Read-TibberWebSocket
can now pass additional arguments to the callback script block/function, positioned after the response.
-
🆕 NEW: Renamed functions to better reflect purpose:
Note: Function aliases provided for backwards compatibility.
- ♻️ INTERNAL: Improved error handling.
⚠️ BREAKING CHANGE: Renamed the parameter-TimeoutInSeconds
to-DurationInSeconds
inRead-TibberWebSocket
.-TimeoutInSeconds
now instead represents the time to wait for WebSocket operations (see next bullet).- Introduced a
-TimeoutInSeconds
parameter in all WebSocket functions representing the time to wait for WebSocket operations. Read-TibberWebSocket
now knows how to read until a specified date/time (a deadline), see example.
- Support for today's and tomorrow's energy prices in
Get-TibberPriceInfo
. - Improved debugging capabilities, see here.
⚠️ BREAKING CHANGE:Read-TibberWebSocket
now, likeInvoke-TibberQuery
, returns the received data converted fromJson
instead of the raw data as a string.- Added retry functionality to
Connect-TibberWebSocket
. (#5)
⚠️ BREAKING CHANGE: Renamed functionInvoke-TibberGraphQLQuery
toInvoke-TibberQuery
.- 🆕 NEW: Support for the live measurement API (#3) with these new functions:
- Initial version, see README.md for how to use this module.
- 🆕 NEW: Generic function for invoking any GraphQL query,
Invoke-TibberQuery
. - 🆕 NEW: Functions for getting user info, home info, energy price info, and energy consumtion/production data: