schollz / find

High-precision indoor positioning framework for most wifi-enabled devices.
https://www.internalpositioning.com/
GNU Affero General Public License v3.0
5.03k stars 370 forks source link

Not able to initiate learn command #203

Open rpandey91 opened 6 years ago

rpandey91 commented 6 years ago

I have setup a server using docker. mosquitto, rftcp, findserver are running as per the docker output. But when I'm trying to learn the finger print from using cluster, it is returning html content of the login page. I have enter x.x.x.x:18003 as LF server, where x.x.x.x is my public IP.

Also, i am able to create a group and learn the finger print using android device.

I'm starting cluster using following command

python3 cluster.py learn -u 40:4E:36:1C:12:QC -l location1

Error

〈!DOCTYPE html〉 〈html〉 〈head〉 〈meta charset=utf-8 /〉 〈title〉FIND〈/title〉 〈link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64" href="/static/img/favicon.ico" /〉 〈meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /〉 〈script src="/static/js/jquery-2.0.0.min.js"〉〈/script〉 〈script src='/static/js/bootstrap.js'〉〈/script〉 〈link href="/static/css/bootstrap.min.css" rel="stylesheet"〉 〈link href="/static/css/2-col-portfolio.css" rel="stylesheet"〉 〈link rel="stylesheet" href="/static/font-awesome-4.3.0/css/font-awesome.min.css"〉 〈link rel="stylesheet" href="/static/css/main-landing.css"〉 〈meta name="author" content="Zack Scholl"〉 〈meta name="description" content="" /〉 〈/head〉 〈body〉 〈div class="wrapper"〉 〈header〉 〈div class="logo-container"〉 〈a class="logo" href="" style="background-image: url('/static/img/compass.png')"〉〈/a〉 〈/div〉 〈div class="author-container"〉 〈h1〉FIND〈/h1〉〈/div〉 〈div class="tagline-container"〉 〈p〉A Framework for Internal Navigation and Discovery〈/p〉 〈center〉 〈p align="left"〉Download 〈a href='https://play.google.com/store/apps/details?id=com.hcp.find'〉the Android app〈/a〉〈br〉or〈br〉 Download 〈a href='https://github.com/schollz/find/releases/tag/v0.4client'〉the CLI client〈/a〉〈br〉 to get started.〈/p〉 〈/center〉 〈/div〉 〈/header〉 〈main〉 〈div class="content"〉 〈form action='/login' method='POST'〉 〈input type='text' class="form-control input-lg" name='group' id='group' placeholder='Enter your group' autofocus〉〈/input〉 〈/form〉 〈br〉 〈div class="alert alert-danger" role="alert"〉 Please login first. 〈/div〉 〈/div〉 〈/main〉 〈/div〉 〈/body〉 〈/html〉

Please help