Join GitHub today

A Raspberry Pi infrared remote control. The Python app has three parts: Functions to send commands to the infrared transmitter. A Flask web service to accept television command requests (e.g. volume decrease, volume increase). A scheduler that automatically sends remote control commands at programmed times (e.g. mute during TV commercials).

Use infrared receiver to generate a new configuration file.

lirc-remotes has lots of files, but none named polk. Could try existing ones but this could be time consuming.
Instead use an existing handheld remote transmitter to "teach" the Raspberry Pi how to act like that remote.
The Raspberry Pi IR Control Expansion Board has an infrared receiver.
LIRC command irrecord records button press infrared signals. http://www.lirc.org/html/irrecord.html