Skip to main content

A small tool to easily send data (files, clipboard) between computers with 0 config, just using audio and mic.

Project description

Grillo

A small tool to easily send data (files, clipboard) between computers with 0 config, just using audio and mic.

Installation

On Ubuntu, install it by running:

sudo apt install portaudio19-dev libffi-dev libsndfile1 xclip
pip3 install grillomodem --user

Usage

machine1> grillo listen

machine2> grillo text "hello world!"

After hearing some hight pitched sounds, machine1 should print:

machine1> grillo listen
Received text:
hello world!

You can also send files:

machine2> grillo file /path/to/a_file.txt

Or even update machine1’s clipboard with machine2’s clipboard contents:

machine2> grillo clipboard

Limitations

This will work with contents of less than 8KB, and the bandwith is fairly low, around 52bps. So use it to send small files (configs, etc), texts (like commands, an email, an url, etc), or copied text from the clipboard. Don’t try to send stuff like a video :)

Usage as a lib

You can also use Grillo from your own Python programs, like this:

from grillo import Grillo

g = Grillo()
g.send_text("hello world")

Brave vs normal mode

In the default mode, Grillo will use an ACK message to request any packets of a message that haven’t been successfully received. This helps working in noisy environments. If you are super confident in your quiet environment, or your receiver can’t emit sounds, you can use --brave to disable that feature.

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

GrilloModem-1.2.3.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file GrilloModem-1.2.3.tar.gz.

File metadata

  • Download URL: GrilloModem-1.2.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3

File hashes

Hashes for GrilloModem-1.2.3.tar.gz
Algorithm Hash digest
SHA256 514036a50dcbd0364ede4542ebe467bb08577715211e19394368c10e75e9b415
MD5 08fbb9e4c61a9164f1c26086a6d270aa
BLAKE2b-256 2a6b1adb403181f8e641a1349944d51ea0021ce1edeba195f74cdadb2376d02d

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