vacuum-map-parser-dreame

Functionalities for Dreame vacuum map parsing


License
Apache-2.0
Install
pip install vacuum-map-parser-dreame==0.1.1

Documentation

GitHub Latest Release PyPI PyPI - Downloads Ko-Fi buycoffee.to PayPal.Me Revolut.Me

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
  • PayPal
  • Credit card
  • Buy Me a Coffee at ko-fi.com
  • No fees
  • Single or monthly payment
  • buycoffee.to
  • BLIK
  • Bank transfer
  • Postaw mi kawÄ™ na buycoffee.to
    PayPal
  • PayPal
  • PayPal Logo
  • No fees
  • Revolut
  • Revolut
  • Credit Card
  • Revolut
  • No fees