Skip to content

Instantly share code, notes, and snippets.

@anthonyray
Last active October 3, 2020 18:20
Show Gist options
  • Save anthonyray/c8df1a03d102e9c8d5eae896109fe737 to your computer and use it in GitHub Desktop.
Save anthonyray/c8df1a03d102e9c8d5eae896109fe737 to your computer and use it in GitHub Desktop.
One liner to take a picture from a remote Raspberry Pi and see it in your terminal

Instructions

  1. On your Raspberry Pi, enable SSH.

  2. On your laptop, copy your SSH keys to your Raspberry with ssh-copy-id pi@<your-raspi-hostname>.local.

  3. Install fswebcam with sudo apt-get install fswebcam.

  4. From a terminal on your computer, you can issue a :

ssh pi@<your-raspi-hostname>.local 'sudo fswebcam -q --no-banner -' | imgcat
  1. And voila 🙌🏾 ! You should see the capture of your webcam from the comfort of your command line !

Results

If that's not awesome, then I don't what else !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment