Been tinkering with the camera on piCore again.
Turns out there is a circular buffer mode for raspivid
Still got to figure out how to trigger it from a PIR detector.
Not sure if I really need it yet, on piCore raspivid starts up quite fast, <1sec?
This should be ok for people PIR recording.
Change cp command to copy to external usb stick?
Send vids to network drive?
Off to the hardware store to get this for a case if it is big enough.
https://www.masters.com.au/product/900044483/chamberlain-motion-activated-light-blackLED spot lights are starting to take over, get the cheap halogens before they go.
With the above case, throw away halogen and get some IR LEDS for night vision.
Got a NOIR camera to test as well.
Now trying to figure out how to make simple servo/solenoid based IR filter lens cover.
Daytime, filter is over lens, night time filter removed and LEDS triggered.
Clip on mobile phone wide angle/macro lens works quite well for the price, 160 degree angle.
Use Busybox-httpd to serve still pictures for testing?
#!/bin/sh
raspivid -c -o buffer.h264 -k -t 5000 -b 10000000
timepic=$( date +"Cam5_%y_%m_%d-%H:%M:%S" )
cp buffer.h264 $timepic.h264