Ultimate Intervalometer - a script for shooting over a long duration - v4.9 - page 34 - Completed and Working Scripts - CHDK Forum

Ultimate Intervalometer - a script for shooting over a long duration - v4.9

  • 651 Replies
  • 247046 Views
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #330 on: 23 / September / 2015, 12:44:11 »
Advertisements
Thanks waterwingz, for the reply and for making the script publicly available!  :) 

Once I have access to the camera again, I will try to add the additional sleep(5000) after the set_record(0) statement.

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #331 on: 18 / October / 2015, 19:36:21 »
Hi Waterwingz

I have been using the various updates of the script for some time now, since early development. I have successfully used the script for periods of over 6 months continuous with very little problems (previously documented in this forum).

I have two questions:

The latest script has the logging file layout changed, most notable the voltage measurements and comma delimitation. This is how it looks now:

Code: [Select]
Sun Jul 19 17:15:02 2015; S:60 tv:1/200 f7.8 ISO:93 bv:931 V:3.6 T:9
This is how it was, which is much better:

Code: [Select]
Wed Jul  8 15:45:03 2015; Shot; 140; tv:1/400; t844; a289; s401; b732; V3504; T17
The new style makes it harder to import into Excel for graphing. a simple ; delimitation was all that was needed. However, most importantly the Voltage is now 1 decimal place, which means you cant graph the voltage accurately. I use solar panels for my cameras and need to see how the voltage changes over the day and to correctly size the panel for its location. I cant do this at 1 d.p. If this cant be change, i could go back to an older script version, but where should i change the script to output like the old format or x.xxx for example:

Second Question:

A 20 minute time period for images is actually my optimum, which is not an option in the script. I looked at the code and could not figure out the various bits where this can be changed. Any chance it can be included in the next version?

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #332 on: 18 / October / 2015, 21:37:17 »
The new style makes it harder to import into Excel for graphing. a simple ; delimitation was all that was needed.
Noted - I believe I changed things to use "real world units" rather than APEX96.  Which I think helps.  But importing into a spreadsheet needs a consistent delimiter - including spaces incidentally.  I'll take a look and come up with something that should import more easily. 
Quote
However, most importantly the Voltage is now 1 decimal place, which means you cant graph the voltage accurately.
I'll fix that too.

Quote
A 20 minute time period for images is actually my optimum, which is not an option in the script. I looked at the code and could not figure out the various bits where this can be changed. Any chance it can be included in the next version?
Consider it done.

Update :  modified script attached.
« Last Edit: 18 / October / 2015, 23:53:25 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #333 on: 19 / October / 2015, 06:50:55 »
Thanks for the quick reply and update.

I am about to test my second version of the solar powered camera controller i developed and will run the camera for another 6 month period. I'll test the new script and report back any problems/suggestions.

Thanks again

*

Offline jules

  • **
  • 73
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #334 on: 25 / October / 2015, 23:54:54 »
Hi waterwingz, Thank you again for this excellent script. It is working well for me. However, for a temporary situation, I would like to modify the script to enable shutdown after a certain number of days.

My simple-minded approach: specify max_days, set day_count = zero, increment day_count+1 at midnight rollover, test whether day_count > max_days, if yes then shut down.

However, I suspect day_count will re-set to zero at each reboot.

Is there some way I can get the script to preserve day_count value during reboot?

Is there a better way to tackle this?

I will be very grateful for your advice!

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #335 on: 26 / October / 2015, 18:19:48 »
Hi waterwingz, Thank you again for this excellent script. It is working well for me. However, for a temporary situation, I would like to modify the script to enable shutdown after a certain number of days.  My simple-minded approach: specify max_days, set day_count = zero, increment day_count+1 at midnight rollover, test whether day_count > max_days, if yes then shut down.
However, I suspect day_count will re-set to zero at each reboot.
You are correct - that is not going to work for exactly the reason you specified. 

Quote
Is there some way I can get the script to preserve day_count value during reboot? Is there a better way to tackle this?
The most obvious thing that comes to mind is to create a small file on the SD card  ( A/BOOTDATE.TXT) when the script starts and then write the desired shutdown date to the first line of the file.  If the script is starting up as a result of a restart (rather than initial start), or the file exists, don't write anything.   Then each time you go to shut down,  read that file and if the date is "today" then delete the file and shut down rather than reboot.

Edit : if I was going to implement this,  I'd add a suitable warning message to the GUI display indicating a permanent shutdown coming up in "n" days.
« Last Edit: 26 / October / 2015, 19:21:07 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline jules

  • **
  • 73
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #336 on: 27 / October / 2015, 22:24:22 »
Many thanks, waterwingz. That sounds good and I will try to implement it... but I need to learn more about lua scripting first.

One more question please, what happens if the SD card gets filled to capacity while ultimate intervalometer is running?

Edit: Apologies if the answer should be obvious. Not to me. From a few short tests with ultimate v 1.10 it seems the script continues to run after card is full, although it does not write more images.  Perhaps I have unknowingly messed up somewhere?

If the newest version script does not already do so, perhaps a future enhancement could include shut down the camera after card is full (similar to the scripted shut down for low voltage).


Thank you again!
« Last Edit: 28 / October / 2015, 19:01:36 by jules »

Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #337 on: 28 / October / 2015, 19:07:25 »
That sounds good and I will try to implement it... but I need to learn more about lua scripting first.
Nice to see you are willing to give it a go.  If you like, I can make the necessary changes to speed things up?

Quote
One more question please, what happens if the SD card gets filled to capacity while ultimate intervalometer is running?
Not much.  The script continues running and trying to take pictures.  But no more images are stored (obviously).

Quote
Edit: Apologies if the answer should be obvious. Not to me. From a few short tests with ultimate v 1.10 it seems the script continues to run after card is full, although it does not write more images.  Perhaps I have unknowingly messed up somewhere?
You have not messed up.  That's just what it does - there is no code looking at SD card space and the script doesn't care.

Quote
If the newest version script does not already do so, perhaps a future enhancement could include shut down the camera after card is full (similar to the scripted shut down for low voltage).
Should be quite do-able with the other change mentioned above.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline jules

  • **
  • 73
Re: Ultimate Intervalometer - a script for shooting over a long duration - v2.0
« Reply #338 on: 28 / October / 2015, 19:17:47 »
I'm keen to try but in the baby-steps stages with lua... making very low progress... 

I'd like to use the proposed changes with cameras I'm currently running so I would be super-grateful if you can add:
  option for camera shutdown after user-specified max_days
  camera shut-down when card is full

Many thanks for so much help!


Ultimate Intervalometer - a script for shooting over a long duration - v3.2
« Reply #339 on: 31 / October / 2015, 18:20:32 »
Version 3.2 released at the usual download link.

Changes include :
  • Support for shutting down the camera after a specified number of days (works across camera resets originated by the script).
  • Automatic shutdown of camera when the SD card is full
  • Debug test mode that runs in fast simulated time
  • Log file cleanups to include count of total elapsed days and file name of each image
  • Console display cleanup to limit each update to on line only
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal © 2008-2014, SimplePortal