-
Notifications
You must be signed in to change notification settings - Fork 0
/
prc<TEMPLATE>.ini
347 lines (298 loc) · 7.18 KB
/
prc<TEMPLATE>.ini
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
[general]
# This is needed for push-notifications, must be unique for this server in your (lan) setup
serverId=<string to identify your server instance>
# Configure the sensor / actor counts here. Each sensor actor must have a section in
# this file e.g. switch_1, switch_2,...
switchCount=0
fs20Count=0
peerCount=0
ultrasonicCount=0
temperatureCount=0
netioCount=0
hms100tCount=0
hms100tfCount=0
cameraCount=0
rpiCam=0
bmp180Count=0
awningCount=0
chromeCastCount=0
#keruiCount=0
# to be removed
fs20Data=<adjust this path>/fs20.json
# Path & Name of SQLite Database, path must exist & be writeble
database=/root/dev/prc/prc.db
# directory to sql scripts. The file createTables.sql will be read and executed if the database
# file does not exist.
sqlScripts=<adjust this path>/sql
certFile=<adjust this path>/ssl/server.crt
keyFile=<adjust this path>/ssl/server.key
clientCertFile=<adjust this path>/ssl/ca.crt
# convenience for shellcmds - address is passed in params to make api calls simpler
address=https://<your ip goes here>:8020/prcapi
# url used for serving content for chromecast
addressNoSSL=http://<your ip goes here>:8019/prcweb
# base path of installation:rel path to backup from other peers:file:file:...:path/:path/:...
peerBackup=<adjust this path>/:backup/:prc.ini:prc.db:ssl/:shellCmds/
streamWorkDir=
openRTSPCmd=
ffmpegCmd=
MP4BoxCmd=
[webServer]
default=index.html
webRoot=<adjust this path>/www
headline=<your servername here>
[pushNotification]
# 1 / yes = enable messaging -
# default no
#enable=
# path + /serviceAccountKey.json from firebase console / service accounts (no default)
privateKey=
# key from firebase console project settings / cloud messaging /server key (no default)
apiKey=
# taken from firebase console / project settings (no default)
projectId=
# taken from firebase console / cloud messaging (no default)
publicKey=
# path + /service_account.json form firebase console / service accounts (no default)
serviceAccountFile=
# we are using HTTP v1 -> project specific url (%s in url will be replaced by value of key projectId
# default https://fcm.googleapis.com/v1/projects/%s/messages:send
#url=
# tell firebase what we are using
# default: https://www.googleapis.com/auth/firebase.messaging
#scopes=
# subscribe a client / browser to a topic
# default https://iid.googleapis.com/iid/v1/%s/rel/topics/%s % (projectId, <topicName>)
#urlSubscribe=
# unsubscribe a client / browser from topic
#default https://iid.googleapis.com/iid/v1/%s/rel/topics/%s % (projectId, <topicName>)
#urlUnsubscribe=
# list subscriptions for a client token
# default https://iid.googleapis.com/iid/info/%s?details=true
#urlGetSubscriptions=
[realtimeDB]
# default is no
#enable=yes
#url to firebase realtime db
databaseUrl=
# key file from firebase console
serviceAccountFile=
# helper words
more=more
less=less
#list of keys to be added to firebase realtime db
# key values are copied into db on start of server
googleActionParameters=<key>:<key>...
<key>=<value>
[chromeCast_1]
friendlyName=<name of device - find on TV lower left corner in IDLE mode>
callName=<name of device to be used with Google Assistant
[Cuno]
enable=yes
host=<ip address>
port=2323
ignore=<addresses to ignore>
[mqtt]
# uncommment to enable MQTT functionality
#enable=yes
host=<ip address>
# port default is 1883
#port=1883
# keepAlive default is 60 seconds
#keepAlive=
#public events default is no
#publish=yes
[kerui]
#enable=yes
# filterDuplicates defaults to true
#filterDuplicates=False
# logUnknowDevices defaults to true
#logUnknownDevices=False
# usbPort is an array. All ports are tried until successfull connection
# re-plug of arduino may result
#usbPort=/dev/ttyUSB0:/dev/ttyUSB1
# with forward you can have multiple receivers around your place. Forward address = is processed at that server
#forward=<https://other prc server
[switch_1]
gpio=<gpio number>
name_de=<desc german>
name_en=<desc english>
name_pl=<desc polish>
[peer_1]
name_de=
name_en=
name_pl=
address=
# optional key: specfify this when peer is PRC
roamingAddress=https://<ip>/prcapi
[fs20_1]
name_de=
name_en=
name_pl=
address=
# specify this, if Cuno is to be used for sending
#useCuno=1
[ultrasonic_1]
name_de=
name_en=
name_pl=
min=5
max=45
inverse=true
[temperature_1]
name_de=
name_en=
name_pl=
address=28-000006nnnnnn
min=-5
max=40
# Topic for publishing with MQTT
mqttTopic=
# payload to publish
mqttPayload={ "temperature" : %.2f }
[netio_1]
name_de=
name_en=
name_pl=
address=<ip>:<port>:<plug>
id=<user>:<password>
[hms100t_1]
name_de=
name_en=
name_pl=
address=
[hms100tf_1]
name_de=
name_pl=
name_en=
address=
# Topic for publishing with MQTT
mqttTopic=
# payload to publish
mqttPayload={ "temperature" : %.2f, "humidity" : %.2f }
[ksh300_1]
name_de=
name_pl=
name_en=
address=
googleActionVerbs=<colon(:) separated list of strings to be matched by a google action parameter>
googleActionResponses=The outside temperature is {temperature} degree celsius, the humidity is {humidity} percent. Measured {ago}.:
separate responses bei a colon. Multiline values need to have a four char indentation starting with the 2nd line
# Topic for publishing with MQTT
mqttTopic=
# payload to publish
mqttPayload={ "temperature" : %.2f, "humidity" : %.2f }
[fs20Sensor_1]
name_de=
name_pl=
name_en=
address=
shellCmd=
# no fcm message notify
disableNotify=1
peerSensors=<other sensor>
shellCmd=<path to script>:<status of sensor / actor>:<status ...>
[bmp180_1]
name_de=
name_en=
name_pl=
[awning_1]
name_de=
name_en=
name_pl=
address=
[camera_1]
name_de=
name_pl=
name_en=
enableTimelapse=yes
snapshotAddress=
streamAddress=
timelapseMP4=
timelapseCodec=
timelapseJPGs=
# default is 6 hours
#timelapseHours=
[rpiCam_1]
name_de=
name_pl=
name_en=
[kerui_1]
name_de=
name_pl=
name_en=
# Address for kerui is an array to compensate varying IDs due to the unreliable transmission
address=<address 1>:<address 2>:...
disableNotify=1
shellCmd=/root/dev/prc/shellCmds/teraceLight.sh:fs20_2
[zigbee_1]
name_de=
name_pl=
name_en=
topic=
[shellCmds]
count=1
shellCmd_1=<id>:<path to script>:<status of sensor / actor>:<status ...>
[dictionary_de]
txt_1=Schalter
txt_2=[Relais]
txt_3=[FS20]
txt_4=Abstand
txt_5=[Ultraschall]
txt_6=Temperatur
txt_7=[DS18B20]
txt_8=Links
txt_9=Information
txt_10=Menü
txt_11=Relais Board Schalter
txt_12=FS20 Schalter
txt_13=Ultraschall
txt_14=Temperatur (DS18B20)
txt_15=NetIO230 Schaltleiste
txt_16=[NetIO230]
txt_17=Temperatur
txt_18=Temperatur
txt_19=Temperatur
txt_36=Zigbee Schalter
[dictionary_pl]
txt_1=Przekaźnik
txt_2=[Relais]
txt_3=[FS20]
txt_4=Dystans
txt_5=[Ultradźwięk]
txt_6=Temperatura
txt_7=(DS18B20)
txt_8=Inne strony Internetowe
txt_9=Informacja
txt_10=Menu
txt_11=Przekaźnik Przełączający
txt_12=FS20 Wyłącznik
txt_13=Ultradźwięk
txt_14=Temperatura (DS18B20)
txt_15=Listwa zasilająca
txt_16=[NetIO230]
txt_17=Temperatura
txt_18=Temperatura
txt_19=Temperatura
txt_36=Zigbee Wyłącznik
[dictionary_en]
txt_1=Switches
txt_2=[Relay]
txt_3=[FS20]
txt_4=Distance
txt_5=[Ultrasonic]
txt_6=Temperature
txt_7=[DS18B20]
txt_8=Links
txt_9=Information
txt_10=Menu
txt_11=Relay Board Switches
txt_12=FS20 Actors
txt_13=Ultrasonic
txt_14=Temperature (DS18B20)
txt_15=NetIO230 Power Strip
txt_16=[NetIO230]
txt_17=Temperature
txt_18=Temperature
txt_19=Temperature
txt_36=Zigbee Actors