Update
sudo apt-get update && sudo apt-get upgrade
Install important packages
sudo apt-get install tmux ntp -y
sudo apt-get install python3 python3-venv -y
Config timezone
sudo timedatectl set-timezone Europe/Zurich
Create a virtual environment and activate it
cd GOPRO_TIMELAPSE
python3 -m venv .venv
source .venv/bin/activate
Install dependencies:
pip install -r requirements.txt
- Go to "Preferences" --> "Connections" --> "Connect Device" --> "GoPro App"
- Tap on the "info icon"
- Remember Camera Name and Password
- Update wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=CH
network={
ssid="GP26******"
psk="*********"
}
Reconfigure the interface
wpa_cli -i wlan0 reconfigure
You can verify whether it has successfully connected using ifconfig wlan0
- Pairing: run
python pair.py
- Start tmux session, activate env and start
keepalive.py
sudo cp /home/pi/gopro_timelapse/gopro_timelapse_service.service /etc/systemd/system/gopro_timelapse_service.service
sudo systemctl daemon-reload
sudo systemctl start gopro_timelapse_service.service