Skip to content

About

systemd service for the pi zero laundrycam at the ESHC

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

eshc-laundrycam

Was previously a cron, python & bash script. Now using systemd.

Setup

  1. On the pi, copy over laundrycam.service and laundrycam.timer into their correct places.
  2. On the pi, install imagemagick.
  3. On the pi, edit .ssh/config and add a host for fileserver. Like below:
Host fileserver
  user laundrycam
  HostName 10.x.x.x
  1. On the fileserver, useradd laundrycam
  2. On the pi, upload the SSH private key or generate a new pair with ssh-keygen
  3. On the fileserver, edit the .ssh/authorized_keys for the laundrycam user, like below:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINyPtsnO+/mohi2qJaxzG4hKWMO45CVbcHiocSx7aQnV command="/usr/bin/rsync",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty eshc@laundrycam
  1. Create a directory in /var/www/fileserver and chown it to the laundrycam user
  2. On pi, sudo systemctl enable --now laundrycam.timer
  3. On pi, after a few seconds, sudo systemctl status laundrycam and check no errors.

About

systemd service for the pi zero laundrycam at the ESHC

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors