User Tools

Site Tools


project:brmdoor:start

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
project:brmdoor:start [2018/06/05 19:54] – [Adding a new card to JendaSAP and import to brmdoor] better markup abyssalproject:brmdoor:start [2018/07/24 19:25] – Support for uploading status to VPS in SpaceAPI.net format, mapping publicly available on brmlab.cz abyssal
Line 41: Line 41:
 ===== BrmDoor Firmware ===== ===== BrmDoor Firmware =====
  
-Source repository: https://github.com/brmlab/brmdoor+Source repository: https://github.com/hiviah/brmdoor_libnfc
  
 ===== List of authorized cards ===== ===== List of authorized cards =====
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 98: Line 98:
 ''brmdoor_start.sh'' script below. Connect one cable of the switch to an input PIN and the other to the ground. ''brmdoor_start.sh'' script below. Connect one cable of the switch to an input PIN and the other to the ground.
  
-<code>+<code bash>
 #!/bin/bash #!/bin/bash
 export PIN=22 export PIN=22
Line 121: Line 121:
 Any IRC user in ''#brmlab'' channel can change the topic by using the ''/topic'' command. This value will stay Any IRC user in ''#brmlab'' channel can change the topic by using the ''/topic'' command. This value will stay
 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). 
  
 ===== PIN assignments ===== ===== PIN assignments =====
project/brmdoor/start.txt · Last modified: 2023/09/17 20:35 by abyssal