User Tools

Site Tools


projects:transcend-wifi-sd

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
projects:transcend-wifi-sd [2017/02/16 23:01] – created enlethprojects:transcend-wifi-sd [2017/10/31 19:29] – [Transcend] ar
Line 1: Line 1:
-====== HOWTO ======+{{template>:template:project 
 + | name=Hacked Transcend WiFi SD 
 + | status=[[http://camera.waw.hackerspace.pl/\|active]] 
 + | founder=[[user>enleth]] 
 +}}
  
 +====== Transcend ======
 +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
 +<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 a 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) =====
   - Unpack the card, insert it into the bundled reader, plug into a computer   - Unpack the card, insert it into the bundled reader, plug into a computer
   - Mount the card's filesystem   - Mount the card's filesystem
projects/transcend-wifi-sd.txt · Last modified: 2023/03/20 00:26 by sdomi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki