36 lines
1.3 KiB
JSON
36 lines
1.3 KiB
JSON
{
|
|
"_Comment": "GCI DataStorage configuration",
|
|
|
|
"DataStorage": {
|
|
|
|
"MeterLoginPasswords": {
|
|
|
|
"___Documentation___": {
|
|
"Description": "Reads login passwords for meters by PCB ID",
|
|
"Type": "Supported: LocalDatabase, RemoteDatabase, LocalCsv, LocalJson, RestApi",
|
|
"DataSource": "Database connection string",
|
|
"QueryTemplate": "QUERYPARAM is placeholder for runtime value. Example: WHERE [PcbId]=QUERYPARAM -> PCB ID provided during GetPasswordAsync()."
|
|
},
|
|
|
|
"Name": "MeterLoginPasswords",
|
|
"Type": "LocalDatabase",
|
|
"DataSource": "Server=(localdb)\\MojaDB;Database=UnionTownCalibAndSkeleton;Integrated Security=True;",
|
|
"QueryTemplate": "SELECT [Password] FROM [dbo].[SkeletonKeys] WHERE [PcbId] = QUERYPARAM"
|
|
},
|
|
|
|
"PreAdjustmentCalibrationParams": {
|
|
|
|
"___Documentation___": {
|
|
"Description": "Reads pre-adjustment values from CSV",
|
|
"DataSource": "Relative path resolved from application directory",
|
|
"QueryTemplate": "CSV/JSON syntax: SELECT [ReturnColumn] WHERE [MatchColumn]=QUERYPARAM or SELECT COLUMN(1) WHERE COLUMN(0)=QUERYPARAM"
|
|
},
|
|
|
|
"Name": "PreAdjustmentCalibrationParams",
|
|
"Type": "LocalCsv",
|
|
"DataSource": "Data\\preadjustment_params.csv",
|
|
"QueryTemplate": "SELECT [Offset] WHERE [PcbId] = QUERYPARAM"
|
|
}
|
|
}
|
|
}
|