This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AIS-catcher service for systemd | |
[Unit] | |
Description=AIS-catcher | |
Wants=network.target | |
After=network.target | |
[Service] | |
User=ais | |
RuntimeDirectory=aiscatcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prerequisite: | |
# Enable I2C using raspi-config if necessary | |
# Install I2C support, Python image library, and other support libraries. | |
sudo apt install -y python3-smbus i2c-tools | |
sudo apt install -y python3-pil | |
sudo apt install -y python3-pip | |
sudo apt install -y python3-setuptools |