Skip to content

Latest commit

 

History

History
21 lines (12 loc) · 925 Bytes

README.md

File metadata and controls

21 lines (12 loc) · 925 Bytes

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.