Can you post your changes? Or the complete modified script. I'm quite curious to know what you have done.
Hi waterwingz, When I modified your script for my daily shutdown trial, this is what I changed.
Added parameter:
@param z Single Day?
@default z 1
@values z 0 1
Set value in "-- translate user parameter"
day_end = z
Added my shutdown within your 15sec procedure
-- process things that happen once every 15 seconds
if ( ticmin <= now ) then
ticmin = now+15
-- manage display / backlight
set_display(0)
collectgarbage()
-- check if end of Single Day (j mod)
if (( shooting_mode == NIGHT ) and (shot_counter > 0) and (day_end == 1)) then -- close down for the day
printf("prepare for clean shutdown")
sleep(2000)
printf("end of day shut down")
post_levent_to_ui('PressPowerButton')
end -- j mod end
-- check battery voltage
Maybe you can improve on this?