spaceapi.php

This commit is contained in:
Jan-Philipp Warmers 2014-04-29 12:38:52 +02:00
parent 10e49df2fc
commit b2a9df80c6
1 changed files with 25 additions and 0 deletions

25
website/spaceapi.php Normal file
View File

@ -0,0 +1,25 @@
<?php
$quelltext = file_get_contents("http://www.chaostreff-dortmund.de/raumstatus.php?txt");
?>
{
"api":"0.12",
"space":"Chaostreff-Dortmund",
"logo":"https://wiki.ctdo.de/lib/tpl/dokubook/images/ctdo.png",
"icon":{
"open":"http://www.chaostreff-dortmund.de/green.png",
"closed":"http://www.chaostreff-dortmund.de/red.png"
},
"url":"https://www.chaostreff-dortmund.de/",
"address":"Braunschweigerstr. 22, 44145 Dortmund, Germany",
"contact":{
"irc":"irc://irc.hackint.org/#ccc.do",
"twitter":"@ctdo",
"email":"presse@chaostreff-dortmund.de",
"ml":"ccc@chaostreff-dortmund.de"
},
"lat":51.527664,
"lon":7.465072,
"open":<?php if($quelltext == "online\n") echo "true"; else echo "false";?>
}