These scripts are used for
- Make a backup of map and important partition
- Play wave file from web
So far these scripts have been tested only on a Dreame D9 Pro vacuum. But may work on others (no gurantees)
Both of these files reside in /mnt/misc on vacuum
aplayweb.sh script need to be called from your remote server (I use node-red).
To backup, run following command..
ssh -i <sshKeypath> root@<dreame_ip> backup > "<someLocalFolder>/dreameMap-${todayDate}.tar.gz"
To play a wave file on vaccume..
ssh -i <sshKeypath> root@<dreame_ip> <full URL of wave file>
To install
- copy aplayweb.sh to /mnt/misc
- Add line to your /mnt/misc/authorized_keys using template provided in authorized_keys in this repo (you will need to generate a key pair to add. Read any guide to generate ssh key pair on your OS)
- Edit /data/_root_postboot.sh and add following line at the end
cp /mnt/misc/aplayweb.sh /tmp/aplayweb.sh