working on night and pid based time lapse
working on night