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.htmlI found a post for a script that implements the auto delete using lua:
http://chdk.setepontos.com/index.php/topic,3370.msg31178.html#msg31178User mattkime posted the following:
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!