Join now - be part of our community!

Send to Computer in Linux using WiFi

profile.country.NL.title
Strampke
Expert

Send to Computer in Linux using WiFi

For Linux users there is a Python script (airmtp.py) that allows you to download pictures from your camera to your Linux computer (which means to your raspberrypi as well) using  a WiFi connection.

 

Howto.

Download  the ZIP file from GitHub.

 

 

 

wget https://github.com/shezi/airmtp/archive/refs/heads/master.zip
unzip master.zip
mkdir Camera-download

 

 

 

 

#!/bin/bash
cd /home/pi/airmtp-master
# Start your camera -> menu -> WiFi -> Send to Computer -> start the script
# find the ip address of your camera using arp and the MAC address and grep the ip address out of the arp discovery.
# the MAC address of Sony cameras starts with '00:ae'.
ip=$(arp -a | grep '00:ae' | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}')
# the script has found the camera's ip address
# transfer this ip address inside the script
python3 airmtp.py --ipaddress $ip --outputdir /home/pi/Camera-download
#Attention; the directory to download the jpg files must be the same as the one on the line above.

# discovered on https://github.com/shezi/airmtp

 

 

In case you want to follow the correct execution of the script, type: sh -x name-of-your-script.sh

 

Enjoy!

 

 

 

 

0 REPLIES 0