Eye-Fi - Motion Detect - Auto Delete - Script Writing - CHDK Forum supplierdeeply

Eye-Fi - Motion Detect - Auto Delete

  • 0 Replies
  • 4180 Views
Eye-Fi - Motion Detect - Auto Delete
« on: 21 / June / 2010, 14:02:52 »
Advertisements
I would like to run a Motion Detection script on my Eye-Fi equipped Canon and have oldest files automatically deleted at some point.

I found a blog on the net with similar setup, but no script posted and no response from blog's author.
http://blog.berezin.com/2009/01/canon-a590-is-eye-fi-card-chdk-open.html


I found a post for a script that implements the auto delete using lua:
http://chdk.setepontos.com/index.php/topic,3370.msg31178.html#msg31178

User mattkime posted the following:

Code: [Select]
counter = 0

repeat
counter = counter + 1
print(counter)
  press("shoot_half")
  repeat
    sleep(1)
  until get_shooting() == true
 
  press("shoot_full")
  release("shoot_full")
  repeat
    sleep(1)
  until get_shooting() ~= true
  release("shoot_half")
  sleep(500)
    local imgTable = os.listdir("A/DCIM/100CANON", false)
  os.remove("A/DCIM/100CANON/"..imgTable[1])
until false


Are there lua based fast motion detection scripts that I could use to get started? A complete script with auto delete would be better.

thank you in advance!
« Last Edit: 22 / June / 2010, 09:58:23 by sle118 »

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal