Skip to content

Modify our door state with a Raspberry Pi and a ridiculously oversized switch

Notifications You must be signed in to change notification settings

hackspace-marburg/spaceapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spaceapi.py

Modify our hackspace's door state with a Raspberry Pi and a switch built into the door. This script writes the spaceapi.json and Site.SiteNav files for the Space API and PmWiki. These files are mounted via sshfs.

Installation

  • Connect the switch to the pin 11 and a ground pin.
  • Place the private key under fs/root/.ssh/id_rsa.
  • Build the new image with pimod:
    docker run \
      --rm --privileged -it \
      -v $PWD:/files \
      -e PATH=/pimod:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
      --workdir=/files \
      nature40/pimod \
      pimod.sh /files/Pifile
    
  • Flash the image to a SD card:
    dd if=Pifile.img of=__CHANGE_ME__ bs=4M status=progress
    

About

Modify our door state with a Raspberry Pi and a ridiculously oversized switch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages