Skip to content
项目

关于

Node.js module to predict indoor location using machine learning and WiFi information 📶

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
-1
15天
-2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

whereami.js

(Side project not intended to be used in production applications)

Node.js module to predict indoor location using machine learning and wifi information.

Inspired by the Python module whereami by kootenpv

Built using node-wifi and random-forest-classifier

How to use

Install

npm install whereami.js

Record data

In each room you'd like to use, record data by using the command whereamijs learn <room>.

Example:

whereamijs learn kitchen // or -l kitchen

The output of running this command will be a JSON file saved in a whereamijs-data folder with the wifi info.

This command takes a few seconds to get wifi data and save it

Predict

After recording training data with the learn command, run the predict command to get the room predicted from live data.

whereamijs predict // or -p

List rooms

You can list the rooms you already have data for, using the rooms or -r command.

whereamijs rooms // or -r

Applications

Here are some ideas of what it could be used for:

  • IoT: Turn on/off lights based on which room you're in.
  • Pause TV when leaving a room.
  • Block notifications when in the bedroom.

Run/develop locally

Clone this repo, cd into it and run node server.js learn <room> or node.js server predict.

探索相关项目

加载中…