OpenNetHome Goes Ir commands :D

Building and connecting hardware to OpenNethome
Post Reply
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

OpenNetHome Goes Ir commands :D

Post by Nasty76 »

Hello all I install one of my raspberry pi a osmc alpha 4 which work realy nice , then rape my old xbox360 where was broken mainboard not working anymore , I take xbox ir sensor my raspberry pi , using this tutorial = http://ozzmaker.com/2013/10/24/how-to-c ... ir-remote/

then
1. apt-get update && apt-get upgrade in ssh console
2. apt-get install lirc
3. need conf lirc I use my harmony touch remote I add there 2 device which are Microsoft media player. Type :Microsoft a90-0001 and 2.
lg VF28

after that hard test and think why nothing work :D then at last I get system to work. so you need conf lirc and irexec program like I do I publish my files here.
first you need hardware conf file in /etc/lirc u can get working file here https://www.dropbox.com/s/xe6ztctpy4c1s ... .conf?dl=0
then you need lircd.config which map ir codes to strings this work if you use same remotes which I add harmony
file is here: https://www.dropbox.com/s/54q7qp1yx3cf4 ... .conf?dl=0
after that I need use irexec program which run sh scripts when get in some remote button so I make this file.
https://www.dropbox.com/s/1wxjxjv1807wenl/lircrc?dl=0
that lircrc file need to be locate /etc/lirc/ if not working you can console give command irexec
if that run without error all good if not conf file are not there where that need to be.
well now come nethome part.
1. make new item nethome udp command port if not have any already my nethome raspberry is address 192.168.1.250:8005 so you need adjust that part your own ip and port address.
2. apt-get install perl , if use image where is not already perl installed.
3. take this perl files I have home/osmc /irscripts folder a perl scripts which execute nethome item actions. you see my couple scripts here: https://www.dropbox.com/sh/y1px5hgdt0gk ... uuTZa?dl=0 I have use some buttons of LGvf remote named like : look movie which is one of remote button and attach that in harmony screen upper , next buttons are livingroom togge . livingroom_tolpat_toggle etc.
Now we can enjoy ir control to our nethome.
ofc if you like you can add ir sensor direct your nethome raspberry pi , and use this too , but better is steal ir commands your media center device :D that need remote already. and locate normaly near tv rack where people try sight remote :D hope this help somebody , I realy love make some stuff via nethome , one reason is in knx , elko etc. home automation servers is hard or imbossible make cool features like ir commands to nethome etc.
oh forget when make new feature you can get your button names via program irw
that show you names of buttons if system working normal.
stefangsbb
Site Admin
Posts: 313
Joined: Sun Nov 30, 2014 2:16 pm

Re: OpenNetHome Goes Ir commands :D

Post by stefangsbb »

Nice! And thanks for sharing the info. Direct support for Lirc is one of the things I would really love to add to NetHome sometimes... But it is really good with example on how to integrate without native support!
Nasty76
Posts: 145
Joined: Tue Dec 09, 2014 1:20 am

Re: OpenNetHome Goes Ir commands :D

Post by Nasty76 »

Well native support or no :D I steal ir commands my osmc raspberry which now on work charm , not more lagged as xmbc what I test earlier.
I think I buy new 4-core pi my media osmc pi and get more powerfull media center.
I Realy love Linux and raspberry and nethome , there is possible to make what u never get mind.
I one night sit my sofa and think god damn no phone near , too tired to get up and push wall button , so next day I rape ir receiver my old xbox and vola , now I can manage my living room lamps via ir remote :D
OFC , native support maybe be nice but stealing ir commands media OSMC center , is imo better way , not need hit ir to nethome raspberry , I don't have that near tv rack so perl + udp is way to go :P
Still Stefan you make so good job with nethome , that is best home server what I was testing , and more features are coming , I m sure :P
Post Reply