{"id":1503,"date":"2014-07-27T15:25:35","date_gmt":"2014-07-27T15:25:35","guid":{"rendered":"http:\/\/www.richardmudhar.com\/blog\/?p=1503"},"modified":"2014-10-01T15:30:28","modified_gmt":"2014-10-01T15:30:28","slug":"setting-the-time-on-a-cheap-bike-dvr","status":"publish","type":"post","link":"https:\/\/www.richardmudhar.com\/blog\/2014\/07\/setting-the-time-on-a-cheap-bike-dvr\/","title":{"rendered":"setting the time on a cheap bike DVR"},"content":{"rendered":"<p>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<\/p>\n<pre><code>[date] \r\n2014\/07\/27 \r\n15:43:24\r\n\r\n<\/code><\/pre>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_BIKECAM_DSCN2474.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1505\" src=\"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_BIKECAM_DSCN2474-550x336.jpg?resize=550%2C336\" alt=\"1407_BIKECAM_DSCN2474\" width=\"550\" height=\"336\" srcset=\"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_BIKECAM_DSCN2474.jpg?resize=550%2C336&amp;ssl=1 550w, https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_BIKECAM_DSCN2474.jpg?resize=624%2C381&amp;ssl=1 624w, https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_BIKECAM_DSCN2474.jpg?w=863&amp;ssl=1 863w\" sizes=\"auto, (max-width: 550px) 85vw, 550px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.scottpaterson.org\/2010\/05\/setting-date-and-time-on-mini-dv-pocket.html\">Using information from here<\/a><\/p>\n<p>I modded Scott Paterson\u2019s batch file; the key change was<\/p>\n<pre><code>(echo [date] &amp;&amp; echo %TheDate% &amp;&amp; echo %DVtime%)&gt;TAG.TXT\r\n<\/code><\/pre>\n<p>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.<\/p>\n<p>If you don\u2019t have the exact same model, there seem to be a load of different types of camera <a href=\"http:\/\/www.chucklohr.com\/808\">take a look a Chuck Lohr\u2019s site<\/a> to find out if you have one of the alternatives. Mine is probably a <a href=\"http:\/\/www.chucklohr.com\/808\/C3\/index.html\">#3<\/a><\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_bikecam.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1506\" src=\"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_bikecam-550x366.jpg?resize=550%2C366\" alt=\"1407_bikecam\" width=\"550\" height=\"366\" srcset=\"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_bikecam.jpg?resize=550%2C366&amp;ssl=1 550w, https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_bikecam.jpg?resize=624%2C416&amp;ssl=1 624w, https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_bikecam.jpg?w=720&amp;ssl=1 720w\" sizes=\"auto, (max-width: 550px) 85vw, 550px\" \/><\/a><\/p>\n<pre><code>REM ---------- Get the Date &amp; Times in the \"Mini DV\" format--------------------\r\n\r\nSet TheTime=%Time%\r\nREM Set TheTime= 1:00:00:00\r\nREM ECHO %TheTime%\r\nECHO.\r\nECHO.\r\nfor \/f \"tokens=1-5 delims=\/ \" %%1 in (\"%Date%\") do Set TheDate=%%3\/%%2\/%%1\r\nfor \/f \"tokens=1-5 delims=:. \" %%1 in (\"%TheTime%\") do Set AMtime=0%%1:%%2:%%3\r\nfor \/f \"tokens=1-5 delims=:.\" %%1 in (\"%TheTime%\") do Set PMtime=%%1:%%2:%%3\r\n\r\nSet\/A Hour=%TheTime:~0,2%\r\nIf %Hour% LSS 10 Set DVtime=%AMtime%\r\nIf %Hour% GEQ 10 Set DVtime=%PMtime%\r\nREM Echo DV Time = %DVtime%\r\n\r\nREM ----------------- Send the Date &amp; Time to the Mini DV----------------------\r\n\r\nIf Exist TAG.TXT Del TAG.TXT\r\nrem if Not exist DCIM ECHO ERROR - The DCIM Directory Does not Exist.\r\nrem if Not exist DCIM GoTo Exit\r\nECHO The following time will be saved in the \"TAG.TXT\" File.\r\nECHO [date]\r\nECHO %TheDate%\r\nECHO %DVtime%\r\n(echo [date] &amp;&amp; echo %TheDate% &amp;&amp; echo %DVtime%)&gt;TAG.TXT\r\nrem ECHO %TheDate% %DVTime%&gt;TAG.TXT\r\nECHO.\r\nIf Exist TAG.TXT Echo The time was Successfully Saved.\r\nIf Not Exist TAG.TXT Echo The time was Not Copied to the Mini DV\r\nIf Not Exist TAG.TXT Goto Exit\r\nECHO.\r\nECHO.\r\nECHO To update the time, EXIT quickly and then\r\nECHO turn the Mini DV \"OFF\" and \"ON\" quickly to minimize\r\nECHO the error due to the time elapsed prior to the update.\r\nECHO.\r\nEcho The time will be updated.\r\nEcho The \"TAG.TXT\" file will be deleted.\r\nECHO.\r\nECHO To EXIT\r\n:Exit\r\nPause<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"author":1,"featured_media":1504,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[57],"tags":[80,249,250],"class_list":["post-1503","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-electronics","tag-bike","tag-bike-camera","tag-dvr"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.richardmudhar.com\/blog\/wp-content\/uploads\/2014\/10\/1407_BIKECAM_P7270183.jpg?fit=1024%2C650&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5aOO7-of","jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/posts\/1503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/comments?post=1503"}],"version-history":[{"count":2,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/posts\/1503\/revisions"}],"predecessor-version":[{"id":1508,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/posts\/1503\/revisions\/1508"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/media\/1504"}],"wp:attachment":[{"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/media?parent=1503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/categories?post=1503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.richardmudhar.com\/blog\/wp-json\/wp\/v2\/tags?post=1503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}