Benutzer-Werkzeuge

Webseiten-Werkzeuge


infrastruktur:alphapi

alphapi

alphapi ist eine Reimplantation von alphafluid (dem Matematen im hinteren Flur), der auf einem Raspberry Pi läuft. Der alte Quellcode von alphafluid ist 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.

add sounds to repo

  1. Füge Deine samples im Unterordner server/sounds/ hinzu.
  2. git push
  3. Falls dir die Berechtigungen für das pushen der Sounds fehlen, schreibe dem Vorstand eine E-Mail.

pull from alphapi.shack

  1. ssh -i id_rsa_puppet root@alphapi.shack
  2. su pi
  3. cd
  4. cd alphafluid/alphapi
  5. 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:

  1. /o/d/1/ - door opened
  2. /o/b/<slot> - bottle bought at <slot>
  3. /o/d/0/ - door closed
  4. /o/p/0/1 - pir spot
  5. /o/p/1/1 - pir room

It can receive the following messages:

  1. /i/s/<slot><numer_of_bottles> - shown in 7 segment

all messages end with \r\n

RaspberryPi
infrastruktur/alphapi.txt · Zuletzt geändert: 2022-09-15 21:23 von makefu