SpaceAPI support #31

Closed
eastein opened this Issue Dec 17, 2011 · 2 comments

Comments

Projects
None yet
1 participant
Owner

eastein commented Dec 17, 2011

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 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.
Owner

eastein commented Dec 17, 2011

Check TODOs in above commit before closing - there's stuff to do.

@eastein eastein added a commit that referenced this issue Dec 17, 2011

@eastein eastein #31 don't wrap successful spaceapi result in external dict like the r…
…est of the JSON APIs, handle 404s etc better.
0d8354e

@eastein eastein added a commit that referenced this issue Dec 18, 2011

@eastein eastein #31 include 'status' field. 668977b
Owner

eastein commented Dec 18, 2011

Calling this done - it works!

There's a running endpoint for PS:One at http://space.pumpingstationone.org:8000/spaceapi/ps1

eastein closed this Dec 18, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment