Difference between revisions of "SpaceAPI"

From Hackerspace ACKspace
Jump to: navigation, search
(major update (due to migration to MQTT and the official move of the public API website)
(fixed list of spaceapi projects)
Line 48: Line 48:
 
| software
 
| software
 
|-
 
|-
| [[ESP8266-SpaceState]]<abbr title="obsolete">/!\</abbr>
+
| [[Spacestate sensors]] <abbr title="incomplete and replaced by MQTT">/!\</abbr>
 
| hardware, firmware
 
| hardware, firmware
 
|
 
|
| [[Spacestate indicator]] <abbr title="incomplete">/!\</abbr>
+
| [[User:Vicarious|Vicarious']] [[Mobile Spacestate Indicator]]
| hardware, firmware
 
|-
 
| [[Spacestate sensors]] <abbr title="incomplete and obsolete">/!\</abbr>
 
| hardware, firmware
 
|
 
| [[Mobile Spacestate Indicator]]
 
 
| hardware, firmware, software
 
| hardware, firmware, software
 
|-
 
|-
| [[Space state]] (switch)<abbr title="obsolete">/!\</abbr>
+
| [[Space state]] (switch)<abbr title="replaced by MQTT">/!\</abbr>
 
| hardware
 
| hardware
 
|
 
|
Line 69: Line 63:
 
|
 
|
 
|
 
|
| [[SpaceAPIBot]] ([https://telegram.org Telegram])
+
| [[User:Stuiterveer|Stuiterveer's]] [[SpaceAPIBot]] ([https://telegram.org Telegram])
 
| software
 
| software
 
|-
 
|-
Line 83: Line 77:
 
| [[Widget:SpaceAPI]]
 
| [[Widget:SpaceAPI]]
 
| software
 
| software
 +
|-
 +
|
 +
|
 +
|
 +
| [[User:Danny Witberg|Danny W's]] [[Spacestate indicator]] <abbr title="incomplete">/!\</abbr>
 +
| hardware, firmware
 +
|-
 +
|
 +
|
 +
|
 +
| [[User:Coolepascal|CoolePascal's]] [[SpaceStateIndicator]]
 +
| hardware, firmware
 
|}
 
|}
 +
For a possibly more complete list, look at the [[:Category:SpaceAPI|SpaceAPI category]]
  
 
Affiliated github repositories:
 
Affiliated github repositories:
Line 95: Line 102:
 
=== todo ===
 
=== todo ===
 
* upload database model
 
* upload database model
* update the [[ESP8266-DS18S20|Dallas temperature probe]] and [[ESP8266-SpaceState|space state]] firmware ([https://github.com/ACKspace/esp8266-SpaceAPI esp8266-SpaceAPI Github repo])
 
  
 
=== done ===
 
=== done ===

Revision as of 17:38, 19 May 2022

Project: SpaceAPI
Featured: No
State Completed
Members Vicarious, Coolepascal, Prodigity, Da Syntax, xopr, stuiterveer
GitHub spaceAPI
Description HackerSpace Status API
Picture
No project picture! Fill in form Picture or Upload a jpeg here

synopsis

Expose hackerspace information via a JSON structure. See spaceapi.io for documentation (or its old site (unsecure)).

current version

The current backend has been made modular for easy maintenance and feature expansion. Several expansions are already in place:

Most of the first implementation has been done by Da Syntax and xopr (ask them for details).

Currently, both the new and old system are running in parallel, but some things need to be done before deprecating the old system.

The active maintained SpaceAPI project is at spaceapi.io.

Several systems are tied to the backend:

inputs category outputs category
MQTT (bridge) software Space state (telephone system) software
Spacestate sensors /!\ hardware, firmware Vicarious' Mobile Spacestate Indicator hardware, firmware, software
Space state (switch)/!\ hardware IRC ACKspace-statusbot software
Stuiterveer's SpaceAPIBot (Telegram) software
Pebble watch app software
Widget:SpaceAPI software
Danny W's Spacestate indicator /!\ hardware, firmware
CoolePascal's SpaceStateIndicator hardware, firmware

For a possibly more complete list, look at the SpaceAPI category

Affiliated github repositories:

Deprecated implementations:

todo

  • upload database model

done

  • created database for space state (log) and sensor values
  • new php code online (currently running parallel with the old version)
  • created new space state hardware interface using the ESP8266 which connects to the same old switch
  • First draft after recovery esp8266-SpaceAPI-full.tar Note that the used JSON parser library will cause heap corruption.
  • front page widget is now a real widget
  • php backend source online

old version

  • Updated JSON object to become SpaceAPI 0.13 compliant (see status.php)
    • Content type and Cache-Control headers are now sent
    • Now uses location object
    • Now uses state object
    • Space state now has a third state; null. (In case of uncertain state)
  • Uploaded it to ackspace.nl/status.php but the URL can be changed if necessary..
  • From the SpaceAPI website: "In order to be able to retrieve the object from within a javascript sandbox, the server of the JSON object should set the ‘Access-Control-Allow-Origin’ header with a value of ‘*’ ".
  • Added the JSON object to the existing Space state PHP script. Thanks CoolePascal for the help with the PHP stuff!