Skip to main content

Functionalities for Viomi vacuum map parsing

Project description

GitHub Latest Release PyPI PyPI - Downloads Ko-Fi buycoffee.to PayPal.Me Revolut.Me

Vacuum map parser - Viomi

Map data parser that can be used to parse maps generated by Viomi vacuums.

Installation

pip install vacuum-map-parser-viomi

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_viomi.map_data_parser import ViomiMapDataParser

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

unpacked_map = parser.unpack_map(raw_map)
parsed_map = parser.parse(unpacked_map)

Special thanks

The code of this library was initially created by @halfbakery 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_viomi-0.1.1.tar.gz (14.8 kB view hashes)

    Uploaded Source

    Built Distribution

    vacuum_map_parser_viomi-0.1.1-py3-none-any.whl (13.8 kB view hashes)

    Uploaded Python 3

    Supported by

    AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page