summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-06-30 22:29:24 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-01 20:59:30 +0300
commit5b4cadc2b6a8b476fa283ea315a44d2581cc01f6 (patch)
tree59e6df0304cc6bf5563504ed1fa09fa6e6771d74 /doc
parentf2d94cd93eb5fa55790f44f66a2ac206eeeeb5e1 (diff)
polaris_kettle_bot: add /temp command and more
Diffstat (limited to 'doc')
-rw-r--r--doc/polaris_pwk_1725cgld.md34
1 files changed, 31 insertions, 3 deletions
diff --git a/doc/polaris_pwk_1725cgld.md b/doc/polaris_pwk_1725cgld.md
index edd439b..ad13cef 100644
--- a/doc/polaris_pwk_1725cgld.md
+++ b/doc/polaris_pwk_1725cgld.md
@@ -1,3 +1,29 @@
+## Bot configuration
+
+```
+[bot]
+token = "bot token"
+users = [ id1, id2 ]
+#notify_users = [ 1, 2 ]
+
+[mqtt]
+host = "192.168.88.49"
+port = 1883
+client_id = "kettle_bot"
+
+[logging]
+verbose = true
+default_fmt = true
+
+[kettle]
+mac = 'kettle mac'
+token = 'kettle token'
+temp_max = 100
+temp_min = 30
+temp_step = 5
+```
+
+
## Random research notes
### Device features
@@ -42,9 +68,9 @@ From `devices.json`:
},
```
-### Random notes
+### Protocol commands
-All commands, from `com/polaris/iot/api/commands`:
+From `com/polaris/iot/api/commands`:
```
$ grep -A1 -r "public byte getType()" .
./CmdAccessControl.java: public byte getType() {
@@ -207,4 +233,6 @@ $ grep -A1 -r "public byte getType()" .
--
./CmdWifiList.java: public byte getType() {
./CmdWifiList.java- return -127;
-``` \ No newline at end of file
+```
+
+See also class `com/syncleiot/iottransport/commands/CmdHardware`. \ No newline at end of file