Skip to content

Commit aae36ad

Browse files
committed
Renamed to username since dotnet uses User as well in the IConfiguration
1 parent d6aa4d0 commit aae36ad

File tree

4 files changed

+36
-23
lines changed

4 files changed

+36
-23
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,4 @@ appsettings.Development.json
366366
PrivateNotes.txt
367367
Captures
368368
docker-compose.debug.yml
369+
.DS_STORE

.vscode/settings.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.svn": true,
5+
"**/.hg": true,
6+
"**/CVS": true,
7+
"**/.DS_Store": true,
8+
"**/node_modules": true,
9+
"**/bin": true,
10+
"**/obj": true,
11+
"**/.vscode": true
12+
}
13+
}
14+

SynoAI/Config.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public static void Generate(ILogger logger, IConfiguration configuration)
117117
{
118118
logger.LogInformation("Processing config.");
119119
Url = configuration.GetValue<string>("Url");
120-
Username = configuration.GetValue<string>("User");
120+
Username = configuration.GetValue<string>("Username");
121121
Password = configuration.GetValue<string>("Password");
122122
AllowInsecureUrl = configuration.GetValue<bool>("AllowInsecureUrl");
123123

SynoAI/appsettings.json

+20-22
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,43 @@
11
{
22
"AllowedHosts": "*",
3-
43
"Logging": {
54
"LogLevel": {
65
"Default": "Warning",
76
"Microsoft": "Warning",
87
"Microsoft.Hosting.Lifetime": "Warning"
98
}
109
},
11-
12-
"Url": "http://YourIP:5000",
13-
"User": "",
14-
"Password": "",
15-
16-
"Delay": 5000,
17-
"DrawMode": "Matches",
18-
10+
"Url": "https://192.168.1.8:5001/",
11+
"Username": "admin",
12+
"Password": "x77NdXxy$E*Q*K",
13+
"AllowInsecureUrl": true,
1914
"AI": {
2015
"Type": "DeepStack",
21-
"Url": "http://YourIP:83",
22-
"MinSizeX": 10,
23-
"MinSizeY": 10
16+
"Url": "http://192.168.1.8:83",
17+
"MinSizeX": 100,
18+
"MinSizeY": 100
2419
},
25-
2620
"Notifiers": [
2721
{
28-
"Type": "Pushbullet",
29-
"ApiKey": "0.12345xyz"
22+
"Type": "Telegram",
23+
"Cameras": [ "Voordeur", "Overkapping"],
24+
"ChatID": "885615475",
25+
"Token": "1665695926:AAEzweoCRGz5V4zzEHVDmwD36r6qT6MV35k"
3026
}
3127
],
32-
28+
"Font": "Consolas",
29+
"FontSize": 16,
30+
"FontColor": "#00FF00",
3331
"Cameras": [
3432
{
35-
"Name": "Example1",
36-
"Types": [ "Person" ],
37-
"Threshold": 50
33+
"Name": "Voordeur",
34+
"Types": [ "Person", "Car", "Dog", "Bicyle", "Motorcycle", "Bird", "Cat", "Backpack", "Handbag", "Suitcare", "Baseball bat", "Bottle", "Knife", "Pizza" ],
35+
"Threshold": 45
3836
},
3937
{
40-
"Name": "Example2",
41-
"Types": [ "Car", "Truck" ],
42-
"Threshold": 75
38+
"Name": "Overkapping",
39+
"Types": [ "Person", "Car", "Dog", "Bicyle", "Motorcycle", "Bird", "Cat", "Backpack", "Handbag", "Suitcare", "Baseball bat", "Bottle", "Knife", "Pizza" ],
40+
"Threshold": 45
4341
}
4442
]
4543
}

0 commit comments

Comments
 (0)