first commit
This commit is contained in:
20
lua/Archives/script_time_Camera.old
Executable file
20
lua/Archives/script_time_Camera.old
Executable file
@@ -0,0 +1,20 @@
|
||||
commandArray = {}
|
||||
|
||||
--recupere les minutes
|
||||
time=os.time()
|
||||
minutes=tonumber(os.date('%M',time))
|
||||
heures=tonumber(os.date('%H',time))
|
||||
|
||||
pid=os.execute('cat /home/pi/motion/motion.pid')
|
||||
|
||||
print("Motion pid= "..switch)
|
||||
------------------------------------------------------------------------
|
||||
|
||||
if (pid == 0) then
|
||||
commandArray['Camera1']='Off'
|
||||
else
|
||||
commandArray['Camera1']='On'
|
||||
end
|
||||
|
||||
|
||||
return commandArray
|
||||
Reference in New Issue
Block a user