Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 1.28 KB

README.md

File metadata and controls

65 lines (52 loc) · 1.28 KB

GOPRO_TIMELAPSE

Installation

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

Connect to GoPro

  1. Go to "Preferences" --> "Connections" --> "Connect Device" --> "GoPro App"
  2. Tap on the "info icon"
  3. Remember Camera Name and Password
  4. 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

  1. Pairing: run python pair.py
  2. Start tmux session, activate env and start keepalive.py

Install Service & Start

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