summaryrefslogtreecommitdiff
path: root/doc/sound_sensor_server.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sound_sensor_server.md')
-rw-r--r--doc/sound_sensor_server.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/sound_sensor_server.md b/doc/sound_sensor_server.md
new file mode 100644
index 0000000..9543562
--- /dev/null
+++ b/doc/sound_sensor_server.md
@@ -0,0 +1,33 @@
+## Configuration
+
+```
+[server]
+listen = "0.0.0.0:8311"
+guard_control = true
+guard_recording_default = false
+
+[sensor_to_sound_nodes_relations]
+big_house = ['bh1', 'bh2']
+john = ['john']
+
+[sensor_to_camera_nodes_relations]
+big_house = ['bh']
+john = ['john']
+
+[sound_nodes]
+bh1 = { addr = '192.168.1.2:8313', durations = [7, 30] }
+bh2 = { addr = '192.168.1.3:8313', durations = [10, 60] }
+john = { addr = '192.168.1.4:8313', durations = [10, 60] }
+
+[camera_nodes]
+bh = { addr = '192.168.1.2:8314', durations = [7, 30] }
+john = { addr = '192.168.1.4:8314', durations = [10, 60] }
+
+[api]
+token = "..."
+host = "..."
+
+[logging]
+verbose = false
+default_fmt = true
+``` \ No newline at end of file