-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappsettings.sample.json
More file actions
78 lines (74 loc) · 2.37 KB
/
Copy pathappsettings.sample.json
File metadata and controls
78 lines (74 loc) · 2.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"_README": "Sample CloudPrint configuration showing inbound printing (SQS) AND outbound device telemetry coexisting on one station. Copy the 'CloudPrint' section into src/CloudPrint.Service/appsettings.json and fill in credentials, queue URLs, COM ports, and VID/PID. This file is documentation only and is NOT loaded at runtime.",
"CloudPrint": {
"Transport": "sqs",
"Region": "us-east-1",
"AwsAccessKeyId": "AKIA...",
"AwsSecretAccessKey": "...",
"VisibilityTimeoutSeconds": 300,
"Printers": [
{
"PrinterName": "Zebra_ZP500",
"QueueUrl": "https://sqs.us-east-1.amazonaws.com/123456789012/cloudprint-shipping-pc-01-zebra-zp500",
"PdfRenderDpi": 203,
"PdfFitMode": "PhysicalPage",
"PdfMonochrome": true,
"PdfPaperSize": "4x6"
}
],
"PdfRenderDpi": 300,
"PdfFitMode": "Margins",
"PdfMonochrome": false,
"PdfPaperSize": "",
"Station": "shipping-pc-01",
"DevicePollIntervalMs": 500,
"DeviceStableOnly": true,
"Devices": [
{
"Name": "scale-shipping",
"Type": "serial-scale",
"Protocol": "mt-sics",
"ComPort": "COM3",
"BaudRate": 9600,
"Parity": "None",
"DataBits": 8,
"StopBits": 1,
"LineEnding": "crlf",
"PollMode": "request",
"RequestCommand": "S",
"InitCommands": [ "Z" ],
"Output": {
"Transport": "sqs",
"QueueUrl": "https://sqs.us-east-1.amazonaws.com/123456789012/cloudprint-shipping-pc-01-scale-shipping"
}
},
{
"Name": "scale-counter",
"Type": "hid-scale",
"Vid": 2338,
"Pid": 24613,
"PollMode": "stream",
"StableOnly": true,
"Output": {
"Transport": "http",
"WebhookUrl": "https://wms.example.com/api/readings",
"HeaderName": "X-Api-Key",
"HeaderValue": "replace-with-secret"
}
},
{
"Name": "generic-serial-device",
"Type": "serial-raw",
"ComPort": "COM5",
"BaudRate": 9600,
"LineEnding": "cr",
"PollMode": "stream",
"Pattern": "^(?<value>\\d+(?:\\.\\d+)?)\\s*(?<unit>[A-Za-z]+)$",
"Output": {
"Transport": "sqs",
"QueueUrl": "https://sqs.us-east-1.amazonaws.com/123456789012/cloudprint-shipping-pc-01-generic"
}
}
]
}
}