Hi, just band new to CHDK (Today!) I was looking for a way to take pictures of the meter shower tonigh. I got CHDK working, and I was hoping to make a script that would combine motion detection with long exposure. I found two scripts on this site, and was hoping for some help. The .lua script looks easier to understand, but the long exposure script is only in bas. These are the two scripts I wanted to combine:
@title Motion Detect
a=6
b=6
c=1
d=300000
e=200
f=5
g=1
h=0
i=0
j=0
k=0
l=0
m=0
n=0
o=2
p=0
do
md_detect_motion a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p
if( h > 0 ) then
shoot
endif
until (0)
-----------------------
and long exposure
---------------------
rem Author - Keoeeit
rem ReAuthor - Chuck
rem USE WITH CAUTION
rem do not run for many hours or days
@title Non-stop Long Exp Timelapse
@param a Interval (Minutes)
@default a 0
@param b Interval (Seconds)
@default b 30
@param c Interval (10th Seconds)
@default c 0
@param d Initial Delay (Seconds)
@default d 3
@param e Noise reduction (0=auto 1=off 2=on)
@default e 1
@param f Capture Raw Image (0 or 1)
@default f 1
@param g ISO (-1=hi,0=auto,1=80,..,5=800)
@default g 1
t=a*60000+b*1000+c*100
if t<100 then let t=5000
n=1
print "Interval shooting."
print "Until you interrupt it."
print "Use with caution."
sleep d*1000
rem Display mode off
rem 181 Display mode (Valid for record mode only) 0 = Show info icons, 1 = Do not show info icons, 2 = LCD is off, 3 = EVF.
rem This didn't seem to work for the A560
set_prop 181 2
goto "shot"
:shot
print "Shot number", n
set_raw_nr e
set_raw f
set_iso g
set_tv96_direct -576
shoot
n=n+1
sleep t
goto "shot"
---------------------------
I have a Canon ELPH Powershot 300HS. Any assistance would be appreciated. TIA