• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

futurice/whereareyou: Passive indoor localization using WiFi signal strength

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

futurice/whereareyou

开源软件地址(OpenSource Url):

https://github.com/futurice/whereareyou

开源编程语言(OpenSource Language):

Python 45.4%

开源软件介绍(OpenSource Introduction):

whereareyou

Inspired by whereami. Passive indoor localization using the Wifi signal strength of a users devices. A set of slaves (like Raspberry Pis) is distributed at the location and send the signal strengths of detected devices to a master server. Based on a pretrained model the master predicts where the devices currently are located.

Setup

  • Install Cython
    apt-get install cython
  • Install Python dependencies
    pip install -r requirements.txt

Slaves

  • Install aircrack-ng
    apt-get install aircrack-ng

Master

  • Copy example.env to .env and add the appropriate configuration keys. Make sure that HOST holds the URI under which your server is reachable. HOST:5000/gCallback must be configured in your Google API Console to be an authorized OAuth redirect URI.
    cp example.env .env
  • Adapt static/office.svg and static/office_mapping.json to your office (we recommend this online editor). You can test your office mapping at /test_mapping.
  • Create the database initially
    python -c "from master import db, load_locations; db.create_all(); load_locations()"

Usage

Slaves

  • Copy example.run.sh to run.sh and adapt the configuration to your needs
    cp example.run.sh run.sh
    • FLOW_TOKEN - token for the Flowdock channel that should receive notifications when the slave crashes
    • SLAVE_ID - unique identifier of the slave
    • INTERFACE - Wifi interface that can be set to monitor mode
    • NETWORK - Wifi network monitored people should be logged in to
    • MASTER_ADDRESS - Internal IP address of the master server
  • Run bash run.sh on every slave device
  • To run it every time your Linux device finished booting, put this in your /etc/profile file:
CMD="sudo bash /home/pi/whereareyou/run.sh"
COUNT=$(ps aux | grep '$CMD' | wc -l)
if [ $COUNT -eq 1 ]; then
    echo "Starting whereareyou"
    cd /home/pi/whereareyou/
    eval "$CMD &"
fi

Master

  • Run master.py on a device that can be accessed by the slaves in your internal network
    python master



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap