ohagendorf
(Olaf Hagendorf)
January 12, 2017, 1:43am
1
I can’t get it to run. When starting: Amazon Dash Button Binding - Search, I’m getting several messages like:
2017-01-12 01:26:07.235 [INFO ] [org.pcap4j.core.Pcaps ] - No NIF was found.
Setting the capabilities seems to be OK:
ubuntu@pine64:~$ getcap /usr/lib/jvm/java-8-openjdk-arm64/jre/bin/java
/usr/lib/jvm/java-8-openjdk-arm64/jre/bin/java = cap_net_admin,cap_net_raw+eip cap_net_bind_service+ep
With the Network Binding the Dash Buttons can be found, I think another indicator that the capabilities are OK.
Running openhab with root rights doesn’t change something.
Maybe @oliver or another one has an idea?
sihui
(SiHui)
January 14, 2017, 11:15am
2
It is not confirmed yet but maybe this is the problem with newer dash buttons:
If have a new button which does not get detected.
I found that if I use https://github.com/maddox/dasher to post to the OpenHab REST API my device works for a while.
It seems that the new buttons if they cannot connect to Amazon stop working locally.
Has anyone seen this with the new buttons ?
ohagendorf
(Olaf Hagendorf)
January 14, 2017, 3:36pm
3
No, they are working well with openHAB running under Windows. And they are working with the Network Binding. But the last one is very suboptimal. And they are a bit older, one of the first available in Germany.
I tried pcap4j standalone at the Pine64 and it seems that the problem lies in the library. It doesn’t find a network interface to start sniffing.
ohagendorf
(Olaf Hagendorf)
January 14, 2017, 3:40pm
4
Btw. tcpdump is working at the Pine64 and it uses also the libpcap lib as well as pcap4j.
oliver
(Oliver Libutzki)
January 14, 2017, 5:59pm
5
Hi @ohagendorf ,
are you really sure that the java binary you provided the capabilities to is the one which openHAB uses?
Kind regards
Oliver
mashborn
(Michael Aschenborn)
February 6, 2017, 6:27pm
6
Did you get it running?
I have a new Dash Button.
I can use it with my Live-OH-System on Raspberry Pi - but it doesnt find a network interface on my Pine64…
Michael
ohagendorf
(Olaf Hagendorf)
February 8, 2017, 4:10pm
7
Unfortunately, it is not yet running. Up to now I didn’t had enough time for further investigation.