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)
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
Release history Release notifications | RSS feed
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
Close
Hashes for vacuum_map_parser_dreame-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9437c737de4e84890129b3b48dc9169dbb848ebbcc2899b2488ee93ee39eec15 |
|
MD5 | 3ce1b1c020aff3602dd078ab1df4f17c |
|
BLAKE2b-256 | 26ff433d434b73c5cf2f92245a26ad6afe80c57ea50bc44a17ef7f0f9887d4c6 |
Close
Hashes for vacuum_map_parser_dreame-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aff9696e20c28864bb730c67844796697cf80d80cea2fb348fc7acc3a0eb4347 |
|
MD5 | 55c9925c9699cb6b46c30f328cf194db |
|
BLAKE2b-256 | 64f42018a0850ce472e5054bc650a503fd37aef086c24fe0c2721e5a276c9eb7 |