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.1.tar.gz (23.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_ijai-0.1.1-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vacuum_map_parser_ijai-0.1.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for vacuum_map_parser_ijai-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d6ebc80bc031dbe95e0565f8f22233cca9b480dcbfa3b54720e9708b2ac59989
MD5 1a0524dfbca2500ab3c4668d0d822e91
BLAKE2b-256 15f58b627373221a8405258b20a8b5a275b56398ba15314e062ce32cbfc216b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vacuum_map_parser_ijai-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 757737a15530ad247147e78b0d6debb0e45a4af200172f9358000f5cdccf0c17
MD5 3311f28c4dafad0d9369442d29f46192
BLAKE2b-256 6800e8747abbb03b241c2d1fa621498a4276936cadd4ddbd8c910b05d6d5e6ef

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