Skip to content

Commit

Permalink
Add section for getting tokens from rooted devices (rytilahti#966)
Browse files Browse the repository at this point in the history
* Add section for getting tokens from rooted devices

* typofix

Co-authored-by: Teemu R <tpr@iki.fi>
  • Loading branch information
2 people authored and xvlady committed May 9, 2021
1 parent 4442487 commit 11ba6ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/discovery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,15 @@ The command for decrypting the token manually is:
echo '0: <YOUR 32 CHARACTER TOKEN>' | xxd -r -p | openssl enc -d -aes-128-ecb -nopad -nosalt -K 00000000000000000000000000000000
.. _rooted_tokens:

Tokens from rooted device
=========================

If a device is rooted via `dustcloud <https://github.com/dgiese/dustcloud>`_ (e.g. for running the cloud-free control webinterface `Valetudo <https://valetudo.cloud/>`_), the token can be extracted by connecting to the device via SSH and reading the file: :code:`printf $(cat /mnt/data/miio/device.token) | xxd -p`

See also `"How can I get the token from the robots FileSystem?" in the FAQ for Veltudo <https://valetudo.cloud/pages/faq.html#how-can-i-get-the-token-from-the-robots-filesystem>`_.

Environment variables for command-line tools
============================================

Expand Down

0 comments on commit 11ba6ac

Please sign in to comment.