Skip to content

emischorr/tibber_ex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TibberEx

An opinionated wrapper for the Tibber GraphQL API. Currently only priceInfo and priceRating are implemented.

Example

token = System.get_env("TIBBER_TOKEN")
client = TibberEx.Client.new(token)

TibberEx.Api.price_rating(client)
# %{
#   currency: "EUR",
#   entries: %{
#     ~U[2025-01-03 05:00:00.000Z] => %{
#       total: 0.3084,
#       level: "HIGH",
#       difference: 25.283416820458783
#     },
#     ...
#   },
#   maxTotal: 0.3909,
#   minTotal: 0.1892
}

Installation

If available in Hex, the package can be installed by adding tibber_ex to your list of dependencies in mix.exs:

def deps do
  [
    {:tibber_ex, "~> 0.1.0"}
  ]
end

The docs can be found at https://hexdocs.pm/tibber_ex.

About

An opinionated wrapper for the Tibber GraphQL API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages