Coder Social home page Coder Social logo

spuristo's Introduction

spuristo

spuristo is a CLI application that utilizes bluetooth and linear regression to guess the number of people in the vicinity of a device.

This project has a lot of work that remains to be done at the time of writing this.

Get started

todo™️

Options

--adapter		Specify the name of the bluetooth adapter that will be used.
			Default is set to "hci0". Do not touch if you don't know what you're doing.

--threshold		Specify the minimum connection strength in dBm required to "count" a device.
			Default is set to -75 dBm

--training		Run the application in training mode. This will enter all datapoints into a
			separate database table used for training the model when running in production.

A note about CLI arguments

There's a known issue about the --threshold argument where inputing negative numbers are not properly supported. In order to mitigate this, you need to use the following syntax

spuristo --threshold=-75

This is detailed in issue #3

Contribute

This project is meant to be a fun hobby project allowing me to solve the problem of not knowing how many people are at the place I hang out at school, while also giving me an excuse to learn Rust. Therefore I wish to keep contributions to a minimal in order to force myself to learn and figure out the ways of Rust. The exceptions to this are issues marked with the Help wanted tag.

spuristo's People

Contributors

lblend avatar

Stargazers

 avatar  avatar

Watchers

 avatar

spuristo's Issues

negative numbered CLI args cannot be parsed properly

since - is a reserved character for specifying args, the program cannot parse the threshold CLI arg properly when given a negative number

The way to mitigate this issue is to use the --argname=argvalue syntax, i.e --threshold=-75

There should be an instruction telling you to use this syntax or be implemented a solution that parses it properly when used in this manner --threshold -75

Signal strength threshold not being properly enforced

The way the signal strength threshold is enforced may be problematic and cause the application to count the wrong number of devices.

This will happen all of the following happens:

  1. A device enters the vicinity of the threshold and triggers a DeviceAdded event
  2. The device goes outside the threshold but stays within the vicinity of the host device, not causing a DeviceRemoved event.

This is a critical bug because it may cause the application to gather bad data during training.

The bluer library which is used doesn't seem to provide any way to continuously check the signal strength of connected devices. Therefore it is likely that this library will need to be replaced. I don't know any other way of fixing it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.