(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 )
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!
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.
Metadata
Release files for ackack 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ackack-0.1.0.tar.gz | 3.8 kB | Without provenance | Details for ackack-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ackack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ackack-0.1.0-py3-none-any.whl |
Total release size: 7.1 kB
Release files / ackack-0.1.0.tar.gz
| Download URL | ackack-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d2edfd71927b96e0e32e226645baf7149f4552b0f248ee206179e59b88ea189e
|
|
BLAKE2b-256 checksum How to use checksums |
bc0c610378e644966a60ec78209289c5557d07e1599694ad5c20e5a1e79f0b6d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.6 Linux/5.12.11-arch1-1
|
Release files / ackack-0.1.0-py3-none-any.whl
| Download URL | ackack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c9812fdfad423a79183b1e8c76149b4275a63feec47b22f238fb945d32ca8cd
|
|
BLAKE2b-256 checksum How to use checksums |
40eef92791b223410aa7df12cc900df44f1dbf16c37873f0a53d628f818082e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.6 Linux/5.12.11-arch1-1
|
Security for ackack 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.