Advertisement
penright

Untitled

Oct 3rd, 2023
1,687
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 1.98 KB | None | 0 0
  1.     Sub FixCamManager()
  2.         DeleteIfExists("c:\iris\ini\CamManager.INI")
  3.         Dim CamManagerIni As New PrivateIniFile("c:\iris\ini\CamManager.INI")
  4.         CamManagerIni.WriteString("CamManager", "LogLevel", "1")
  5.         CamManagerIni.WriteString("CamManager", "Port", "9659")
  6.         '****************************************************************************
  7.         'Paul E. 8/18/2021
  8.         ' After the temp change Patrick made, we discuss it and added a aux key to the POSConfig files
  9.         '  The rule is empty key/value will default to old URL "PictureCatch.cgi?;username=admin&password=WHBAlcom12230&channel=1"
  10.         '              Currently the only other expected UR is "images/snapshot.jpg"
  11.         CamManagerIni.WriteString("Camera1", "url", "http://" & PosMaint.StoreIP & ".18/" & PosMaint.GeovisionCaptureURL)
  12.         CamManagerIni.WriteString("Camera2", "url", "http://" & PosMaint.StoreIP & ".19/" & PosMaint.GeovisionCaptureURL)
  13.  
  14.  
  15.         'Old Code, can be removed after some time.
  16.         'This was a change for the GV-TDR2700 cameras. PCROMIE 8/12/2021
  17.         'The camera config has the HTTP protocol turned off which means it will not ask for Authentication. Might need to revisit
  18.         'CamManagerIni.WriteString("Camera1", "url", "http://" & PosMaint.StoreIP & ".18/images/snapshot.jpg?;username=admin&password=WHBAlcom12230&channel=1")
  19.         'CamManagerIni.WriteString("Camera2", "url", "http://" & PosMaint.StoreIP & ".19/images/snapshot.jpg?;username=admin&password=WHBAlcom12230&channel=1")
  20.         'CamManagerIni.WriteString("Camera1", "url", "http://" & PosMaint.StoreIP & ".18/PictureCatch.cgi?;username=admin&password=WHBAlcom12230&channel=1")
  21.         'CamManagerIni.WriteString("Camera2", "url", "http://" & PosMaint.StoreIP & ".19/PictureCatch.cgi?;username=admin&password=WHBAlcom12230&channel=1")
  22.  
  23.         '****************************************************************************
  24.  
  25.         CamManagerIni = Nothing
  26.         CopyINIToRegInfo("CamManager.ini")
  27.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement