rem Author - JoeD, based on original script by Keoeeitrem x-accuracy for delay, j-accuracy for intervalrem Day of week parameters determine what days the camera takes picturesrem Proper values are from 0-6, with 0 being Sunday and 6 being Saturdayrem Script has not been optimizedx=-1j=-1755@title Ultra Intervalometer with Day of Week and Time@param a Delay 1st Shot (Mins)@default a 0@param b Delay 1st Shot (Secs)@default b 0@param c Number of Shots (0 inf)@default c 0@param d Interval (Minutes)@default d 0@param e Interval (Seconds)@default e 10@param p Starting Hour (24 Hr time)@default p 7@param q Starting Minute @default q 0@param r Ending Hour (24 Hr time)@default r 16@param s Ending Minute@default s 0@param u Day of Week to Start (0 is Sunday, 6 is Saturday)@default u 1@param v Day of Week to End (0 is Sunday, 6 is Saturday)@default v 6@param rem sets number of shots already taken to 0n=0rem calculates time in ms between each shott=(d*600+e*10)*100+jif c<1 then let c=0if t<100 then let t=100rem calculates first shot delay in secondsg=(a*60)+b+xif g<=0 then goto "interval"rem displays seconds left before shooting beginsfor m=1 to g print "Intvl Begins:", (g-m)/60; "min", (g-m)%60; "sec" sleep 930 next mgoto "interval":interval l=get_time 3 o=get_time 4 y=get_time 5 rem following lines calculate current day of week in variable w, 0 is sunday if o<3 then gosub "change" k=(l+(2*o)+(6*(o+1)/10)+y+(y/4)-(y/100)+(y/400)+1) w=k%7 if w<u or w>v then goto "weekend" rem calculate time of day, determine if it's in range i=get_day_seconds f=(p*3600)+(q*60) h=(r*3600)+(s*60) if i<f or i>h then gosub "rest" n=n+1 if c=0 then print "Shot", n else print "Shot", n, "of", c shoot if n=c then shut_down sleep t goto "interval" :change o=o+12 y=y-1 return :restdosleep 60000i=get_day_secondsuntil i>=f and i<=hreturn:weekendi=get_day_secondsz=(86400-i)goto "interval"
I'm new to the Scripting, if wanted to add this to my camera, would I paste this code in a *.lua or *.bas file? and do I need to include something other then just this code?
Started by Barney Fife
Forum related topics (including issues)
Started by outslider
« 1 2 3 »
Completed and Working Scripts
Started by Salvatore Chiarelli
Started by perspixe
« 1 2 »
Started by davoodt
General Discussion and Assistance