Delete Script + intervalometer

  • 10 Replies
  • 1320 Views
Delete Script + intervalometer
« on: 22 / June / 2016, 15:31:17 »
Advertisements
Hello there!

I'm looking for a script, which does a simple intervalometer (with pre focus preferred) BUT deletes the oldest pictures one-by-one, so that the sd card never runs out of space.

I know the risks, still looking for a solution.

I would be grateful, if someone could write the lua/bas script for me.

My camera is Canon Ixus 220HS with CHDK 1.0(?).

Thank you in advance,
Tom

There is some useful HELP attached!
« Last Edit: 22 / June / 2016, 15:42:36 by szotyi »

*

Offline reyalp

  • ******
  • 11546
Re: Delete Script + intervalometer
« Reply #1 on: 22 / June / 2016, 16:02:13 »
My camera is Canon Ixus 220HS with CHDK 1.0(?).
If you are actually using 1.0,  I would strongly suggest using the current stable release (1.4) as scripting support for file / directory operations has improved sigificantly.

Functions in the Lua OS library (see http://chdk.wikia.com/wiki/Lua#Lua_standard_libraries:_io.2C_os.2C_string.2C_and_math) can be used to list and delete files.
Note that if you have a large number of files, it may not be possible for the script to keep the whole list in memory. I suggest using os.idir (rather than listdir) to avoid this.

Even if you delete files, you should not expect the camera to run indefinitely this way. It will probably need to be rebooted occasionally.
Don't forget what the H stands for.

Re: Delete Script + intervalometer
« Reply #2 on: 22 / June / 2016, 16:25:25 »
Even if you delete files, you should not expect the camera to run indefinitely this way. It will probably need to be rebooted occasionally.
When I get a few minutes, I'll add this feature to the "ultimate intervalometer". It already has the necessary reboot logic.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Delete Script + intervalometer
« Reply #3 on: 22 / June / 2016, 18:35:16 »
WoW!

It would be awesome if you would have a few minutes! :D

Do you know when can I expect the newest release of the ultimate intervalometer with the old files delete future?

Please take into account, that I wish to take pictures in the lowest quality possible, so there will be a huge amount of files on the sd card.

(There is a guy at my street, who comes home drunk every night and brakes the newly planted trees... I would like to catch him, because the whole street wants to know who he is. That's the reason why I want an intervalometer forever. I hope the release will be faster than the last two remaining trees...)

Adaptive motion detection does not exist as far as I know. (For me it should work both by night and in sunlight.)

I couldn't find any other solution, let me know, if you know some.

I wish to loop taking pictures every 3 seconds, ~forever.

I know it's not safe to run this forever, but it would be good to have a script solution to my problem.

Looking forward,
Tom

Even if you delete files, you should not expect the camera to run indefinitely this way. It will probably need to be rebooted occasionally.
When I get a few minutes, I'll add this feature to the "ultimate intervalometer". It already has the necessary reboot logic.


Re: Delete Script + intervalometer
« Reply #4 on: 22 / June / 2016, 23:10:20 »
I'm not sure that I will get to this immediately.  Might be a week or two as this will require quite a bit of testing. 

You might want to look into one of those internet enabled security cameras that upload automatically to your PC. I have a $50 one that works quite reliably day or night any time it detects a change in front of my house.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Delete Script + intervalometer
« Reply #5 on: 23 / June / 2016, 10:30:12 »
Of course, but I'm a student and I didn't want to spend 50 dollars, because I could solve this problem with CHDK.

Looking forward to your release.

Thank you in advance!
Tom

I'm not sure that I will get to this immediately.  Might be a week or two as this will require quite a bit of testing. 

You might want to look into one of those internet enabled security cameras that upload automatically to your PC. I have a $50 one that works quite reliably day or night any time it detects a change in front of my house.

Re: Delete Script + intervalometer
« Reply #6 on: 23 / June / 2016, 10:35:33 »
Of course, but I'm a student and I didn't want to spend 50 dollars, because I could solve this problem with CHDK. Looking forward to your release.
In the meantime,  you could simple wipe your SD card manually every day or two until you catch your neighbor in the act.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Delete Script + intervalometer
« Reply #7 on: 23 / June / 2016, 10:39:59 »
Unfortunately that's not an option, because the last two remaining trees are about 150m away from my house.

I will ask the guy, who lives there to mount the camera near his window, which he hopefully (probably) will let me.

The SD card capacity is enough only for 15 hours, and I don't want to disturb him twice a day.

A bigger SD card is not an option as the camera can't handle it.

Thanks for the advice, but I will wait till the release.

Tom

Of course, but I'm a student and I didn't want to spend 50 dollars, because I could solve this problem with CHDK. Looking forward to your release.
In the meantime,  you could simple wipe your SD card manually every day or two until you catch your neighbor in the act.


Re: Delete Script + intervalometer
« Reply #8 on: 23 / June / 2016, 10:47:59 »
Unfortunately that's not an option, because the last two remaining trees are about 150m away from my house.

I will ask the guy, who lives there to mount the camera near his window, which he hopefully (probably) will let me.

The SD card capacity is enough only for 15 hours, and I don't want to disturb him twice a day.

A bigger SD card is not an option as the camera can't handle it.

Thanks for the advice, but I will wait till the release.
Okay - now I get it. Thanks for the details.  You basically need to leave it unattended until something happens and then have (hopefully) enough images that have not yet been deleted to go back to the event you hoped to capture.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Delete Script + intervalometer
« Reply #9 on: 23 / June / 2016, 10:52:46 »
Exactly! :)

As I pass the trees every morning and when I get back from work, I can easily stop the script in time with the images necessary.

Thanks for your help.
Tom

Unfortunately that's not an option, because the last two remaining trees are about 150m away from my house.

I will ask the guy, who lives there to mount the camera near his window, which he hopefully (probably) will let me.

The SD card capacity is enough only for 15 hours, and I don't want to disturb him twice a day.

A bigger SD card is not an option as the camera can't handle it.

Thanks for the advice, but I will wait till the release.
Okay - now I get it. Thanks for the details.  You basically need to leave it unattended until something happens and then have (hopefully) enough images that have not yet been deleted to go back to the event you hoped to capture.

 

Related Topics