Vacuum map parser - Dreame
Map data parser that can be used to parse maps generated by Dreame vacuums.
Installation
pip install vacuum-map-parser-dreame
Usage
from vacuum_map_parser_base.config.color import ColorsPalette
from vacuum_map_parser_base.config.drawable import Drawable
from vacuum_map_parser_base.config.image_config import ImageConfig
from vacuum_map_parser_base.config.size import Sizes
from vacuum_map_parser_base.config.text import Text
from vacuum_map_parser_dreame.map_data_parser import DreameMapDataParser
palette: ColorsPalette = ColorsPalette()
sizes: Sizes = Sizes()
drawables: list[Drawable] = [Drawable.PATH, Drawable.CHARGER]
image_config: ImageConfig = ImageConfig()
texts: list[Text] = []
model: str = "dreame.vacuum.p2008"
enc_key: str | None = "secret_enc_key" # required just for vacuums with AES-encoded map data
raw_map: bytes = b''
parser = DreameMapDataParser(palette, sizes, drawables, image_config, texts, model)
unpacked_map = parser.unpack_map(raw_map, enc_key=enc_key)
parsed_map = parser.parse(unpacked_map)
Special thanks
The code of this library was initially created by @Neonox31 as a part of Xiaomi Cloud Map Extractor.
Support
If you want to support my work with a donation you can use one of the following platforms:
| Platform | Payment methods | Link | Comment |
|---|---|---|---|
| Ko-fi |
|
|
|
| buycoffee.to |
|
|
|
| PayPal |
|
|
|
| Revolut |
|
|
|
Powered by
Metadata
Release files for vacuum-map-parser-dreame 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vacuum_map_parser_dreame-0.1.3.tar.gz | 14.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vacuum_map_parser_dreame-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / vacuum_map_parser_dreame-0.1.3.tar.gz
| Download URL | vacuum_map_parser_dreame-0.1.3.tar.gz |
|---|---|
| Size | 14.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4adc5a68df9cf9e78fcf949d5ebe8115e6687a1975fa24514c471a57c64ff345
|
|
BLAKE2b-256 checksum How to use checksums |
259c00d10c0cd3646b2ab4eb156c1d8ff153abd918e4511d6e7e0e84ca861b56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.12 Linux/6.11.0-1012-azure
|
Release files / vacuum_map_parser_dreame-0.1.3-py3-none-any.whl
| Download URL | vacuum_map_parser_dreame-0.1.3-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
644d19028e383ed8153487da7773609e7a47d47b9916de5422f311f6c7ffa533
|
|
BLAKE2b-256 checksum How to use checksums |
0dd4c8565b5c6b20588b7bd7d7a5918be427f5001094eb3dca3dc00b2d32035d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.11.12 Linux/6.11.0-1012-azure
|