#!/usr/bin/env ruby # frozen_string_literal: true require "eventmachine" require "lirc/protocol" require "lirc/commands" server = ENV["LIRCD_SERVER"] port = ENV["LIRCD_PORT"].to_i || 8765 if server.nil? || port == 0 puts "LIRCD_SERVER or LIRCD_PORT env var missing" end unless ARGV.size == 3 puts "Usage: irsend