Skip to main content

No project description provided

Project description

./docs/ackack.jpg

(Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License, Author Wonder Waffle https://www.deviantart.com/wonder-waffle/art/ACK-ACK-Mars-Attacks-359710975 )

pypi release downloads python_versions pypi_versions actions

Have fun with your vaccuum robot!

AckAck is a simple control API to manually controll weback vacuum robots. Paired with its web interface, and a RTPS (in my case, I’m using an old yi ants camera with yi-hack)

This way you can remotely-scare your cats!

./docs/screenshot.png

Keys

Use your arrow keys to move the robot left, right, go front or turn backwards. Enter will start cleaning and backspace will stop.

Environment variables

You’ll need to setup your weback username and password. Usually, this will be your phone + the password you use on the control app. Besides that, only RTSP_URL is required.

KEY

Description

RTSP_URL

Yi camera’s RTSP stream URL

WEBACK_USERNAME

Your weback’s username (phone number)

WEBACK_PASSWORD

Your weback’s password

BASE_URL

Base URL, for reverse proxies

Installation

Docker

With docker, just setup the specified env vars and launch the image. You can use the following docker-compose.yml example. Setting base_url is useful in reverse proxy scenarios (like traefik).

version: "3.3"
services:
  ackack:
    image: XayOn/ackack
    restart: unless-stopped
    ports:
      - 8080:8080
    environment:
      RTSP_URL: http://192.168.1...
      WEBACK_USERNAME: +33-123123123
      WEBACK_PASSWORD: yourpassword
      BASE_URL: /ackack

Manual setup

Install the project, set your environment variables, launch ffmpeg to create a m3u8 file in static/playlist.m3u8 from your rtsp.

Requires ffmpeg. Check your distro’s instructions on how to install ffmpeg You can checkout docker-entrypoint.sh and use its ffmpeg command

pip install ackack
WEBACK_USERNAME="+34-XXXX" WEBACK_PASSWORD="XXXX" poetry run uvicorn ackack:app

How does it work?

Ackack is simply an API for movement commands on python’s weback unofficial library, with an interface in plain html + js (with just videojs, minimal), paired with an ffmpeg command that converts the rtsp output of the yi camera to a format playable by your browser.

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

ackack-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

ackack-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file ackack-0.1.0.tar.gz.

File metadata

  • Download URL: ackack-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.6 Linux/5.12.11-arch1-1

File hashes

Hashes for ackack-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d2edfd71927b96e0e32e226645baf7149f4552b0f248ee206179e59b88ea189e
MD5 c6b82da56ae3802b84f532eee4af4439
BLAKE2b-256 bc0c610378e644966a60ec78209289c5557d07e1599694ad5c20e5a1e79f0b6d

See more details on using hashes here.

File details

Details for the file ackack-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ackack-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.6 Linux/5.12.11-arch1-1

File hashes

Hashes for ackack-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c9812fdfad423a79183b1e8c76149b4275a63feec47b22f238fb945d32ca8cd
MD5 8fd4ddf672f2f0bb5f4e10ab276435d6
BLAKE2b-256 40eef92791b223410aa7df12cc900df44f1dbf16c37873f0a53d628f818082e2

See more details on using hashes here.

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