Lirc2broadlink.pl - convert LIRC conf files to broadlink

I don’t know how useful this is for other people, but I wrote a script to convert LIRC config files in to b64 codes to use with broadlink transmitters. Here’s the code as github gist.

Someone else had a go at this 6 years or so ago (see here: Script to generate Broadlink IR code yaml from irdb or lirc configs) but it no longer works, and it goes all round the houses using a bunch of third party tools.

lirc2broadlink just directly translates config files. It’s not quite complete, but I think it should work for about 90% of remotes. Saves time in programming every button individually.

Just pipe it a conf file. Example usage:
curl -fsSL https://lirc.sourceforge.net/remotes/samsung/BN59-00683A | ./lirc2broadcom.pl