Skip to main content

Functionalities for Roborock vacuum map parsing

Project description

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

Vacuum map parser - Roborock

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

Installation

pip install vacuum-map-parser-roborock

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_roborock.map_data_parser import RoborockMapDataParser

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

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

Special thanks

This library wouldn't exist without following projects:

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
  • Powered by

    PyCharm logo.

    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_roborock-0.1.4.tar.gz (15.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_roborock-0.1.4-py3-none-any.whl (13.8 kB view details)

    Uploaded Python 3

    File details

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

    File metadata

    • Download URL: vacuum_map_parser_roborock-0.1.4.tar.gz
    • Upload date:
    • Size: 15.3 kB
    • Tags: Source
    • Uploaded using Trusted Publishing? No
    • Uploaded via: poetry/1.5.1 CPython/3.11.12 Linux/6.11.0-1012-azure

    File hashes

    Hashes for vacuum_map_parser_roborock-0.1.4.tar.gz
    Algorithm Hash digest
    SHA256 07ab7cd8aaf0e94da62d2a228013b2f6b8acb0e6d2215b697b6441ffdfd70e89
    MD5 8aa8ec9ac0b6c2dd8870c7aa3c546933
    BLAKE2b-256 39b482583167a6b667151a6432fe9084232a090b36985751cd5c428998b2d080

    See more details on using hashes here.

    File details

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

    File metadata

    File hashes

    Hashes for vacuum_map_parser_roborock-0.1.4-py3-none-any.whl
    Algorithm Hash digest
    SHA256 8b5a00484a88c5d103a99ed7580677939c0801430f04752d9ae6265dfcec5969
    MD5 910e7f206a5a3e2a5451ebae2c32c95f
    BLAKE2b-256 2a56e80291e0bfd38078bf9338fe379076d1fd55dea0174eee71897e55a0c9dc

    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