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.5.tar.gz (15.6 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.5-py3-none-any.whl (14.0 kB view details)

    Uploaded Python 3

    File details

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

    File metadata

    • Download URL: vacuum_map_parser_roborock-0.1.5.tar.gz
    • Upload date:
    • Size: 15.6 kB
    • Tags: Source
    • Uploaded using Trusted Publishing? No
    • Uploaded via: poetry/1.5.1 CPython/3.11.15 Linux/6.17.0-1013-azure

    File hashes

    Hashes for vacuum_map_parser_roborock-0.1.5.tar.gz
    Algorithm Hash digest
    SHA256 906109447d350f493ba8b59496c1d3075f4527173d7b02842d63a897da11ea1e
    MD5 95fb0df8961a3067424ceac3306f5773
    BLAKE2b-256 e17c2145c808234bb5da7cac5218bfd219715a2f995cca8a36015380cf3f490f

    See more details on using hashes here.

    File details

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

    File metadata

    File hashes

    Hashes for vacuum_map_parser_roborock-0.1.5-py3-none-any.whl
    Algorithm Hash digest
    SHA256 125422c863049a519e2d76ad8683a6756e44414fc9e30a5e2b7dd5281b481281
    MD5 5fbd4260060948b013c1c773f3dac0c9
    BLAKE2b-256 e8f72511990496bb80b33701d8458a9272f11121e319f299cd98ed51f6728959

    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