summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-03-24 11:30:56 +0100
committerxengineering <me@xengineering.eu>2024-03-24 11:30:56 +0100
commit3a169c74caa79a01b319786ac6c5ff8947686a59 (patch)
treec1bfe30bcd4ec83eccb8b9adc522a46cfcbd2f53 /config
parentbc1a0ba75311ea2d53f2cbd3e305b31a561fdafc (diff)
downloadwebiot-3a169c74caa79a01b319786ac6c5ff8947686a59.tar
webiot-3a169c74caa79a01b319786ac6c5ff8947686a59.tar.zst
webiot-3a169c74caa79a01b319786ac6c5ff8947686a59.zip
Provide example and default configuration
Those two configuration files should not be the same. The default configuration should be more or less empty while the example configuration should demonstrate the server's capabilities.
Diffstat (limited to 'config')
-rw-r--r--config/default.json8
-rw-r--r--config/example.json11
2 files changed, 19 insertions, 0 deletions
diff --git a/config/default.json b/config/default.json
new file mode 100644
index 0000000..17d64ef
--- /dev/null
+++ b/config/default.json
@@ -0,0 +1,8 @@
+{
+ "devices":{
+ "hs100":[]
+ },
+ "web":{
+ "listen":"127.0.0.1:9000"
+ }
+}
diff --git a/config/example.json b/config/example.json
new file mode 100644
index 0000000..9366364
--- /dev/null
+++ b/config/example.json
@@ -0,0 +1,11 @@
+{
+ "devices":{
+ "hs100":[
+ {"ip":"192.168.1.40","name":"LED strip living room"},
+ {"ip":"192.168.1.42","name":"TV"}
+ ]
+ },
+ "web":{
+ "listen":"127.0.0.1:9000"
+ }
+}