I was able to setup Orvibo using following tutorial
I was able to test it from command lines too…
I was able to setup TV remote on and off with orvibo using your guide. It worked initially later on during testing I found its not working now.
Initially, it was working from command line.
[20:56:10] openhabian@Raiba-SmartHome:/etc/openhab2/orvibo$ python3 orvibo.py -m accf234f82a6 -x irda -e test-TV-off.ir
Orvibo[type=irda, ip=Unknown, mac=accf234f82a6]
Emit IR done.
[20:57:13] openhabian@Raiba-SmartHome:/etc/openhab2/orvibo$ python3 orvibo.py -m accf234f82a6 -x irda -e test-TV-on.ir
Orvibo[type=irda, ip=Unknown, mac=accf234f82a6]
Emit IR done.
Later on, I tried the same from .items and sitemap it was not working.
hence I tried again from command prompt and it started giving below error.
getting below errors
[21:33:11] openhabian@Raiba-SmartHome:/etc/openhab2/orvibo$ python3 orvibo.py -i 192.168.1.103 -x irda -e test-TV-on.ir
Traceback (most recent call last):
File "orvibo.py", line 715, in <module>
d = Orvibo.discover(o.ip)
File "orvibo.py", line 330, in discover
with _orvibo_socket() as s:
File "/usr/lib/python3.4/contextlib.py", line 59, in __enter__
return next(self.gen)
File "orvibo.py", line 135, in _orvibo_socket
sock = _create_orvibo_socket() if external_socket is None else external_socket
File "orvibo.py", line 130, in _create_orvibo_socket
sock.bind((ip, PORT))
OSError: [Errno 98] Address already in use
[20:46:10] openhabian@Raiba-SmartHome:/etc/openhab2/services$ netstat -an | grep 1000
udp6 3072 0 :::10000 :::*
[21:11:12] openhabian@Raiba-SmartHome:/etc/openhab2/services$
[21:11:12] openhabian@Raiba-SmartHome:/etc/openhab2/services$ sudo echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
-bash: /proc/sys/net/ipv4/tcp_fin_timeout: Permission denied
[21:20:37] openhabian@Raiba-SmartHome:/etc/openhab2/services$
[20:45:23] openhabian@Raiba-SmartHome:/etc/openhab2/services$ netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 280 192.168.1.130:22 192.168.1.100:61169 ESTABLISHED
tcp 0 0 192.168.1.130:1883 192.168.1.107:14184 ESTABLISHED
tcp 0 0 127.0.0.1:1883 127.0.0.1:48188 ESTABLISHED
tcp 0 0 192.168.1.130:445 192.168.1.100:61127 ESTABLISHED
tcp 0 0 192.168.1.130:22 192.168.1.100:61177 ESTABLISHED
tcp 0 0 192.168.1.130:1883 192.168.1.109:9162 ESTABLISHED
tcp6 0 0 :::139 :::* LISTEN
tcp6 0 0 :::5007 :::* LISTEN
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::8443 :::* LISTEN
tcp6 0 0 :::1883 :::* LISTEN
tcp6 0 0 :::445 :::* LISTEN
tcp6 0 0 127.0.0.1:43711 :::* LISTEN
tcp6 0 0 :::9124 :::* LISTEN
tcp6 0 0 127.0.0.1:8101 :::* LISTEN
tcp6 0 0 192.168.1.130:37060 139.162.171.235:443 ESTABLISHED
tcp6 0 0 192.168.1.130:37054 139.162.171.235:443 ESTABLISHED
tcp6 0 0 192.168.1.130:8080 192.168.1.100:61174 ESTABLISHED
tcp6 0 0 192.168.1.130:37056 139.162.171.235:443 ESTABLISHED
tcp6 1 0 192.168.1.130:8080 192.168.1.100:61171 CLOSE_WAIT
tcp6 0 0 192.168.1.130:37046 139.162.171.235:443 ESTABLISHED
tcp6 0 0 192.168.1.130:37042 139.162.171.235:443 ESTABLISHED
tcp6 0 0 192.168.1.130:37052 139.162.171.235:443 ESTABLISHED
tcp6 0 0 192.168.1.130:8080 192.168.1.100:61153 ESTABLISHED
tcp6 0 0 127.0.0.1:48188 127.0.0.1:1883 ESTABLISHED
tcp6 0 0 192.168.1.130:37040 139.162.171.235:443 ESTABLISHED
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp 0 0 0.0.0.0:49433 0.0.0.0:*
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 192.168.1.130:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 192.168.1.255:137 0.0.0.0:*
udp 0 0 192.168.1.130:137 0.0.0.0:*
udp 0 0 0.0.0.0:137 0.0.0.0:*
udp 0 0 192.168.1.255:138 0.0.0.0:*
udp 0 0 192.168.1.130:138 0.0.0.0:*
udp 0 0 0.0.0.0:138 0.0.0.0:*
udp6 0 0 :::5353 :::*
udp6 0 0 :::5353 :::*
udp6 0 0 :::5353 :::*
udp6 3072 0 :::10000 :::*
udp6 0 0 192.168.1.130:38205 :::*
udp6 0 0 :::40789 :::*
udp6 0 0 :::1900 :::*
udp6 0 0 fe80::d516:2dfb:f4a:123 :::*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
raw6 0 0 :::58 :::* 7