Functionalities for Dreame vacuum map parsing
Project description
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 |
|
|
|
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vacuum_map_parser_dreame-0.1.1.tar.gz.
File metadata
- Download URL: vacuum_map_parser_dreame-0.1.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98a889c11e15dd67c4d52fbfbc5516018bc10c1c097d57f5a3fbcc4242344c6d
|
|
| MD5 |
60aea0593ea18c8bc055cbd1541ccb91
|
|
| BLAKE2b-256 |
25948b771816baa4c311275c2a92934d175d9a59ada97ff113880c13e01dd07b
|
File details
Details for the file vacuum_map_parser_dreame-0.1.1-py3-none-any.whl.
File metadata
- Download URL: vacuum_map_parser_dreame-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.6 Linux/6.2.0-1015-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60526e2baa0cca946ac4d2fef907572eae41453cfac8d2b5f9977792a2ceb13f
|
|
| MD5 |
d556ded976d993aead33427f60f74467
|
|
| BLAKE2b-256 |
32039aab8405d24da5508e6954052214ef122068e9f779e4687f3ff3bea9ad99
|