Skip to main content

Functionalities for Dreame vacuum map parsing

Project description

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.

    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

    vacuum_map_parser_dreame-0.1.3.tar.gz (14.8 kB view details)

    Uploaded Source

    Built Distribution

    If you're not sure about the file name format, learn more about wheel file names.

    vacuum_map_parser_dreame-0.1.3-py3-none-any.whl (13.8 kB view details)

    Uploaded Python 3

    File details

    Details for the file vacuum_map_parser_dreame-0.1.3.tar.gz.

    File metadata

    • Download URL: vacuum_map_parser_dreame-0.1.3.tar.gz
    • Upload date:
    • Size: 14.8 kB
    • Tags: Source
    • Uploaded using Trusted Publishing? No
    • Uploaded via: poetry/1.5.1 CPython/3.11.12 Linux/6.11.0-1012-azure

    File hashes

    Hashes for vacuum_map_parser_dreame-0.1.3.tar.gz
    Algorithm Hash digest
    SHA256 4adc5a68df9cf9e78fcf949d5ebe8115e6687a1975fa24514c471a57c64ff345
    MD5 8bf6d8241fcf3475e907014ba7f9717f
    BLAKE2b-256 259c00d10c0cd3646b2ab4eb156c1d8ff153abd918e4511d6e7e0e84ca861b56

    See more details on using hashes here.

    File details

    Details for the file vacuum_map_parser_dreame-0.1.3-py3-none-any.whl.

    File metadata

    File hashes

    Hashes for vacuum_map_parser_dreame-0.1.3-py3-none-any.whl
    Algorithm Hash digest
    SHA256 644d19028e383ed8153487da7773609e7a47d47b9916de5422f311f6c7ffa533
    MD5 99aad153d5d146d2a541f57b12e9a5e7
    BLAKE2b-256 0dd4c8565b5c6b20588b7bd7d7a5918be427f5001094eb3dca3dc00b2d32035d

    See more details on using hashes here.

    Supported by

    AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page