Skip to content

Commit

Permalink
docs(vacuum.viomi): Fix deployment instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Dec 30, 2020
1 parent 6da2822 commit 923f941
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
3 changes: 2 additions & 1 deletion deployment/viomi/etc/init.d/valetudo
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ PROG=/mnt/UDISK/valetudo
OOM_ADJ=-17

start_service() {

procd_open_instance
procd_set_param env VALETUDO_CONFIG_PATH=/mnt/UDISK/valetudo_config.json
procd_set_param oom_adj $OOM_ADJ
procd_set_param command $PROG
procd_set_param stdout 1 # forward stdout of the command to logd
Expand Down
16 changes: 3 additions & 13 deletions docs/_pages/installation/viomi.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ instead of the xiaomi cloud:
```shell
ssh root@vacuum
for domain in "" de. ea. in. pv. ru. sg. st. tw. us.; do
echo "110.43.0.83 ${domain}ot.io.mi.com ${domain}ott.io.mi.com" >> /etc/hosts
echo "203.0.113.1 ${domain}ot.io.mi.com ${domain}ott.io.mi.com" >> /etc/hosts
done
cat >/etc/rc.d/S51valetudo <<EOF
#!/bin/sh
Expand All @@ -62,7 +62,7 @@ iptables -t nat -F OUTPUT
# and change port to 8080
dest=127.0.0.1
port=80
for host in 110.43.0.83 110.43.0.85; do
for host in 203.0.113.1 203.0.113.5; do
iptables -t nat -A OUTPUT -p tcp --dport 80 -d $host -j DNAT --to-destination $dest:$port
iptables -t nat -A OUTPUT -p udp --dport 8053 -d $host -j DNAT --to-destination $dest:8053
iptables -A OUTPUT -d $host/32 -j REJECT
Expand Down Expand Up @@ -92,19 +92,9 @@ And deploy the `valetudo` binary to your robot:

Follow the [development guide](https://valetudo.cloud/pages/development/building-and-modifying-valetudo.html)
in spirit, but note that path names etc. may be different.
You can get the required `"model"` and `"config"` settings by doing `cat /etc/miio/device.conf` and
You can get the required settings by doing `cat /etc/miio/device.conf` and
`cat /etc/miio/device.token` on the robot.

`type` has to be `viomi.vacuum.v7` or `viomi.vacuum.v8`.

Furthermore, you need to customize these settings in the `local/config.json`:

"dummycloud": {
"spoofedIP": "110.43.0.83",
"bindIP": "0.0.0.0"
},
"map_upload_host": "http://110.43.0.83",

## Firmware updates

You can perform firmware updates up to v3.5.3_0047 without risking root (see the
Expand Down
7 changes: 1 addition & 6 deletions docs/_pages/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,13 @@ If that doesn’t help and „persistent Maps“ are activated on the Gen2 Robot
### Viomi V8 Specific: Map only shows „No Map Data“
Check your config under: /mnt/data/valetudo/config.json

[…]
"map_upload_host": "http://127.0.0.1",
[…]
"dummycloud": {
"spoofedIP": "110.43.0.83",
"bindIP": "127.0.0.1"

And check your Firewall-initscript /etc/rc.d/S51valetudo:

[…]
dest=127.0.0.1
port=80 #(Some People had success with changing the Port to 8080)

for host in 110.43.0.83 110.43.0.85; do
for host in 203.0.113.1 203.0.113.5; do
[…]

0 comments on commit 923f941

Please sign in to comment.