Archive

Archive for the ‘FPV (Video Flying)’ Category

Keychain Camera Date and Time Setting

May 26th, 2010 David Payne No comments

I know this has all been covered (somewhere in vastness of the internet) but I wrote a super simple application to write my Date and Time TAG.txt file for me. I thought I would share it for those that are interested.

I have had the Spy Gum camera since the early days and still use it. However a good friend of mine game me a brand new Keychain camera (green tinge to the lens) and I am thrilled — so much easier to place on the planes. Anyway, after dinking around with different Date Time files (none worked including the one in the instructions that came with it). I found one that worked:

TAG.txt

[date]
2010/05/26
23:07:10

You can download the app here: http://popularrc.com/KeyChainDateTime.zip

Source:

Imports System.Text
Imports System.IO

Public Class KCCDateTime

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim text As StringBuilder
Dim dt As DateTime
Try
dt = DateTime.Now
text = New StringBuilder()
With text
.AppendLine("[date]")
.AppendLine(dt.ToString("yyyy/MM/dd"))
.AppendLine(dt.AddMinutes(1D).ToString("HH:mm:ss"))
End With

If File.Exists("TAG.txt") Then
File.Delete("TAG.txt")
End If

File.WriteAllText("TAG.txt", text.ToString().Trim())
MessageBox.Show("Created TAG.txt File" + Environment.NewLine + Environment.NewLine + text.ToString())

Catch ex As Exception
MessageBox.Show("Error: " + ex.ToString())
End Try
Me.Close()
End Sub
End Class

  • Share/Bookmark