Code: Select all
# take one still photo every other hour 7am-5pm
0 7-17/2 * * * echo "still" > /home/pi/pikrellcam/www/FIFO
Code: Select all
17:00:01 : command_process: still
17:00:01 : Still: /home/pi/pikrellcam/media/stills/image_2019-08-16_17.00.01_107.jpg
17:00:02 : Low disk space, deleted: /home/pi/pikrellcam/media/stills/image_2019-08-16_17.00.01_107.jpg
Code: Select all
[email protected]:~/pikrellcam/media/archive/2019 $ du -d 1
543972 ./08
583252 ./06
1540832 ./07
2668060 .
Code: Select all
install_dir /home/pi/pikrellcam
media_dir media
archive_dir archive
diskfree_percent 40
check_media_diskfree on
check_archive_diskfree on
EDIT: Aha! I changed one line in the .conf file to "check_media_diskfree off" and manually recorded some video, and now the log shows it made room by deleting the oldest archive file from some months ago, instead of what was just recorded. I think I have my answer.
Code: Select all
00:17:04 : Manual record stop (size:0.1MB < /tmp:2381.4MB) vid_time:20.25 vid_fps:24.00 audio_frames:0 audio_rate:0
convert /run/pikrellcam/manual_2019-08-17_00.16.44_0.jpg -resize 150x84\! /home/pi/pikrellcam/media/thumbs/manual_2019-08-17_00.16.44_0.th.jpg
00:17:05 : Low disk space, deleted: /home/pi/pikrellcam/media/archive/2019/06/01/videos/motion_2019-06-01_18.21.43_289.mp4