Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:alphapi

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
infrastruktur:alphapi [2022-08-04 14:43] chrisinfrastruktur:alphapi [2022-09-15 21:23] (aktuell) makefu
Zeile 2: Zeile 2:
 {{tag> shack, music, shackoperations}}   {{tag> shack, music, shackoperations}}  
  
-alphapi ist eine Reimplantation von [[friedhof:alphafluid|alphafluid]] (dem Matematen im hinteren Flur), der auf einem Raspberry Pi läuft. Der alte Quellcode von alphafluid ist [[https://github.com/shackspace/alphafluid | hier zu finden]]. Alle alte Dokumentation ist damit obsolet.+alphapi ist eine Reimplantation von [[friedhof:alphafluid|alphafluid]] (dem Matematen im hinteren Flur), der auf einem Raspberry Pi läuft. Der alte Quellcode von alphafluid ist [[https://github.com/shackspace/alphafluid | hier zu finden]]. Alle alte Dokumentation ist damit in Teilen obsolet.
  
 Der pi ist unter alphapi.shack (10.42.20.20) zu erreichen und man kann sich mit Hilfe eines puppet keys authentifizieren. Dafür muss der Key zwingend auf puppet.shack deployed sein. Der pi ist unter alphapi.shack (10.42.20.20) zu erreichen und man kann sich mit Hilfe eines puppet keys authentifizieren. Dafür muss der Key zwingend auf puppet.shack deployed sein.
  
 === add sounds to repo === === add sounds to repo ===
-  - git pull https://git.shackspace.de/infrastructure/alphapi+  - git pull https://github.com/shackspace/alphapi/
   - Füge Deine samples im Unterordner server/sounds/ hinzu.    - Füge Deine samples im Unterordner server/sounds/ hinzu. 
   - git push   - git push
Zeile 18: Zeile 18:
   - cd alphafluid/alphapi   - cd alphafluid/alphapi
   - git pull (ist aber grade kaputt, git ist zu alt)   - git pull (ist aber grade kaputt, git ist zu alt)
 +
 +=== architecture ===
 +Alphapi contains of two parts, an 8bit AVR which handles the 7segment display, PIR and other sensors ( https://github.com/shackspace/alphapi/tree/master/firmware ) and the raspberry pi which interfaces with the AVR via Serial and handles sound + light.
 +
 +== AVR ==
 +The Microcontroller sends the following messages:
 +  - /o/d/1/ - door opened
 +  - /o/b/<slot> - bottle bought at <slot>
 +  - /o/d/0/ - door closed
 +  - /o/p/0/1 - pir spot
 +  - /o/p/1/1 - pir room
 +
 +It can receive the following messages:
 +  - /i/s/<slot><numer_of_bottles> - shown in 7 segment
 +
 +all messages end with \r\n
 +
 +== RaspberryPi ==
 +Code is at https://github.com/shackspace/alphapi/blob/master/server/alphapi.py
 +
infrastruktur/alphapi.1659616980.txt.gz · Zuletzt geändert: 2022-08-04 14:43 von chris