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
  • 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.1.tar.gz (14.6 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.1-py3-none-any.whl (13.6 kB view details)

    Uploaded Python 3

    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

    Hashes for vacuum_map_parser_dreame-0.1.1.tar.gz
    Algorithm Hash digest
    SHA256 98a889c11e15dd67c4d52fbfbc5516018bc10c1c097d57f5a3fbcc4242344c6d
    MD5 60aea0593ea18c8bc055cbd1541ccb91
    BLAKE2b-256 25948b771816baa4c311275c2a92934d175d9a59ada97ff113880c13e01dd07b

    See more details on using hashes here.

    File details

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

    File metadata

    File hashes

    Hashes for vacuum_map_parser_dreame-0.1.1-py3-none-any.whl
    Algorithm Hash digest
    SHA256 60526e2baa0cca946ac4d2fef907572eae41453cfac8d2b5f9977792a2ceb13f
    MD5 d556ded976d993aead33427f60f74467
    BLAKE2b-256 32039aab8405d24da5508e6954052214ef122068e9f779e4687f3ff3bea9ad99

    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