You can have LIRC on a Pi. I got stuck on installing nodejs otherwise you can have a universal remote including activities.

Code:
http://alexba.in/blog/2014/08/10/lirc-web-v0-0-8/