Modify our hackspace's door state with a
Raspberry Pi and a ridiculously oversized switch. This script writes the
Site.SiteNav files for the
Space API and PmWiki. These
files are mounted via sshfs.
Connect the switch to the pin 11 and a ground pin.
Make sure the root user is able to log in the remote machine by having the
~/.ssh folder prepared. Furthermore, modify the
/etc/fstab file to use
sshfs as documented
# Install required software sudo apt install python-dateutil sshfs # Clone this repository and cd into it sudo cp spaceapi.py /usr/bin/ sudo cp spaceapi.service /etc/systemd/system/ sudo mkdir /etc/conf.d/ sudo cp spaceapi /etc/conf.d/ # Modify /etc/conf.d/spaceapi afterwards sudo systemctl daemon-reload sudo systemctl enable spaceapi.service sudo systemctl start spaceapi.service