Simple periodic image grab

I recently upgraded to Ventura and discovered after-the-fact that PHP no longer comes bundled. (I was previously running Big Sur.) In earlier macOS' Apache, I had a short PHP file written and called from some HTML to pull a still image from SS so that the link to the SS server was essentially hidden. As an alternative, I can get by with a simple periodic image capture from the camera every 30 seconds or so, saved to a fixed-name file (e.g. image.jpg) within my ~/Sites folder, but I can't quite figure out how to do this. I suspect this will involve scheduling but I can't seem to wrap my head around how this works in SS. Any help is appreciated.

Thanks.

Comments

  • Here's how to configure this in SecuritySpy:

    • Set up an "upload" destination that points to your ~/Sites folder (see Preferences - Uploads and scroll down a bit to the Local File System Copy section).
    • Under Preferences - Cameras - Continuous Capture, configure the Webcam image option to save files to this location every 30 seconds.
    • Assuming you don't also want continuous movie/image capture, make sure that the Movie capture and Image capture options in this section are turned off.
    • Set the schedule for Continuous Capture for this camera to Armed 24/7. You can do this by clicking on the "C" indicator that you will see next to the camera in the Camera Info window and in video windows. When this is armed correctly, the "C" indicator will turn red.
  • Does the "homebrew" third-party package manager not have PHP? It seems to (https://formulae.brew.sh/formula/php) If you haven't installed homebrew, it's worth a look - drop-dead simple access to a lot of common apps that don't come with MacOS standard ,and which are difficult to compile or install.