Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
projects:transcend-wifi-sd [2017/10/31 19:29]
ar [Transcend]
projects:transcend-wifi-sd [2018/05/01 11:34] (current)
informatic
Line 3: Line 3:
  | status=[[http://​camera.waw.hackerspace.pl/​\|active]]  | status=[[http://​camera.waw.hackerspace.pl/​\|active]]
  | founder=[[user>​enleth]]  | founder=[[user>​enleth]]
 + | repo=[[code>​informatic/​cameraget]]
 }} }}
  
Line 8: Line 9:
 Hacked Transcend WiFi SD Card is used to publish photos taken on our local DSLR to a [[http://​camera.waw.hackerspace.pl|HTTP-accessible gallery]] (based on [[https://​github.com/​saimn/​sigal|sigal project]]). Hacked Transcend WiFi SD Card is used to publish photos taken on our local DSLR to a [[http://​camera.waw.hackerspace.pl|HTTP-accessible gallery]] (based on [[https://​github.com/​saimn/​sigal|sigal project]]).
  
-Photos are downloaded from the camera with a simple systemd timer unit +Photos are downloaded from the camera with [[code>informatic/​cameraget|simple systemd timer unit]]
-<​code>​ +
-[Unit] +
-Description=Timer trigger for camera wifi downloader +
- +
-[Install] +
-WantedBy=timers.target +
- +
-[Timer] +
-OnUnitActiveSec=10 +
-OnBootSec=15 +
-AccuracySec=1 +
-Persistent=no +
-RemainAfterElapse=no +
-</code> +
-and service ​unit +
-<​code>​ +
-[Unit] +
-Description=camera wifi downloader +
- +
-[Service] +
-User=cameraget +
-Group=cameraget +
-Type=oneshot +
-ExecStart=/​bin/​sleep 1 +
-ExecStart=/​bin/​ping -n -c 1 transcend.waw.hackerspace.pl +
-ExecStart=-/​usr/​bin/​lftp -e "​mirror --ignore-time DCIM/ /​data/​transcend;​quit"​ transcend.waw.hackerspace.pl +
-ExecStart=/​bin/​bash -c "cd /​data/​sigal;​ source venv/​bin/​activate;​ sigal build"​ +
-</​code>​+
  
 ===== HOWTO (SSH & FTP) ===== ===== HOWTO (SSH & FTP) =====
projects/transcend-wifi-sd.txt · Last modified: 2018/05/01 11:34 by informatic