setting the time on a cheap bike DVR

This DVR is a fine ebay noname special, and the way to set the time is to create a file tag.txt with the following format

[date] 
2014/07/27 
15:43:24

1407_BIKECAM_DSCN2474

Using information from here

I modded Scott Paterson’s batch file; the key change was

(echo [date] && echo %TheDate% && echo %DVtime%)>TAG.TXT

using multiple echo commands to get the newlines right. This works using my camera if the tag.txt file is moved to the very root of the device, and it is switched off an on again.

If you don’t have the exact same model, there seem to be a load of different types of camera take a look a Chuck Lohr’s site to find out if you have one of the alternatives. Mine is probably a #3

1407_bikecam

REM ---------- Get the Date & Times in the "Mini DV" format--------------------

Set TheTime=%Time%
REM Set TheTime= 1:00:00:00
REM ECHO %TheTime%
ECHO.
ECHO.
for /f "tokens=1-5 delims=/ " %%1 in ("%Date%") do Set TheDate=%%3/%%2/%%1
for /f "tokens=1-5 delims=:. " %%1 in ("%TheTime%") do Set AMtime=0%%1:%%2:%%3
for /f "tokens=1-5 delims=:." %%1 in ("%TheTime%") do Set PMtime=%%1:%%2:%%3

Set/A Hour=%TheTime:~0,2%
If %Hour% LSS 10 Set DVtime=%AMtime%
If %Hour% GEQ 10 Set DVtime=%PMtime%
REM Echo DV Time = %DVtime%

REM ----------------- Send the Date & Time to the Mini DV----------------------

If Exist TAG.TXT Del TAG.TXT
rem if Not exist DCIM ECHO ERROR - The DCIM Directory Does not Exist.
rem if Not exist DCIM GoTo Exit
ECHO The following time will be saved in the "TAG.TXT" File.
ECHO [date]
ECHO %TheDate%
ECHO %DVtime%
(echo [date] && echo %TheDate% && echo %DVtime%)>TAG.TXT
rem ECHO %TheDate% %DVTime%>TAG.TXT
ECHO.
If Exist TAG.TXT Echo The time was Successfully Saved.
If Not Exist TAG.TXT Echo The time was Not Copied to the Mini DV
If Not Exist TAG.TXT Goto Exit
ECHO.
ECHO.
ECHO To update the time, EXIT quickly and then
ECHO turn the Mini DV "OFF" and "ON" quickly to minimize
ECHO the error due to the time elapsed prior to the update.
ECHO.
Echo The time will be updated.
Echo The "TAG.TXT" file will be deleted.
ECHO.
ECHO To EXIT
:Exit
Pause

Leave a Reply

Your email address will not be published. Required fields are marked *