Skip to content

Some simple Server and Client side JavaScript/PHP examples for Tibber GraphQL calls

License

Notifications You must be signed in to change notification settings

LarsThunberg/Tibber-GraphQL-Example

Repository files navigation

Tibber-GraphQL-Example

Some simple Server and Client side JavaScript/PHP examples for Tibber GraphQL calls
Note! As the API KEY is in plain text, the Javascript scripts should only be published on your local computer or local server behind a firewall, and not exposed to Internet.

In all files replace THE_API_KEY with your personal Tibber API key.

TibberCurrentEnergyPrice.html

Display current energy price as simple text.

image

TibberCurrentEnergyPriceGuage.html

Display current energy price as a guage. Requires kuma-gauge.jquery.js

image

ReturnCurrentEnergyPriceFromTibber.php

PHP example to run on server. Returns a formatted text of current energy price.

About

Some simple Server and Client side JavaScript/PHP examples for Tibber GraphQL calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published