Thanks, I will pay attention and continue to improve my script.
basically I have 3 main problems that i want to resolve.
1. The temperature problems. The camera elph 115 seems to work good even at 100F outside but it's not clear why it happens - due to external fan or due to small ccd temperature. I know that regular surveillance cameras use embedded fan and heater but I don't understand how fan can cool dowh camera temperature and particularly within the closed case.
2. When camera is taking video and power is suddenly disconnected - the video file will be lost and memory card can have some error. It's not bad but it would be nice to avoid this possibility.
May be It's possible to avoid this case by using large capacitor with power supply. If power supply is disconnected capacitor will continue to supply power and voltage will drop exponentially but not immediately. In this case I think it's possible to measure the voltage during the video and if it drops by 10% may be it's possible to finish video in a nice way using capacitor energy for a second.
3. I noticed that cheap memory cards do not work well. The cheap memory card can work good for a few months but sometimes it hangs up with "memory card error" . I didn't have this problem with expensive and fast memory cards yet
. Still it would be nice to avoid this case with the help of program but I don't know how. I would appreciate if somebody have Idea how to reset camera automatically from the "memory card error" state.