mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-09 04:04:02 +02:00
spaceapi 0.13 changes prepared for future use
validated in OpenSpaceLint validator http://openspace.slopjong.de/ beware, can possibly break compatibility with applications with spaceapi 0.12 and older because "status" is string in spaceapi versions up to 0.12 and object in spaceapi 0.13 http://openspace.slopjong.de/specs/0.13 http://openspace.slopjong.de/specs/changelog
This commit is contained in:
parent
992112ce29
commit
3aecb5f7c5
1 changed files with 43 additions and 23 deletions
42
brmd/brmd.pl
42
brmd/brmd.pl
|
@ -427,29 +427,49 @@ sub web_brmstatus_json {
|
|||
|
||||
$response->content(<<EOT
|
||||
{
|
||||
"api":"0.12",
|
||||
"api": "0.13",
|
||||
"space": "brmlab",
|
||||
"logo": "http://brmlab.cz/_media/brmlab.png?w=256",
|
||||
"url": "http://brmlab.cz",
|
||||
"location": {
|
||||
"lat": 50.0984614,
|
||||
"lon": 14.4369158,
|
||||
"address": "Bubenska 1477/1, 170 00 Praha 7, Czech republic"
|
||||
},
|
||||
"address": "Bubenska 1477/1, 170 00 Praha 7, Czech republic",
|
||||
"stream": {
|
||||
"mpeg": "http://brmlab.cz/stream.flv"
|
||||
},
|
||||
"open":${\($status ? 'true' : 'false')},
|
||||
"lastchange":$laststchange,
|
||||
"status": {
|
||||
"open":${\($status ? 'true' : 'false')},
|
||||
"lastchange":$laststchange,
|
||||
"message": "open",
|
||||
"icon": {
|
||||
"open": "https://brmlab.cz/status-open-icon.png",
|
||||
"closed": "https://brmlab.cz/status-closed-icon.png"
|
||||
}
|
||||
},
|
||||
"icon": {
|
||||
"open": "https://brmlab.cz/status-open-icon.png",
|
||||
"closed": "https://brmlab.cz/status-closed-icon.png"
|
||||
},
|
||||
"address":"Bubenska 1477/1, 170 00 Praha 7, Czech republic",
|
||||
"contact": {
|
||||
"phone": "+420608801582",
|
||||
"twitter": "\@brmlab",
|
||||
"facebook":"brmlab",
|
||||
"ml": "brmlab\@brmlab.cz",
|
||||
"irc":"irc://freenode/#brmlab"
|
||||
"issue-mail": "rada\@brmlab.cz",
|
||||
"irc": "irc://freenode/#brmlab",
|
||||
"facebook": "brmlab"
|
||||
},
|
||||
"logo":"https://brmlab.cz/_media/brmlab.png?w=256",
|
||||
"open":${\($status ? 'true' : 'false')},
|
||||
"lastchange":$laststchange,
|
||||
"feeds":[
|
||||
{"name":"blog","type":"application/rss+xml","url":"https://soup.brmlab.cz/rss"},
|
||||
"issue-report-channels": [
|
||||
"issue-mail"
|
||||
],
|
||||
"lat":37.0625,
|
||||
"lon":-95.67706
|
||||
"irc": "irc://freenode/#brmlab",
|
||||
"feeds": [
|
||||
{ "name": "blog", "type": "application/rss+xml", "url": "http://soup.brmlab.cz/rss" }
|
||||
]
|
||||
}
|
||||
EOT
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue