Skip to main content

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
  • Powered by

    PyCharm logo.

    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)

    Source distribution for vacuum-map-parser-dreame 0.1.3
    File Size Uploaded
    vacuum_map_parser_dreame-0.1.3.tar.gz 14.8 kB Details

    Built distribution (wheel)

    Table of built distributions (wheels) for vacuum-map-parser-dreame 0.1.3
    File Interpreter ABI Platform
    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

    Release history Release notifications | RSS feed

    This release

    0.1.3 This release

    2 release files

    0.1.2

    2 release files

    0.1.1

    2 release files

    0.1.0

    2 release files

    Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page