https://github.com/emischorr/tibber_ex
An opinionated wrapper for the Tibber GraphQL API
https://github.com/emischorr/tibber_ex
api elixir graphql tibber
Last synced: 4 months ago
JSON representation
An opinionated wrapper for the Tibber GraphQL API
- Host: GitHub
- URL: https://github.com/emischorr/tibber_ex
- Owner: emischorr
- License: mit
- Created: 2025-01-06T14:19:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-12T18:17:34.000Z (9 months ago)
- Last Synced: 2025-10-26T12:42:58.759Z (8 months ago)
- Topics: api, elixir, graphql, tibber
- Language: Elixir
- Homepage: https://hex.pm/packages/tibber_ex
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TibberEx
An opinionated wrapper for the Tibber GraphQL API.
Currently only priceInfo is implemented.
## Example
```elixir
"TIBBER_TOKEN"
|> System.get_env()
|> TibberEx.price_info()
# %{
# ~U[2025-10-09 04:30:00.000Z] => %{total: 0.3664, energy: 0.1324, tax: 0.234},
# ~U[2025-10-08 12:30:00.000Z] => %{total: 0.316, energy: 0.09, tax: 0.226},
# ~U[2025-10-08 16:15:00.000Z] => %{total: 0.3846, energy: 0.1476, tax: 0.237},
# ~U[2025-10-08 03:00:00.000Z] => %{total: 0.3124, energy: 0.087, tax: 0.2254},
# ...
# }
```
## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `tibber_ex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:tibber_ex, "~> 0.1.0"}
]
end
```
The docs can be found at .