Yes, it takes snapshots and uploads them to the FTP server defined in the camera setup area. The snapConfig commands specify interval, save locations, and schedules.
The camera stays put until it’s told where to go next. For this scene, it turns and watches the back door entrance, then the assumption is that the activity doesn’t stay at the back door, so I have it turn to watch the couch, where it can see the front door and the dining room.
During this whole process, the camera normally takes snaps every 10 seconds. When tripped, the scene tells it to take one per second.
The most difficult part of all this was the calculations required to set the scheduleN variables. These values correspond to the grid schedule outlined in the foscam configuration, basically telling it that all hours of all days are to be recorded. These get turned off when the system isn’t in a state of heightened alert.
As far as making it patrol at set intervals, you’d need to setup a scene to start the patrols, then setup delays via luup.call_delay() to tell the camera to move at certain times. Using this method you’d need to define every movement, with the proper delay values set to cover the timeframe over which you want the movements to occur… e.g., one call for 15 seconds (look at door A), one at 30 seconds (switch to door B), one at 45 seconds (back to door A), 60 seconds (door B…), etc. If I recall correctly, the luup.call_delay() function starts counting from the point at which the scene is activated (not accounting for the time it takes to execute the code above the first call). So the above described situation would look something like…
-- time 0 is here
luup.call_delay("MoveToDoorA",15);
luup.call_delay("MoveToDoorB",30);
luup.call_delay("MoveToDoorA",45);
luup.call_delay("MoveToDoorB",60);
-- and that's just for the first minute
function MoveToDoorA()
-- now move it back to the DoorA.
local status, result = luup.inet.wget('http://192.168.1.201:201/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=DoorA&usr=USERNAMEHERE&pwd=PASSWORDHERE')
end
function MoveToDoorB()
-- now move it back to the Door B.
local status, result = luup.inet.wget('http://192.168.1.201:201/cgi-bin/CGIProxy.fcgi?cmd=ptzGotoPresetPoint&name=DoorB&usr=USERNAMEHERE&pwd=PASSWORDHERE')
end
Hope that helps.