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 [2018-08-30 20:23] – ↷ Seite von alphapi nach infrastruktur:alphapi verschoben rixxinfrastruktur:alphapi [2022-09-15 21:23] (aktuell) makefu
Zeile 2: Zeile 2:
 {{tag> shack, music, shackoperations}}   {{tag> shack, music, shackoperations}}  
  
-alphapi ist eine reimplementation von alphafluid (dem matemat im vorzimmer), der auf einem raspberry pi läuft. Der quellcode von Robert ist hier(https://github.com/shackspace/alphafluidzu finden. +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.
  
-alle alte Dokumentationist damit 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 finden und kann mit puppet keys authentifiziert werden.+=== add sounds to repo === 
 +  - git pull https://github.com/shackspace/alphapi
 +  - Füge Deine samples im Unterordner server/sounds/ hinzu 
 +  - git push 
 +  - Falls dir die Berechtigungen für das pushen der Sounds fehlen, schreibe dem Vorstand eine E-Mail.
  
-===add sounds ==== +=== pull from alphapi.shack ===  
-  - pull die shackspaces version des repos. +  - ssh -i id_rsa_puppet root@alphapi.shack
-  füge deine samples in server/sounds/ hinzu.  +
-  - git push  +
-  - login auf den pi (ssh root@alphafluid.shack)+
   - su pi   - su pi
-  - cd +  - cd
   - cd alphafluid/alphapi   - cd alphafluid/alphapi
-  - git pull https://github.com/shackspace/alphapi.git+  - 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.1535653392.txt.gz · Zuletzt geändert: 2018-08-30 20:23 von rixx