[[BrmDoor]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
project:brmdoor:start [2018/06/07 23:11]
abyssal [BrmDoor Firmware] Fix github link
project:brmdoor:start [2018/07/25 16:11] (current)
abyssal [Reporting/uploading status in SpaceAPI format] status.brmlab.cz spaceapi URL alias
Line 82: Line 82:
 </​code>​ </​code>​
  
-===== OPEN/CLOSED switch with update of topic on IRC =====+===== OPEN/CLOSED switch with update of topic on IRC and SpaceAPI format on VPS =====
  
 In ''​brmdoor_nfc.config'',​ look at the section ''​[open_switch]''​. IRC must be enabled in ''​[irc]''​ section for status In ''​brmdoor_nfc.config'',​ look at the section ''​[open_switch]''​. IRC must be enabled in ''​[irc]''​ section for status
Line 122: Line 122:
 until the physical switch changes the value. until the physical switch changes the value.
  
 +==== Reporting/​uploading status in SpaceAPI format ====
 +
 +Currently since v 0.2 brmdoor can upload the status and information in [[http://​spaceapi.net/​ | SpaceAPI.net format]].
 +
 +The status JSON is mapped currently is mapped to [[https://​brmlab.cz/​spaceapi/​status.json]]. The interesting non-static part
 +of json is in under "​state"​ key - "​open"​ (boolean) and "​lastchange"​ (Unix timestamp). ​
 +
 +Currently to be compatible with old URL (https://​status.brmlab.cz/​brmd/​brmstatus.json) ​
 +for the spaceAPI.net since we can't change it and can't submit new, there is alias
 +in ''/​etc/​apache2/​sites-available/​status.brmlab.cz.conf''​ to directory ''/​home/​brmdoor-web/​spaceapi-status''​ where status file is
 +uploaded by brmdoor (it's over SFTP with internal-sftp chroot, ssh-key login, so that in case of compromise of brmdoor there
 +is not much the attacker could do with it (and password can't be bruteforced).
 ===== PIN assignments ===== ===== PIN assignments =====
  
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki