summaryrefslogtreecommitdiff
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/meson.build2
-rw-r--r--configs/valid/mqtt-topic-prefix-max-characters.json11
-rw-r--r--configs/valid/shelly.json21
3 files changed, 33 insertions, 1 deletions
diff --git a/configs/meson.build b/configs/meson.build
index 98110da..aa16a47 100644
--- a/configs/meson.build
+++ b/configs/meson.build
@@ -1,3 +1,3 @@
fs = import('fs')
-default_config = fs.copyfile(meson.current_source_dir() / 'default.json')
+default_config = fs.copyfile(meson.current_source_dir() / 'valid' / 'default.json')
diff --git a/configs/valid/mqtt-topic-prefix-max-characters.json b/configs/valid/mqtt-topic-prefix-max-characters.json
new file mode 100644
index 0000000..99f3cf1
--- /dev/null
+++ b/configs/valid/mqtt-topic-prefix-max-characters.json
@@ -0,0 +1,11 @@
+{
+ "mqtt": {
+ "broker": "tcp://127.0.0.1:1883",
+ "client-id": "siaserver",
+ "topic-prefix": "aaaaaaaaaaaaaaaaaaaa"
+ },
+ "homematic": {
+ "ccu": "http://127.0.0.1:8080",
+ "polling-period": "50ms"
+ }
+}
diff --git a/configs/valid/shelly.json b/configs/valid/shelly.json
new file mode 100644
index 0000000..578f6dc
--- /dev/null
+++ b/configs/valid/shelly.json
@@ -0,0 +1,21 @@
+{
+ "mqtt": {
+ "broker": "tcp://127.0.0.1:1883",
+ "client-id": "siaserver",
+ "topic-prefix": "sia"
+ },
+ "homematic": {
+ "ccu": "http://127.0.0.1:8080",
+ "polling-period": "50ms"
+ },
+ "shelly": [
+ {
+ "id": "shelly1",
+ "ip": "192.168.1.20"
+ },
+ {
+ "id": "shelly2",
+ "ip": "2001:db8::68"
+ }
+ ]
+}