irtext2udp(1)

πŸ“¦
version 0.10.2 Β· 3 versions
, in alpine 3.24, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– irtext2udp β€” the user-commands girlie you didn't know you needed πŸ’–

okay so bestie, welcome to irtext2udp(1), a certified user-commands baddie. this is the little filter that takes your cute printable pulse/space text and yeets it into the binary glow-up the LIRC udp driver speaks. she's small, she's focused, she ATE. πŸŽ€


✨ NAME ✨

irtext2udp β€” converts pulse/space text data into the binary UDP driver format. literally her whole personality. πŸ’…


🌸 SYNOPSIS 🌸

irtext2udp [-r resolution] [file]

πŸ¦‹ DESCRIPTION πŸ¦‹

irtext2udp is a filter, and she is so good at it. she takes pulse/space printable data β€” the kind of stuff mode2(1) spits out β€” and converts it into the binary format that the LIRC udp driver is obsessed with.

the file argument is a textfile full of pulse/space data. don't feel like passing one? no worries, standard input gets used instead, she's flexible like that. πŸ’œ

and here's the tea: any lines that don't start with space or pulse get silently ignored. no drama, no error, just quietly skipped. not me being polite about garbage input 😭

the normal usage pattern (iykyk) is to pair irtext2udp up with standard tools like ncat(1) or socat(1), so you can send that binary data to a lircd instance that's running the udp driver. it's giving pipeline romance. 🫢


πŸŽ€ OPTIONS πŸŽ€

  • -r, --resolution <resolution> β€” udp packages are measured in ticks, and the length of each tick is defined by the resolution. the default value is 61, computed as 1000000/16384, which corresponds to 1/16384 seconds. this number is derived from old designs using a 32 kHz clock. yes she's vintage, no we're not changing her. ⭐
  • -v, --version* β€” prints the version and dips out. that's it, that's the whole job. πŸ‘‘
  • -h, --help* β€” prints the help message. your girl comes with instructions. πŸ’–

πŸ”₯ EXAMPLES πŸ”₯

using ncat(1) or socat(1) to send data to a lircd instance that's using the udp driver, listening on the default udp port 8765 on localhost:

irtext2udp < input-file | nc --udp localhost 8765
irtext2udp < input-file | socat STDIN UDP:localhost:8765

look at that pipeline. she's serving, she's piping, she's slaying. 🌈


πŸ‘‘ SEE ALSO πŸ‘‘


bestie reminder: this page lives in the user commands section, so yes, it's irtext2udp(1) β€” one, not eight. don't come for me. πŸ’€

okay and finally, the lil sign-off: this page is text2udp 0.10.2, last changed Oct 2016, and it signs off as irtext2udp(1). iconic, timeless, fr fr. πŸ’–βœ¨πŸŒΈ