Skip to content

Commit dc95782

Browse files
authored
Update index.php
1 parent 736c318 commit dc95782

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
require "class/element_iot.inc.php";
44
// For more Informations see Documentation!
5-
$element_iot = new element_iot("1d08cbb43a64c62e7358be4404e2d578", "ssl://iot.stadtwerke-karlsruhe.de");//__construct($api_key, $domain)
5+
$element_iot = new element_iot("your_api_key", "your_domain");//__construct($api_key, $domain)
66

77

8-
$data = $element_iot->get(["devices", "readings"], ["limit" => 1,"id" => "f5261911-7f7b-4870-a5f5-7f4c7e9ff5e5"]);//Konfigriert darauf, die letzten 5 Messwerte zu holen
8+
$data = $element_iot->get(["devices", "readings"], ["limit" => 1,"id" => "your_device_id_see_README!"]);//Konfigriert darauf, die letzten 5 Messwerte zu holen
99

1010
?>
1111
<!DOCTYPE html>
@@ -25,4 +25,4 @@
2525
<h1><?php echo $data["body"][0]["data"]["position"];?></h1>
2626
<h2><?php echo var_dump($data["body"][0]);?></h2>
2727
</body>
28-
</html>
28+
</html>

0 commit comments

Comments
 (0)