Skip to main content

Python package for controlling Neato pybotvac Connected vacuum robot

Project description

pybotvac

This is an unofficial API for controlling Neato Botvac Connected vacuum robots. The code is based on https://github.com/kangguru/botvac and credit for reverse engineering the API goes to Lars Brillert @kangguru

Disclaimer

This API is experimental. Use at your own risk. Feel free to contribute if things are not working.

Installation

Install using pip

pip install pybotvac

Alternatively, clone the repository and run

python setup.py install

Usage

Robot

If the serial and secret for your robot is known, simply run

>>> from pybotvac import Robot
>>> robot = Robot('OPS01234-0123456789AB', '0123456789ABCDEF0123456789ABCDEF', 'my_robot_name')
>>> print(robot)
Name: sample_robot, Serial: OPS01234-0123456789AB, Secret: 0123456789ABCDEF0123456789ABCDEF

The format of the serial should be 'OPSxxxxx-xxxxxxxxxxxx', and the secret should be a string of hex characters 32 characters long. These can be found by using the Account class.

To start cleaning

robot.start_cleaning()

If no exception occurred, your robot should now get to work.

Currently the following methods are available in the Robot class:

  • get_robot_state()
  • start_cleaning()
  • start_spot_cleaning()
  • pause_cleaning()
  • stop_cleaning()
  • send_to_base()
  • enable_schedule()
  • disable_schedule()
  • get_schedule()

For convenience, properties exist for state and schedule

# Get state
state = robot.state

# Check if schedule is enabled
robot.schedule_enabled

# Disable schedule
robot.schedule_enabled = False

Account

If the serial and secret is unknown, they can be retrieved using the Account class.

>>> from pybotvac import Account
>>> # List all robots associated with account
>>> for robot in Account('sample@email.com', 'sample_password').robots:
    print(robot)

Name: my_robot_name, Serial: OPS01234-0123456789AB, Secret: 0123456789ABCDEF0123456789ABCDEF, Traits: ['maps']

Information about maps and download of maps can be done from the Account class:

>>> from pybotvac import Account
>>> # List all maps associated with a specific robot
>>> for map_info in Account('sample@email.com', 'sample_password').maps:
    print(map_info)

A cleaning map can be downloaded with the account class. Returns the raw image response. Example shows latest map. You need the url from the map output to do that:

>>> from pybotvac import Account
>>> # List all maps associated with a specific robot
>>> map = Account('sample@email.com', 'sample_password').maps
>>> download_link = map['robot_serial']['maps'][0]['url']
    Account('sample@email.com', 'sample_password').get_map_image('download_link')

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

pybotvac-0.0.16.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pybotvac-0.0.16-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file pybotvac-0.0.16.tar.gz.

File metadata

  • Download URL: pybotvac-0.0.16.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/3.5.1

File hashes

Hashes for pybotvac-0.0.16.tar.gz
Algorithm Hash digest
SHA256 f75240520c918793510766d8b1f5ebc1feb0286f86eab971550f6580b0ea68f5
MD5 aaf7c3811fef593317d56dff116eb063
BLAKE2b-256 24da456bc09440029fbcab50fb83651be26165dd96e2884e207943830dd59ced

See more details on using hashes here.

File details

Details for the file pybotvac-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: pybotvac-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.22.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.15.0 CPython/3.5.1

File hashes

Hashes for pybotvac-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 faaed64f0d3c7834d7479254770ba8fc23c1292b4f9a5fc5da8c47ae08bfb096
MD5 224a3b065f94eb399794b14366f5d75b
BLAKE2b-256 1b7b75678712154c915092c38eeb96a8d4141250143cd28dbd265ec303c062d2

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