schollz / find-lf

Track the location of every Wi-Fi device (:iphone:) in your house using Raspberry Pis and FIND
https://www.internalpositioning.com/plugins/#using-find-without-an-app
GNU Affero General Public License v3.0
994 stars 123 forks source link

Inaccurate results when using find-lf #11

Open kmic25 opened 7 years ago

kmic25 commented 7 years ago

Hi, I've managed to set up find and find-lf using 5 Raspberry Pis. However I'm not getting accurate results.

My set-up:

Initial plan was to have the one from where I'm initializing the cluser also part of the cluster, however I'm not managing to get it to work with that set-up (it never transmits even though the status says that it's running)

Currently my main issue though is that even after giving it quite some time to learn, it is still highly inaccurate and does not correctly guess which area I'm in - even if I'm exactly next to a PI which is in the cluster and if that's a place from where I initially set it to learn.

Some logs which might be helpful:

When set to learning mode:

Sending to http://192.168.11.21:8003/learn: {"group":"mytest","username":"bcf5acdfa3d9","location":"my_desk","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-59}]}
Sending to http://192.168.11.21:8003/learn: {"group":"mytest","username":"bcf5acdfa3d9","location":"my_desk","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-62}]}

Sending to http://192.168.11.21:8003/learn: {"group":"mytest","username":"bcf5acdfa3d9","location":"window","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-67}]}
Sending to http://192.168.11.21:8003/learn: {"group":"mytest","username":"bcf5acdfa3d9","location":"window","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-51}]}

Sending to http://192.168.11.21:8003/learn: {"group":"mytest","username":"bcf5acdfa3d9","location":"door","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-71}]}
Sending to http://192.168.11.21:8003/learn: {"group":"mytest","username":"bcf5acdfa3d9","location":"door","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-61}]}

When set to tracking mode:

Sending to http://192.168.11.21:8003/track: {"group":"mytest","username":"bcf5acdfa3d9","location":"unknown","timestamp":0,"wifi-fingerprint":[{"mac":"raspberrypi","rssi":-49}]}

fingerprint.go:241: Tracking fingerprint containing 1 APs for bcf5acdfa3d9 (mytest) at window (guess)

(In reality I was back to location 'my_desk' over here)

Any help is greatly appreciated. Thanks

schollz commented 6 years ago

Judging from your logs, it looks like you are only sending a single mac addresses? Can you verify whether your raspberry pi's have different hostnames (this is used to differentiate them).