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
  • xiaomi.vacuum.ov81gl

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.4.tar.gz (16.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_xiaomi-0.1.4-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vacuum_map_parser_xiaomi-0.1.4.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.15 Linux/6.17.0-1010-azure

File hashes

Hashes for vacuum_map_parser_xiaomi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a81aeddca0fbe9db9fe35ac6e4871fbf3555575115e161a2fc61ae05ac1bdf4c
MD5 e7aaf29556c1f15017ab0e3c319288de
BLAKE2b-256 166d786461ea52f0bca7408d1774393c674bd6a8eb5867521e55126d582a9751

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vacuum_map_parser_xiaomi-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 75fa117b445aa0ca0e1e5d71c5bcf09a3e8119db9f357847fdc09ec0e44bbd92
MD5 876195d2cce01d9091bac6b18601ca61
BLAKE2b-256 b6d7e8a325371e085738e6b5825eab95196ddee631d5a81b10415105c3d21a6a

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