Categorygithub.com/0187773933/IRController
repositorypackage
1.0.7
Repository: https://github.com/0187773933/ircontroller.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

IR Controller

Observe Protocol and Key Codes - V1

sudo ir-keytable -v -t -p rc-5,rc-5-sz,jvc,samsung,sony,nec,sanyo,mce_kbd,rc-6,sharp,xmp -s rc0

Replay IR Codes - V1

ir-ctl -S necx:0x70702

Observe Protocol and Key Codes - V2

ir-ctl -d /dev/lirc0 --receive=samnsung_power.key

Intermediate convert_ir_ctl_recieve_format.sh

#!/bin/bash

if [ "$#" -ne 1 ]; then
	echo "Usage: $0 <filename>"
	exit 1
fi
output_file="samnsung_power_fixed.key"
> "$output_file"
content=$(cat $1)
for value in $content; do
	if [[ $value == +* ]]; then
		echo "pulse ${value#+}" >> "$output_file"
	elif [[ $value == -* ]]; then
		echo "space ${value#-}" >> "$output_file"
	fi
done

Replay IR Codes - V2

ir-ctl -d /dev/lirc0 --send=samnsung_power_fixed.key