Automatically downloads video files from your BlackVue DashCam. It of course needs to be connected to your network, via WiFi for example.
There are two relevant parameters to configure. They are both hidden in the code, at the very top. Set $hostname to something that resolves to your camera, or its IP address. Set $destination to the directory to which you want the video files downloaded.
Schedule it by creating /etc/cron.d/BlackVue-phpDownloader and adding the following to it. Replace root with a username which does not have evelated privileges.
MAILTO=root
*/5 * * * * root /usr/bin/php -f /usr/local/BlackVue-phpDownloader/BlackVue-phpDownloader.php >/dev/null