Offer multiple options; there's no reason that one system can't have more than one SpaceAPI endpoint. A spaceapi stanza shall have the following fields:
metadata: The dictionary of data that the SpaceAPI specifies, except for the open, api, events, lastchange, and status fields.
cameras: A list of tuples of camname, level. Each camera is recognized as being active if the ratio is at least level.
needed_activity: How many cameras must be considered active before the space is considered open.
What
The SpaceAPI is a JSON REST HTTP API for providing metadata about hackerspaces.
https://hackerspaces.nl/spaceapi/
What To Implement
Offer multiple options; there's no reason that one system can't have more than one SpaceAPI endpoint. A
spaceapi
stanza shall have the following fields:metadata
: The dictionary of data that the SpaceAPI specifies, except for theopen
,api
,events
,lastchange
, andstatus
fields.cameras
: A list of tuples ofcamname
,level
. Each camera is recognized as being active if the ratio is at leastlevel
.needed_activity
: How many cameras must be considered active before the space is consideredopen
.