Go to file
Lomanic 399f5718f6 Make the API compliant with the 0.14 spec 2022-11-12 08:08:18 +01:00
README.md Make app configurable via SPACEAPI env variable 2020-10-17 20:57:15 +02:00
go.mod Make project go-module compatible 2022-09-27 01:29:23 +02:00
main.go Make the API compliant with the 0.14 spec 2022-11-12 08:08:18 +01:00

README.md

Fuz SpaceAPI endpoint

Simple project in Go retrieving opening status from presence button API and serving JSON according to SpaceAPI specs.

Read about it on Fuz wiki.

Configuration

The app gets its configuration from these environment variables:

  • PRESENCEAPI: URL where the app should get the space opening status (e.g. PRESENCEAPI=https://presence.fuz.re/api)
  • SPACEAPI: JSON string, static information to be served on the endpoint (e.g. SPACEAPI='{"api":"0.13","space":"FUZ","logo":"https://fuz.re/WWW.FUZ.RE_fichiers/5c02b2a84373a.png","url":"https://fuz.re/","location":{"address":"11-15 rue dela Réunion, Paris 75020, FRANCE","lon":2.40308,"lat":48.85343},"contact":{"email":"","irc":"","ml":"fuz@fuz.re","twitter":"@fuz_re","matrix":"https://matrix.to/#/#fuz_general:matrix.fuz.re"},"issue_report_channels":["ml","twitter"],"state":{"icon":{"open":"https://presence.fuz.re/img","closed":"https://presence.fuz.re/img"},"message":"open under conditions: https://wiki.fuz.re/doku.php?id=map"},"projects":["https://wiki.fuz.re/doku.php?id=projets:fuz:start"]}')