Skip to main content

Functionalities for Ijai vacuum map parsing

Project description

GitHub Latest Release PyPI PyPI - Downloads

Vacuum map parser - Ijai

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

Installation

pip install vacuum-map-parser-ijai

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_ijai.map_data_parser import IjaiMapDataParser

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 = IjaiMapDataParser(palette, sizes, drawables, image_config, texts)

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

Supported vacuums:

  • ijai.vacuum.* (at least v1, v2, v3, v10, v13, v18, v19)
  • xiaomi.vacuum.c103
  • xiaomi.vacuum.c104
  • xiaomi.vacuum.b106eu If you got another vacuum to work, please tell us

Special thanks

The code of this library was initially created by @halfbakery as a part of Xiaomi Cloud Map Extractor.

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_ijai-0.1.0.tar.gz (23.0 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_ijai-0.1.0-py3-none-any.whl (25.1 kB view details)

Uploaded Python 3

File details

Details for the file vacuum_map_parser_ijai-0.1.0.tar.gz.

File metadata

  • Download URL: vacuum_map_parser_ijai-0.1.0.tar.gz
  • Upload date:
  • Size: 23.0 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_ijai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e569ca083cc2c072624ceb6669941c1c7342c160c28233529ca3f3018397715b
MD5 f694e52ec7a903c95c1682432cbbb825
BLAKE2b-256 c167fb3a81333a15f6cf356ee2ff040964f9306478a5cf21f43a303c9c586f2f

See more details on using hashes here.

File details

Details for the file vacuum_map_parser_ijai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vacuum_map_parser_ijai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 baf0daa178a559551fd0c448635fbbc41b7878eb0cbcd33ba620a512d709b6f1
MD5 613ca8ef05caae8033b74bf3ef22a43a
BLAKE2b-256 79fb5798a867ea32b081ad8062aae36fd6a86a067d91f2fa18e11b264b133165

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