diff --git a/api/spaceapi.php b/api/spaceapi.php index fe74cae3b6564104536051ab99be3872627d9c8f..a2a268ecc0b10f28183339b07ef7f2abe0a4f020 100644 --- a/api/spaceapi.php +++ b/api/spaceapi.php @@ -35,7 +35,7 @@ 'lat' => 51.943376, ), 'contact' => Array( - 'phone' => '+49 49 251 39500271', + 'phone' => '+49 251 39500271', 'twitter' => '@warpzone_ms', 'email' => 'office@warpzone.ms', 'irc' => 'irc://irc.freenode.net/#warpzone', @@ -46,19 +46,25 @@ ), 'state' => Array( 'open' => $wankerTuerOffen, + 'icon' => Array( + 'open' => 'https://www.warpzone.ms/api/warpzone_open.png', + 'closed' => 'https://www.warpzone.ms/api/warpzone_closed.png', + ), ), +/* Caching disabled, re-enable to allow caching by spaceapi.net 'cache' => Array( 'schedule' => 'm.02' ), +*/ 'sensors' => Array( 'temperature' => Array( Array( - 'value' => intval($wankerTempLounge), + 'value' => $wankerTempLounge, 'unit' => '°C', 'location' => 'Lounge', ), Array( - 'value' => intval($wankerTempWerkstatt), + 'value' => $wankerTempWerkstatt, 'unit' => '°C', 'location' => 'Werkstatt', ), diff --git a/api/warpzone_closed.png b/api/warpzone_closed.png new file mode 100644 index 0000000000000000000000000000000000000000..18d79efc4ea6bde3d10032da6807e1121ab38def Binary files /dev/null and b/api/warpzone_closed.png differ diff --git a/api/warpzone_open.png b/api/warpzone_open.png new file mode 100644 index 0000000000000000000000000000000000000000..f502ab7c856319b2998909075ad05726632c1556 Binary files /dev/null and b/api/warpzone_open.png differ