You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added REALTIME option for viewing snapshots thru web
Now you can watch any camera for new valid snapshots in realtime. It uses SignalR for keeping each web client updated on any new snapshot.
It is faster than any external notification (like -say- Telegram) so it is an interesting addition i.e. "to see who's at your door" or similar.
I also renamed some webpages so they make more sense.
_logger.LogInformation($"{id}: Valid object found in snapshot {snapshotCount} of {Config.MaxSnapshots} at EVENT TIME {overallStopwatch.ElapsedMilliseconds}ms.");
Copy file name to clipboardexpand all lines: SynoAI/Views/Home/Hour.cshtml
+3-2
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
graphDraw.GraphXAxisHeight=24;
8
8
graphDraw.GraphYAxisWidth=24;
9
9
graphDraw.GraphYSteps=5;
10
+
stringcamera=ViewData["camera"].ToString();
10
11
}
11
12
<!DOCTYPE html>
12
13
<htmllang="en">
@@ -25,7 +26,7 @@
25
26
</head>
26
27
<body>
27
28
<h2>SynoAI Report</h2>
28
-
<h4>Data for camera @ViewData["camera"] on date @ViewData["year"]-@ViewData["month"]-@ViewData["day"] @@ @ViewData["hour"] Hs. presented on @DateTime.Now</h4>
29
+
<h4>Data for camera @camera <ahref="/@camera/RT">(View in realtime)</a> on date @ViewData["year"]-@ViewData["month"]-@ViewData["day"] @@ @ViewData["hour"] Hs. presented on @DateTime.Now</h4>
Copy file name to clipboardexpand all lines: SynoAI/Views/Home/Minute.cshtml
+3-2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
@usingSystem
3
3
@{
4
4
DateTimedate= (DateTime)ViewData["date"];
5
+
stringcamera=ViewData["camera"].ToString();
5
6
}
6
7
7
8
<!DOCTYPE html>
@@ -14,7 +15,7 @@
14
15
</head>
15
16
<body>
16
17
<h2>SynoAI Report</h2>
17
-
<h4>Snapshots for camera @ViewData["camera"] on date @date.ToString(@"yyyy-MM-dd") @@ @date.ToString(@"HH\:mm") Hs. presented on @DateTime.Now</h4>
18
+
<h4>Snapshots for camera <ahref="/@camera/RT">(View in realtime)</a> on date @date.ToString(@"yyyy-MM-dd") @@ @date.ToString(@"HH\:mm") Hs. presented on @DateTime.Now</h4>
0 commit comments