OpenALPR Tool - Save and Query CSV Exports Steps I took To Get Mine Working. ZERO Programming Experience.

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
I am not sure what is wrong. LPR downloader is working, I also know the connection string is correct I verified with this script


# Define the connection string
$connectionString = "Data Source=.\SQLEXPRESS;Initial Catalog=LPR;Persist Security Info=True;Integrated Security=true"

# Create a new instance of SqlConnection
$connection = New-Object System.Data.SqlClient.SqlConnection $connectionString

try {
# Attempt to open the connection
$connection.Open()

# If the connection state is Open, the test is successful
if ($connection.State -eq "Open") {
Write-Host "Connection test successful."
}
}
catch {
# Catch and display exception if the connection fails
Write-Error "Connection test failed: $_"
}
# Ensure the connection is closed if it was opened, within the try or catch block as needed
if ($connection.State -eq "Open") {
$connection.Close()
}



1706365273709.png


1706364938850.png
1706364974525.png

1706365011828.png
 

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,476
Reaction score
2,132
Location
SF BayArea, USA
Please ensure that the Viewer Connection String is set to "Data Source=.\SQLEXPRESS;Initial Catalog=LPR;Persist Security Info=True;Integrated Security=true." Additionally, click on "All" Under date range and then Click "search for license plate data" This is to verify if the range of the imported plates are from different day or something.
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
Please ensure that the Viewer Connection String is set to "Data Source=.\SQLEXPRESS;Initial Catalog=LPR;Persist Security Info=True;Integrated Security=true." Additionally, click on "All" Under date range and then Click "search for license plate data" This is to verify if the range of the imported plates are from different day or something.
No dice - Connection string is correct. I started again with the lpr viewer build and had forgot that I got this screen.

1706377608996.png
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
.net framework it was targeting installed. Still no dice - same issue as before,
1706378281004.png
1706378302673.png
 
Last edited:

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,476
Reaction score
2,132
Location
SF BayArea, USA
Is downloader still Updating automatically ? In the background ?

Do you know what is the latest plate ? Which came thru ?

If. Yes Can you see that plate in SQL table ?


Or maybe try to run this query and see if any results shows up..

SELECT *
FROM LPR_PlateHits
WHERE CONVERT(DATE, epoch_time_start) >= '2024-01-27'
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
Is downloader still Updating automatically ? In the background ?

Do you know what is the latest plate ? Which came thru ?

If. Yes Can you see that plate in SQL table ?


Or maybe try to run this query and see if any results shows up..

SELECT *
FROM LPR_PlateHits
WHERE CONVERT(DATE, epoch_time_start) >= '2024-01-27'
I see the latest plate in the downloader. I think you're on the something. This is the result of the sql query

1706379628456.png
 

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,476
Reaction score
2,132
Location
SF BayArea, USA
Aaha, So yeah you have no Entries for those dates.. Lets try this.



SELECT *
FROM LPR_PlateHits
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
which is weird the downloader is working and connection string is correct.

1706380152885.png
 

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,476
Reaction score
2,132
Location
SF BayArea, USA
You have no entries, that is why Blank On the Viewer. Well try to download the CSV from Rekor and than try to upload CSV file manually. Want to see if than any entries shows up. Also does the Downloader has the right database "LPR" ? Also your local Webserver imports imports on the downloader timer says not running can you start that as well ?
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
You have no entries, that is why Blank On the Viewer. Well try to download the CSV from Rekor and than try to upload CSV file manually. Want to see if than any entries shows up. Also does the Downloader has the right database "LPR" ? Also your local Webserver imports imports on the downloader timer says not running can you start that as well ?
from the downloader - Manual upload didnt work. Should that be .\SQLEXPRESS\LPR?
1706380545261.png
 

tech101

Known around here
Joined
Mar 30, 2015
Messages
1,476
Reaction score
2,132
Location
SF BayArea, USA
Close your downloader.

Under your build file folder there is a config file. Make sure that is

Code:
<add key="SqlCon" value="Data Source=.\SQLEXPRESS;Initial Catalog=LPR;Persist Security Info=True;Integrated Security=true" />
For the connection string for downloader. Start the downloader.

Also when you say Manual upload didn't work Any error ? Check also on the Event Viewer if that throws any error there.

Does Local WebServer Import work?
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
Close your downloader.

Under your build file folder there is a config file. Make sure that is

Code:
<add key="SqlCon" value="Data Source=.\SQLEXPRESS;Initial Catalog=LPR;Persist Security Info=True;Integrated Security=true" />
For the connection string for downloader. Start the downloader.

Also when you say Manual upload didn't work Any error ? Check also on the Event Viewer if that throws any error there.

Does Local WebServer Import work?
no error or anything in event viewer


Not sure on local import but this is from the webserver. Its pulling the files.
1706381382071.png
1706381136009.png
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
I did notice on the lpr downloader when I hit start the timer nothing happens
1706381304247.png
 

anonymoosed

Getting the hang of it
Joined
Jan 23, 2024
Messages
86
Reaction score
33
Location
US
Push alerts and NSSM installed. For those reading the issue I was having showed up in event viewer. Two of the field IDs needed to change. PK & Site_ID. They had the wrong field type set in the default run me script.
 
Top