Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
helper
templates
.gitignore
README.md
announce.py
auth.py
conf.py
httpaccesscontrol.py
info.py
ledticker.py
logger.py
misc.py
restapi.py
restapi.wsgi
room.py
twitterfeed.py

README.md

Python (flask) implementation of our REST-API.

Overview

  • room status (for SpaceAPI etc.)
  • extended information about our hackspace
  • audio announcement system via long polling
  • LED ticker via long polling (see ledticker)
  • traffic light via long polling and normal request (see traffic light)
  • Mate-O-Meter (measures our Club-Mate stock) (see Mate-O-Meter)
  • MUC (xmpp) status
  • wiki status (just some redirects)

Dependencies

  • flask
  • gevent
  • simplejson
  • python-xmpp (see /helper)
  • bash, espeak, sox, lame (see /data/espeak/espeak.sh)

Notes

  • enable WSGIPassAuthorization to pass through authorisation headers:
  • scripts in /helper update the API via http calls and must be called via cron or something similar (calls from other servers are supported)