schollz / find Goto Github PK
View Code? Open in Web Editor NEWHigh-precision indoor positioning framework for most wifi-enabled devices.
Home Page: https://www.internalpositioning.com/
License: GNU Affero General Public License v3.0
High-precision indoor positioning framework for most wifi-enabled devices.
Home Page: https://www.internalpositioning.com/
License: GNU Affero General Public License v3.0
This is an easy task, but I can't do it because I don't have a Windows with a wifi-card.
Basically you'll need to run
netsh wlan show networks mode=bssid
And parse the output to collect only the BSSIDs and the Signal strengths. The parser should be included in into here.
I managed to get some output, but I'd love someone else to do this because I can't test it in reality (since I don't have windows with a wifi-card).
Interface name : Wireless Network Connection
There are 11 networks currently visible.
SSID 1 : Bijan
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : c0:c1:c0:f0:6f:cd
Signal : 16%
Radio type : 802.11g
Channel : 6
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 2 : chemed
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : f8:35:dd:0a:da:be
Signal : 38%
Radio type : 802.11n
Channel : 1
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 3 : Remote_Guest
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 00:1a:1e:46:cd:11
Signal : 40%
Radio type : 802.11n
Channel : 1
Basic rates (Mbps) : 1 2
Other rates (Mbps) : 5.5 6 9 11 12 18 24 36 48 54
SSID 4 : telecommuter
Network type : Infrastructure
Authentication : WPA2-Enterprise
Encryption : CCMP
BSSID 1 : 00:1a:1e:46:cd:10
Signal : 40%
Radio type : 802.11n
Channel : 1
Basic rates (Mbps) : 1 2
Other rates (Mbps) : 5.5 6 9 11 12 18 24 36 48 54
SSID 5 : angiebat
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 2c:b0:5d:36:e3:b8
Signal : 38%
Radio type : 802.11g
Channel : 1
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 6 : HP-Print-9F-Deskjet 2540 series
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 58:20:b1:21:63:9f
Signal : 76%
Radio type : 802.11g
Channel : 1
Basic rates (Mbps) :
Other rates (Mbps) : 1 2 5.5 6 9 11 12 18 24 36 48 54
SSID 7 : Wamahahi88
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 98:6b:3d:d7:84:e0
Signal : 18%
Radio type : 802.11n
Channel : 1
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 8 : 18Nascar19
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 80:37:73:87:56:36
Signal : 36%
Radio type : 802.11n
Channel : 11
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 9 : Kalam
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 00:23:69:d4:47:9f
Signal : 36%
Radio type : 802.11g
Channel : 11
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 10 : ToscheStation
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : 80:37:73:ba:f7:d8
Signal : 89%
Radio type : 802.11n
Channel : 8
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
SSID 11 : ToscheStation_EXT
Network type : Infrastructure
Authentication : WPA2-Personal
Encryption : CCMP
BSSID 1 : a0:63:91:2b:9e:65
Signal : 84%
Radio type : 802.11n
Channel : 8
Basic rates (Mbps) : 1 2 5.5 11
Other rates (Mbps) : 6 9 12 18 24 36 48 54
It would be great if we could just go get github.com/schollz/find
to install find
rather than 3 steps to manually build.
2 problems will arise because of this:
Thanks,
lafolle
os.system('rm X') -> os.remove('X')
Need to add Button for the Options screen in https://github.com/schollz/find/blob/android/index.html
Add new variable for tracking interval and prompt in https://github.com/schollz/find/blob/android/main.js
I had to run pip install specifically on "apscheduler" to get it to work. Surprisingly I don't think there was a bug when installing.
Using Python 3.5 on a Mac
Not sure if possible, but perhaps it would work to change APScheduler
-> apscheduler
here:
DELETE /locations?group=X&names=Y,Z,W
I get the following error while trying to learn on my Raspberry Pi 2B.
`00:43:40.694 main - NOTI 006 Running 3 times (you can run more using '-c SOMENUM'). Please wait...
00:43:40.694 main - INFO 007 Scanning Wifi
00:43:40.694 scanWifi - INFO 008 Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'
00:43:40.702 main - WARN 009 Scan failed, will continue after a rest
00:43:43.703 main - INFO 00a Scanning Wifi
00:43:43.704 scanWifi - INFO 00b Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'
00:43:43.715 main - WARN 00c Scan failed, will continue after a rest
00:43:46.717 main - INFO 00d Scanning Wifi
00:43:46.718 scanWifi - INFO 00e Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'
00:43:46.728 main - WARN 00f Scan failed, will continue after a rest`
I tried sudo /sbin/iw dev wlan0 scan -u
and it says nl80211 not found.
Issue brought by https://github.com/ScottSWu in #15.
To quote:
I've toyed around with RSSI on Windows a bit, and unfortunately, netsh will return the exact same scan results for a couple minutes unless you rescan or re-enable wifi. A quick search doesn't really provide any answers on how to initiate a rescan through the command line (other than disconnecting, reconnecting, disabling or re-enabling wifi).
In Window's Native Wifi API, there's an asynchronous WlanScan function which will initiate a scan, along with WlanGetNetworkBssList which can return the received signal strength in dbm (netsh's signal value seems to give a "quality" value). I'm neither too familiar with Go nor ML - would submitting the same fingerprints / non-dbm units affect accuracy of readings?
I'm guessing that's some wakelock problem (or rather lack of one). It would definitely be useful to have it send requests and the same speed as with screen on. Maybe with an optional timeout (default 5 minutes) to avoid draining the battery.
Template:
This Privacy Policy governs the manner in which ml.internalpositioning collects, uses, maintains and discloses information collected from users (each, a "User") of the https://ml.internalpositioning.com website ("Site"). This privacy policy applies to the Site and all products and services offered by ml.internalpositioning.
We may collect personal identification information from Users in a variety of ways, including, but not limited to, when Users visit our site, fill out a form, and in connection with other activities, services, features or resources we make available on our Site.. Users may visit our Site anonymously. We will collect personal identification information from Users ONLY if they voluntarily submit such information to us. Users can always refuse to supply personally identification information, except that it may prevent them from engaging in certain Site related activities.
We may collect non-personal identification information about Users whenever they interact with our Site. Non-personal identification information may include the browser name, the type of computer and technical information about Users means of connection to our Site, such as the operating system and the Internet service providers utilized and other similar information.
Our Site may use "cookies" to enhance User experience. User's web browser places cookies on their hard drive for record-keeping purposes and sometimes to track information about them. User may choose to set their web browser to refuse cookies, or to alert you when cookies are being sent. If they do so, note that some parts of the Site may not function properly.
ml.internalpositioning may collect and use Users personal information for the following purposes:
We adopt appropriate data collection, storage and processing practices and security measures to protect against unauthorized access, alteration, disclosure or destruction of your personal information, password, transaction information and data stored on our Site.
We DO NOT sell, trade, or rent Users personal identification information, or the generic aggregated demographic information, to others.
ml.internalpositioning has the discretion to update this privacy policy at any time. We encourage Users to frequently check this page for any changes to stay informed about how we are helping to protect the personal information we collect. You acknowledge and agree that it is your responsibility to review this privacy policy periodically and become aware of modifications.
By using this Site, you signify your acceptance of this policy. If you do not agree to this policy, please do not use our Site. Your continued use of the Site following the posting of changes to this policy will be deemed your acceptance of those changes.
For me, occurs always, each time I press "Database statistics โ Update".
2016/04/18 18:18:39 [Recovery] panic recovered:
GET /calculate?group=taburet HTTP/1.1
Host: 192.168.1.2:8003
Accept: */*
Accept-Encoding: gzip, deflate, sdch
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4
Connection: keep-alive
Cookie: mysession=MTQ2MDk5MjU5OXxEdi1CQkFFQ180SUFBUkFCRUFBQUp2LUNBQUVHYzNSeWFXNW5EQWNBQldkeWIzVndCbk4wY21sdVp3d0pBQWQwWVdKMWNtVjB8P4MMxlsJmvDPI4v4zL1oG6EpDvYpdz-7rg6lX0VF0OE=
Referer: http://192.168.1.2:8003/dashboard/taburet
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.66 Safari/537.36
X-Requested-With: XMLHttpRequest
runtime error: index out of range
/usr/local/Cellar/go/1.6.1/libexec/src/runtime/panic.go:426 (0x748e9)
gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/local/Cellar/go/1.6.1/libexec/src/runtime/panic.go:15 (0x72db9)
panicindex: panic(indexError)
/Users/kolen/items/gopath/find/priors.go:229 (0x35678)
calculatePriors: ps.Priors[networkName].P[v2.Location][router.Mac][router.Rssi-MinRssi] += PdfType[0]
/Users/kolen/items/gopath/find/priorsThreaded.go:83 (0x3633a)
optimizePriorsThreaded: calculatePriors(group, &ps, fingerprintsInMemory, fingerprintsOrdering)
/Users/kolen/items/gopath/find/api.go:79 (0x32d7)
calculate: optimizePriorsThreaded(strings.ToLower(group))
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/context.go:97 (0x17dfea)
(*Context).Next: c.handlers[c.index](c)
/Users/kolen/items/gopath/src/github.com/gin-gonic/contrib/sessions/sessions.go:65 (0x1e8733)
Sessions.func1: c.Next()
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/context.go:97 (0x17dfea)
(*Context).Next: c.handlers[c.index](c)
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/recovery.go:45 (0x190881)
RecoveryWithWriter.func1: c.Next()
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/context.go:97 (0x17dfea)
(*Context).Next: c.handlers[c.index](c)
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/logger.go:63 (0x18fb1a)
LoggerWithWriter.func1: c.Next()
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/context.go:97 (0x17dfea)
(*Context).Next: c.handlers[c.index](c)
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/gin.go:284 (0x184e42)
(*Engine).handleHTTPRequest: context.Next()
/Users/kolen/items/gopath/src/github.com/gin-gonic/gin/gin.go:265 (0x184a77)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/usr/local/Cellar/go/1.6.1/libexec/src/net/http/server.go:2081 (0x10b9ee)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/usr/local/Cellar/go/1.6.1/libexec/src/net/http/server.go:1472 (0x10829e)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/usr/local/Cellar/go/1.6.1/libexec/src/runtime/asm_amd64.s:1998 (0xa4491)
goexit: BYTE $0x90 // NOP
Just ran into this. Looks absolutely amazing !
But I can't find anything in the info on how to integrate with other systems
like homeassistant.io or mqtt .
Can you give some pointers ?
This is an easy task, but I can't do it because I don't have a Mac.
Basically you'll need to run
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I en0
And parse the output to collect only the BSSIDs and the Signal strengths.
First, I'd be really happy if you can run that command and post the output here!
Second, I'd be thrilled if you'd like to contribute and write the parser. The lines that particularly need help are marked with ???????????????????
:)
it would be nice to get a json response from learning like the following
{
"message": "blah",
"details": {"name":"blah", "APS": 10, "user":"me!"},
"success": true
}
this would make it easier to read with programs utilizing the find system
Because /sbin/iw dev wlan0 scan -u
doesn't work on some Pis, I'd like to also support /sbin/iwlist wlan0 scan
which can get the same information.
I'm looking to edit https://github.com/schollz/find/blob/fingerprint/linux.go to support the output of this command.
The output of this command is as follows:
-> % sudo /sbin/iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 70:73:CB:BD:9F:B5
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=33/70 Signal level=-77 dBm
Encryption key:on
ESSID:"Kahoo"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 00054B61686F6F
IE: Unknown: 010882848B960C121824
IE: Unknown: 030101
IE: Unknown: 0706555320010B1E
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1AAD511BFFFFFF0000000000000000000000000000000000000000
IE: Unknown: 33027E95
IE: Unknown: 3D1601001100000000000000000000000000000000000000
IE: Unknown: 46050200010000
IE: Unknown: DD180050F2020101010003A4000027A4000042435E0062322F00
IE: Unknown: DD0700039301740320
IE: Unknown: DD0E0017F207000101067073CBBD9FB5
IE: Unknown: DD0B0017F20100010100000007
Cell 02 - Address: 80:37:73:BA:F7:D8
Channel:8
Frequency:2.447 GHz (Channel 8)
Quality=70/70 Signal level=-23 dBm
Encryption key:on
ESSID:"ToscheStation"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000D546F7363686553746174696F6E
IE: Unknown: 010882848B961224486C
IE: Unknown: 030108
IE: Unknown: 32040C183060
IE: Unknown: 0706555320010B14
IE: Unknown: 33082001020304050607
IE: Unknown: 33082105060708090A0B
IE: Unknown: 05050001008007
IE: Unknown: DD310050F204104A000110104400010210470010388330923092188392DD803773BAF7D8103C0001011049000600372A000120
IE: Unknown: 2A0100
IE: Unknown: 2D1AEE1117FFFF0000010000000000000000000000000C0000000000
IE: Unknown: 3D1608070600000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A5000027A4000042435E0062322F00
IE: Unknown: 0B0507002A127A
IE: Unknown: DD07000C4307000000
Cell 03 - Address: A0:63:91:2B:9E:65
Channel:8
Frequency:2.447 GHz (Channel 8)
Quality=64/70 Signal level=-46 dBm
Encryption key:on
ESSID:"ToscheStation_EXT"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 0011546F7363686553746174696F6E5F455854
IE: Unknown: 010882848B961224486C
IE: Unknown: 030108
IE: Unknown: 32040C183060
IE: Unknown: 0706555320010B14
IE: Unknown: 33082001020304050607
IE: Unknown: 33082105060708090A0B
IE: Unknown: 050401020008
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD310050F204104A000110104400010210470010B67DE864FA1987CE3B92895B76163803103C0001011049000600372A000120
IE: Unknown: 2A0104
IE: Unknown: 2D1AEE1117FFFF0000010000000000000000000000000C0000000000
IE: Unknown: 3D1608000400000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F080100000000000000
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: 0B05010032127A
IE: Unknown: DD07000C4307000000
Cell 04 - Address: 00:23:69:D4:47:9F
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=39/70 Signal level=-71 dBm
Encryption key:on
ESSID:"Kalam"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 00054B616C616D
IE: Unknown: 010882848B960C121824
IE: Unknown: 03010B
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: DD0900037F01010000FF7F
IE: Unknown: DD0A00037F04010002004000
Cell 05 - Address: 80:37:73:87:56:36
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=49/70 Signal level=-61 dBm
Encryption key:on
ESSID:"18Nascar19"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000A31384E61736361723139
IE: Unknown: 010882848B960C121824
IE: Unknown: 03010B
IE: Unknown: 0706555320010B1B
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32043048606C
IE: Unknown: 2D1AAC011BFF7F000000000000000000000000000000000000000000
IE: Unknown: 331AAC011BFF7F000000000000000000000000000000000000000000
IE: Unknown: 3D160B001100000000000000000000000000000000000000
IE: Unknown: 34160B001100000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F0101
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101050003A4000027A4000042435E0062322F00
IE: Unknown: DD0900037F01010000FF7F
Cell 06 - Address: 2C:B0:5D:36:E3:B8
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=34/70 Signal level=-76 dBm
Encryption key:on
ESSID:"angiebat"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 0008616E676965626174
IE: Unknown: 010882848B962430486C
IE: Unknown: 030101
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: DD7F0050F204104A00011010440001021041000100103B000103104700106AE4C537AABBBEF2ABC4D23B723CD0FA1021000D4E4554474541522C20496E632E10230009574752363134763130102400095747523631347631301042000538333235381054000800060050F204000110110009574752363134763130100800020084
IE: Unknown: DD090010180203F0050000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
Cell 07 - Address: 58:20:B1:21:63:9F
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=41/70 Signal level=-69 dBm
Encryption key:on
ESSID:"HP-Print-9F-Deskjet 2540 series"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 001F48502D5072696E742D39462D4465736B6A6574203235343020736572696573
IE: Unknown: 010802040B0C12161824
IE: Unknown: 030101
IE: Unknown: 2A0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32043048606C
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD890800090004000000070102010002017803284465736B6A6574203235343020736572696573000000000000000000000000000000000000000000040F32353431000000000000000F434E350510434E353737364630353830363034000006101C852A4DB8001F08ABCD5820B121639F0704C0A8010B080200C4090200080A04000000010B0400000000
Cell 08 - Address: 30:8D:99:71:95:C5
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=25/70 Signal level=-85 dBm
Encryption key:on
ESSID:"DIRECT-C4-HP ENVY 5540 series"
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 001D4449524543542D43342D485020454E5659203535343020736572696573
IE: Unknown: 01088C129824B048606C
IE: Unknown: 030106
IE: Unknown: 200100
IE: Unknown: 23021400
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1A20001AFF00000000000000000000000000000000000000000000
IE: Unknown: 3D1606081100000000000000000000000000000000000000
IE: Unknown: DD090010180200000C0000
IE: Unknown: DD180050F202010188000364000027A4000041435E0061322F00
IE: Unknown: DDC10050F204104A000110104400010210570001011041000100103B000103104700101C852A4DB8001F08ABCD308D997195C410210002485010230011454E56592035353430207365726965730010240005353534300010420010544835363237503130503036373100001054000800030050F20400051011001D4449524543542D43342D485020454E56592035353430207365726965731008000200001049000600372A00012010490017000137100600101C852A4DB8001F08ABCD308D997195C4
IE: Unknown: DD5F080009000400000007010201000311454E5659203535343020736572696573000405353534300005105448353632375031305030363731000006101C852A4DB8001F08ABCD308D997195C40704C0A8016A08020054090200080A0400000001
Cell 09 - Address: 4C:60:DE:FE:E5:24
Channel:7
Frequency:2.442 GHz (Channel 7)
Quality=21/70 Signal level=-89 dBm
Encryption key:on
ESSID:"haolinwumian"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000C68616F6C696E77756D69616E
IE: Unknown: 010882840B162430486C
IE: Unknown: 030107
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: DD7F0050F204104A00011010440001021041000100103B00010310470010AC408C00BF87C8150580AF056DDD6CFA1021000D4E4554474541522C20496E632E10230009574752363134763130102400095747523631347631301042000538333235381054000800060050F204000110110009574752363134763130100800020084
IE: Unknown: DD090010180204F0050000
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
Cell 10 - Address: 00:1A:1E:46:CD:10
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=35/70 Signal level=-75 dBm
Encryption key:on
ESSID:"telecommuter"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000C74656C65636F6D6D75746572
IE: Unknown: 010882840B160C121824
IE: Unknown: 03010B
IE: Unknown: 050400010000
IE: Unknown: 2A0102
IE: Unknown: 32043048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : 802.1x
IE: Unknown: 2D1A4C101BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D160B001900000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD07000B8601040815
Cell 11 - Address: 00:1A:1E:46:CD:11
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=33/70 Signal level=-77 dBm
Encryption key:on
ESSID:"Remote_Guest"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000C52656D6F74655F4775657374
IE: Unknown: 010882840B160C121824
IE: Unknown: 03010B
IE: Unknown: 050400010000
IE: Unknown: 2A0102
IE: Unknown: 32043048606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 2D1A4C101BFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D160B001900000000000000000000000000000000000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: DD07000B8601040815
Cell 12 - Address: C0:C1:C0:F0:6F:CD
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=21/70 Signal level=-89 dBm
Encryption key:on
ESSID:"Bijan"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000542696A616E
IE: Unknown: 010882848B962430486C
IE: Unknown: 030106
IE: Unknown: 2A0104
IE: Unknown: 2F0104
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: DD06001018020104
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Cell 13 - Address: C8:B3:73:25:22:51
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=23/70 Signal level=-87 dBm
Encryption key:on
ESSID:"Gao Network"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 000B47616F204E6574776F726B
IE: Unknown: 010882848B962430486C
IE: Unknown: 030106
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: DD06001018020204
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Cell 14 - Address: 8C:09:F4:D3:84:50
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=17/70 Signal level=-93 dBm
Encryption key:on
ESSID:"TG1672G52"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 0009544731363732473532
IE: Unknown: 010882848B961224486C
IE: Unknown: 030106
IE: Unknown: 32040C183060
IE: Unknown: 0706555320010B24
IE: Unknown: 33082001020304050607
IE: Unknown: 33082105060708090A0B
IE: Unknown: 050400010000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD310050F204104A00011010440001021047001036ABEF801DD211B286015753435F5555103C0001011049000600372A000120
IE: Unknown: 2A0100
IE: Unknown: 2D1AEC0117FFFFFF0000000000000000000000000000001846471100
IE: Unknown: 3D1606000100000000000000000000000000000000000000
IE: Unknown: 7F0401000000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: 0B0500002F127A
IE: Unknown: DD07000C4303000000
Cell 15 - Address: 08:95:2A:B1:E9:55
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=23/70 Signal level=-87 dBm
Encryption key:on
ESSID:"TC8715D4F"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
Mode:Master
Extra:tsf=0000000000000000
Extra: Last beacon: 30ms ago
IE: Unknown: 0009544338373135443446
IE: Unknown: 010882848B962430486C
IE: Unknown: 03010B
IE: Unknown: 2A0100
IE: Unknown: 2F0100
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: 32040C121860
IE: Unknown: 0B050000500000
IE: Unknown: 2D1AAD1917FFFFFF0000000000000000000000000000000000000000
IE: Unknown: 3D160B081100000000000000000000000000000000000000
IE: Unknown: 4A0E14000A002C01C800140005001900
IE: Unknown: 7F080500080000000040
IE: Unknown: DD8C0050F204104A0001101044000102103B000103104700109A385BB9DB21A0CA7667A5BF345B5C701021000B546563686E69636F6C6F721023000B546563686E69636F6C6F721024000631323334353610420007303030303030311054000800060050F20400011011000D546563686E69636F6C6F724150100800022008103C0001031049000600372A000120
IE: Unknown: DD090010180200001C0000
IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
IE: Unknown: 46057208010000
IE: Unknown: DD1E00904C0408BF0CB259820FEAFF0000EAFF0000C005000B000000C3020002
/userlocs?group=X&history=Y
This would be my feature request :)
My scenario is, that I'd like to start tracking for a few seconds when connected to my wifi and the accelerometer activates.
I read the information from the find server into my home-automation system and get room-level tracking (tested it, it works well enough for my purposes) to turn on the lights and so on.
A nice to have would be a configurable tracking interval, but I guess I could do that myself even without android experience and recompile it ;)
Basically just these two routes.
Happens both when I compile from source or using the updated Binary.
System: Raspberry PI running raspbian jessie
go version go1.5.1 linux/arm
It works fine manually starting both.
Error log from the binary:
systemd[1]: Starting Find Server...
systemd[1]: Started Find Server.
find[16740]: panic: html/template: pattern matches no files: `templates/*`
find[16740]: goroutine 1 [running]:
find[16740]: panic(0x4862e8, 0x10963000)
find[16740]: C:/Go/src/runtime/panic.go:464 +0x330
find[16740]: html/template.Must(0x0, 0x76e69000, 0x10963000, 0x76e69000)
find[16740]: C:/Go/src/html/template/template.go:340 +0x4c
find[16740]: github.com/gin-gonic/gin.(*Engine).LoadHTMLGlob(0x10a25030, 0x520610, 0xb)
find[16740]: C:/Users/ZNS/work/src/github.com/gin-gonic/gin/gin.go:129 +0x148
find[16740]: main.main()
find[16740]: C:/cygwin64/home/ZNS/find2/server.go:71 +0x280
systemd[1]: find.service: main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1]: Unit find.service entered failed state.
My find.service file:
[Unit]
Description=Find Server
After=network.target
[Service]
Type=simple
User=root
ExecStart=/root/find/find
WorkingDirectory=/root/find
[Install]
WantedBy=multi-user.target
Tried it without the WorkingDirectory=
part, made no difference.
Use a uuid for the group internally and user entered string to display
Hi,
I just noticed that you changed the license from apache to gpl or agpl: 45186a1
In the README it's written GPL but in the license file it's written AGPL.
Is there a chance to keep this great library under a license without a strong copyleft, like LGPL or MPL?
Best Regards,
Fabien
Hi!
Just wanna start by saying I love the project!
I just did a quick look over on the code/install process and I noticed the setup script downloads a package of go compiled binaries (calculate.zip) that im assuming (thanks to the name and size) is the brains of the operation. Looking at internalpositioning.com it says:
"We have kept the useful part of FIND open-source, so that you can use it for your own projects. "
...followed by a link to this repo.
Dont get me wrong all of that is great, but you might want to not say that the code hosted here is open source without at least mentioning that the setup process downloads a (seemingly pretty important) closed source component or maybe add a prompt in the installer to alert the user that the download is about to happen...or better yet open the source ;-)?
Thanks for all the hard work!
A
Dumps three things for each database entry:
route key JSON string
/learn 1239812 '{....}'
Databases should be easily recapitulated from this.
Maybe just dump everything as a CURL?
/whereami
What does it do? Should it be changed/removed/renamed?
/location/:group/:user
What does it do? Should it be changed/removed/renamed?
/userlocs
What does it do? Should it be changed/removed/renamed?
/learn
and /track
Both require a POST
with the data for the wifi fingerprints.
{
"group":"whatevergroup",
"username":"iamauser",
"time": 1409108787,
"location":"office",
"wifi-fingerprint":
[
{
"mac": "AA:AA:AA:AA:AA:AA",
"rssi": -45,
},
{
"mac": "BB:BB:BB:BB:BB:BB",
"rssi": -55,
}
]
}
Of course, /track
ignores the location
parameter, but you still should include it. time
is also currently ignored, but may be used in the future.
14:22:53.959 main - INFO 05a Scanning Wifi
14:22:53.959 scanWifi - INFO 05b Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'
14:22:53.962 main - CRIT 05c Are you sure this computer has WiFi enabled?
14:22:53.962 main - CRIT 05d exit status 240
Solution: just try again. Wait until errors accumulate. I.e. don't exit until 3+ errors in a row occur.
Sometimes Android app loses data collected during time where there was no connection to server. Sometimes it works correctly and uploads data later.
Check out this graph: https://ml.internalpositioning.com/explore/pi/apartment/kitchen
If you want to click on an individual router when you hover over it becomes very difficult because it disappears as you hover away.
Using "bed" and "couch" as positions, after recalculating priors, still always unknown position. This happens both using the online demo as well as running my own server. Here a dump, in case that might help:
11-22 10:58:08 routing-fingerprinting DEBUG got POST from pas (pasje) posting bed fingerprint to /track
MODIFIED ROUTINE TOOK 0.0014650821685791016
11-22 10:58:08 posteriors.processTrackingFingerprint WARNING No GPX for bed
11-22 10:58:08 posteriors.processTrackingFingerprint DEBUG [('bed', nan), ('big couch', nan)]
11-22 10:58:08 posteriors.processTrackingFingerprint WARNING pas (pasje) at bed with prob ratio: nan/nan
{'message': 'Saved to database /track', 'position': [('bed', nan), ('big couch', nan)], 'success': True}
11-22 10:58:08 tornado.access INFO 200 POST /track (192.168.2.2) 4.84ms
11-22 10:58:11 routing-fingerprinting DEBUG got POST from pas (pasje) posting bed fingerprint to /track
11-22 10:58:11 posteriors.processTrackingFingerprint DEBUG adding 98:f5:37:52:5a:76
11-22 10:58:11 posteriors.processTrackingFingerprint DEBUG adding 62:02:92:49:1b:f8
11-22 10:58:11 posteriors.processTrackingFingerprint DEBUG adding 00:14:7f:76:51:39
MODIFIED ROUTINE TOOK 0.0011620521545410156
11-22 10:58:11 posteriors.processTrackingFingerprint WARNING No GPX for bed
11-22 10:58:11 posteriors.processTrackingFingerprint DEBUG Saving bulk tracking data for pas
11-22 10:58:11 mldatabase:insertFingerprint DEBUG Successfully inserted 2 fingerprints to "track"
11-22 10:58:11 posteriors.processTrackingFingerprint DEBUG [('bed', nan), ('big couch', nan)]
11-22 10:58:11 posteriors.processTrackingFingerprint WARNING pas (pasje) at bed with prob ratio: nan/nan
{'message': 'Saved to database /track', 'position': [('bed', nan), ('big couch', nan)], 'success': True}
11-22 10:58:11 tornado.access INFO 200 POST /track (192.168.2.2) 6.76ms
11-22 10:58:13 routing-fingerprinting DEBUG got POST from pas (pasje) posting bed fingerprint to /track
MODIFIED ROUTINE TOOK 0.0014197826385498047
11-22 10:58:13 posteriors.processTrackingFingerprint WARNING No GPX for bed
11-22 10:58:13 posteriors.processTrackingFingerprint DEBUG [('bed', nan), ('big couch', nan)]
11-22 10:58:13 posteriors.processTrackingFingerprint WARNING pas (pasje) at bed with prob ratio: nan/nan
{'message': 'Saved to database /track', 'position': [('bed', nan), ('big couch', nan)], 'success': True}
11-22 10:58:13 tornado.access INFO 200 POST /track (192.168.2.2) 4.90ms
11-22 10:58:15 routing-fingerprinting DEBUG got POST from pas (pasje) posting bed fingerprint to /track
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG adding 6a:f5:37:52:5a:77
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG adding ee:55:f9:7b:0f:dd
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG adding 9c:80:df:d0:8c:a0
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG adding 52:95:7f:50:cc:e7
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG adding 60:02:92:49:1b:f7
MODIFIED ROUTINE TOOK 0.0011739730834960938
11-22 10:58:15 posteriors.processTrackingFingerprint WARNING No GPX for bed
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG Saving bulk tracking data for pas
11-22 10:58:15 mldatabase:insertFingerprint DEBUG Successfully inserted 2 fingerprints to "track"
11-22 10:58:15 posteriors.processTrackingFingerprint DEBUG [('bed', nan), ('big couch', nan)]
11-22 10:58:15 posteriors.processTrackingFingerprint WARNING pas (pasje) at bed with prob ratio: nan/nan
{'message': 'Saved to database /track', 'position': [('bed', nan), ('big couch', nan)], 'success': True}
11-22 10:58:15 tornado.access INFO 200 POST /track (192.168.2.2) 7.09ms
11-22 10:58:17 routing-fingerprinting DEBUG got POST from pas (pasje) posting bed fingerprint to /track
11-22 10:58:17 posteriors.processTrackingFingerprint DEBUG adding 62:02:92:49:1b:f8
MODIFIED ROUTINE TOOK 0.0014040470123291016
11-22 10:58:17 posteriors.processTrackingFingerprint WARNING No GPX for bed
11-22 10:58:17 posteriors.processTrackingFingerprint DEBUG [('bed', nan), ('big couch', nan)]
11-22 10:58:17 posteriors.processTrackingFingerprint WARNING pas (pasje) at bed with prob ratio: nan/nan
{'message': 'Saved to database /track', 'position': [('bed', nan), ('big couch', nan)], 'success': True}
11-22 10:58:17 tornado.access INFO 200 POST /track (192.168.2.2) 5.10ms
11-22 10:58:19 routing-fingerprinting DEBUG got POST from pas (pasje) posting bed fingerprint to /track
11-22 10:58:19 posteriors.processTrackingFingerprint DEBUG adding 84:18:3a:3b:e9:b8
MODIFIED ROUTINE TOOK 0.0013890266418457031
11-22 10:58:19 posteriors.processTrackingFingerprint WARNING No GPX for bed
11-22 10:58:19 posteriors.processTrackingFingerprint DEBUG Saving bulk tracking data for pas
11-22 10:58:19 mldatabase:insertFingerprint DEBUG Successfully inserted 2 fingerprints to "track"
11-22 10:58:19 posteriors.processTrackingFingerprint DEBUG [('bed', nan), ('big couch', nan)]
11-22 10:58:19 posteriors.processTrackingFingerprint WARNING pas (pasje) at bed with prob ratio: nan/nan
{'message': 'Saved to database /track', 'position': [('bed', nan), ('big couch', nan)], 'success': True}
11-22 10:58:19 tornado.access INFO 200 POST /track (192.168.2.2) 6.71ms
Make icon light BLUE so it shows up on dark screens
Add info "
F-Droid is a catalogue of libre software for Android. It would be great to have your app there!
find
is the name of an ubiquitous and well known unix command. Would you ever consider renaming the resulting binary to something else in order to avoid conflicts and confusion?
See the timestamps. 14:17 everything was fine, a few tracks worked when I started tracking again 22:20:03 but at 22:20:06 the server suddenly stopped knowing about the location "living room".
A get to /location
gave
{
"time": "2016-04-20 22:22:55.197597089 +0200 CEST",
"location": "",
"bayes": {}
}
After I set the client to "learn" for 30 seconds and recalculated priors, everything was fine again. As I did both I can't say which one helped.
DEBUG: 2016/04/20 14:17:10 fingerprint.go:146: Tracking fingerprint for cwagner (home) at living room (guess)
[GIN] 2016/04/20 - 14:17:10 | 200 | 7.306876ms | 192.168.1.30 | POST /track
DEBUG: 2016/04/20 22:20:03 fingerprint.go:146: Tracking fingerprint for cwagner (home) at living room (guess)
[GIN] 2016/04/20 - 22:20:03 | 200 | 312.958369ms | 192.168.1.30 | POST /track
DEBUG: 2016/04/20 22:20:04 fingerprint.go:146: Tracking fingerprint for cwagner (home) at living room (guess)
[GIN] 2016/04/20 - 22:20:04 | 200 | 363.595676ms | 192.168.1.30 | POST /track
DEBUG: 2016/04/20 22:20:06 fingerprint.go:146: Tracking fingerprint for cwagner (home) at living room (guess)
[GIN] 2016/04/20 - 22:20:06 | 200 | 7.011619ms | 192.168.1.30 | POST /track
WARN : 2016/04/20 22:20:09 posterior.go:18: Not in network
DEBUG: 2016/04/20 22:20:09 posterior.go:19: none false map[] {home cwagner tracking []}
DEBUG: 2016/04/20 22:20:09 fingerprint.go:146: Tracking fingerprint for cwagner (home) at (guess)
I guess I did something to my computer to make this not work, but perhaps there is a way for you to change this somehow:
socket.gethostname() == 'MBP' # True
socket.gethostbyname(socket.gethostname())
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
At the moment I just hardcoded it to 127.0.0.1
instead.
Basically, there should be a command that allows you to move everything in the fingerprints
table and the fingerprints-track
table to a previously existing database.
============================================
..................
Traceback (most recent call last):
File "server.py", line 8, in <module>
from libraries.routing import *
File "C:\Users\Jerry\Desktop\find-master\libraries\routing.py", line 1049, in <module>
launch()
File "C:\Users\Jerry\Desktop\find-master\libraries\routing.py", line 1041, in launch
cleanDBs()
File "C:\Users\Jerry\Desktop\find-master\libraries\routing.py", line 1004, in cleanDBs
group = name.split('data/')[1].split('.db')[0]
IndexError: list index out of range
==============================================
Where will this go? With a roadmap people might be able to help by contributing.
The old API is now outdate, I will work on making a new one. The API will be written once I freeze all the routes. Right now the only frozen routes are /learn
, and /track
. The routes /userlocs
,/whereami
, /location
might change, beware.
Basically, the most important info is the wifi fingerprint:
{
"group":"whatevergroup",
"username":"iamauser",
"time": 1409108787,
"location":"office",
"wifi-fingerprint":
[
{
"mac": "AA:AA:AA:AA:AA:AA",
"rssi": -45,
},
...
{
"mac": "BB:BB:BB:BB:BB:BB",
"rssi": -55,
}
]
}
via #31
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.