Skip to main content

Functionalities for Xiaomi vacuum map parsing

Project description

GitHub Latest Release PyPI PyPI - Downloads

Vacuum map parser - Xiaomi

Map data parser that can be used to parse maps generated by Xiaomi vacuums (based on map data parser for Ijai by maksp86).

Installation

pip install vacuum-map-parser-xiaomi

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_xiaomi.map_data_parser import XiaomiMapDataParser

palette: ColorsPalette = ColorsPalette()
sizes: Sizes = Sizes()
drawables: list[Drawable] = [Drawable.PATH, Drawable.CHARGER]
image_config: ImageConfig = ImageConfig()
texts: list[Text] = []
raw_map: bytes = b''

parser = XiaomiMapDataParser(palette, sizes, drawables, image_config, texts)

unpacked_map = parser.unpack_map(raw_map, 
                                 wifi_sn='******SD**********', 
                                 owner_id='**********', 
                                 device_id='**********', 
                                 model='xiaomi.vacuum.***', 
                                 device_mac='**:**:**:**:**:**')
parsed_map = parser.parse(unpacked_map)

Supported vacuums:

  • xiaomi.vacuum.e101gb
  • xiaomi.vacuum.ov71gl
  • xiaomi.vacuum.ov31gl

If you got another vacuum to work, please tell us

Special thanks

The code of this library is based on map data parser for Ijai by @maksp86

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_xiaomi-0.1.1.tar.gz (16.3 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_xiaomi-0.1.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file vacuum_map_parser_xiaomi-0.1.1.tar.gz.

File metadata

  • Download URL: vacuum_map_parser_xiaomi-0.1.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.14 Linux/6.11.0-1018-azure

File hashes

Hashes for vacuum_map_parser_xiaomi-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1d0db294f9b609867d4028a5818ffdc9832efec404236a4c81ba8745a510e111
MD5 dc9ab2c822243c764557f14490687dd2
BLAKE2b-256 b800e7d7c783fcad35304afcb9cadf41df9f167a604dbf5082befa5c36ecad59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vacuum_map_parser_xiaomi-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6af267e1d61dae01fbea8b963fb78ef477f6585ee0eaf1eb9f1b43fb0f25db37
MD5 993538518298c8466ae7a613f47bc2b6
BLAKE2b-256 57a94c43411ae7dd5b248b1a4b773dfb873c04353f4675b499c725951941e8b6

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