GithubHelp home page GithubHelp logo

st0nedb / rooms Goto Github PK

View Code? Open in Web Editor NEW
63.0 63.0 7.0 46.25 MB

With "Rooms" mobile devices can perform indoor self-localization using an app and low-cost BLE beacons.

License: MIT License

Ruby 0.20% Swift 88.08% Python 11.72%

rooms's People

Contributors

dependabot[bot] avatar st0nedb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rooms's Issues

Add more descriptive instructions

In issue#3 it becomes obvious, that current error descriptions in the app are not very clear. They must be improved with clearer instructions to avoid frustration for users who encounter them.

Beacon ranging does not work when re entering zone

Describe the bug
If one reenters the beacon zone, after leaving it, the function locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) gets called, but predictions are not started.

To Reproduce
Leave zone,
re enter zone
Expected behavior
Ranging should start when re entering zone

unable to train model

Describe the bug

WARNING:root:scikit-learn version 0.24.0 is not supported. Minimum required version: 0.17. Maximum required version: 0.19.2. Disabling scikit-learn conversion API.
WARNING:root:TensorFlow version 1.15.2 detected. Last version known to be fully compatible is 1.15.0 .
Traceback (most recent call last):
  File "roomsModelMaker.py", line 179, in <module>
    X, Y = parseData(jsondata=data, rooms=rooms, nsamples=nsamples, lb=lbinarizer)
  File "roomsModelMaker.py", line 84, in parseData
    data[ii:ii+N] = dd
ValueError: could not broadcast input array from shape (120,2) into shape (120,7)

To Reproduce
Folder has the various rooms .json files in
pipenv working with dependencies listed

Background task is not working probably

Describe the bug
Sometimes the background task doesn't behave like it should.
If the unexpected behavior occurs, the task is dead. Launching the app is needed for it to work probably again. It happens when "Making Fake Move" is performed multiple times instead of only once.
If the expected behavior occurs, it makes a fake move and restarts the background task.

Unexpected behavior

Background task registered
Background task ended.
Making Fake Move.
Making Fake Move.
Making Fake Move.
Room Buero, Likelihood 90.4
Making Fake Move.

OR

Background task registered
Background task ended.
Making Fake Move.
Making Fake Move.
Making Fake Move.
Room Buero, Likelihood 99.6
Making Fake Move.
Making Fake Move.
Room Buero, Likelihood 99.6

Expected behavior

Background task registered
Background task ended.
Making Fake Move.
Room Buero, Likelihood 97.2
Background task registered

Smartphone (please complete the following information):

  • Tested on iOS 14.3, 14.4 and 14.5 Beta 3
  • on iPhone X and iPhone 12 Pro

MQTT not working

Hi,

I was able to get the app installed and the predictions working but I am not able to get it to send the room updates to MQTT.

The MQTT connection test on the settings page works and I can see the test message. Also sometimes it seems to get stuck on the "Starting..." message and won't start predictions until I force close the app.

I am running the app on an iphone Xr with ios 14 using the master branch.

Any suggestions would be appreciated.

Thanks

Issue with coreml (i think)

Hi,

After following all the required steps I have no joy I'm afraid.
The only non-standard setup I have is that I'm not using ESP iBeacons.

The app eventually times out with an "invalid model!" message.

I had used;

MacOS Catalina - 10.15.5 (19F101)
Xcode 11.5 (11E608c) (iv kept all project format to "Xcode 9.3-compatible"
Iphone 7 - Software Version 13.5.1

pipenv install

Creating a virtualenv for this project… Pipfile: /Users/ross/Documents/rooms3/machine-learning-python/Pipfile
Using /usr/local/bin/python3.7m (3.7.8) to create virtualenv…
⠇ Creating virtual environment...created virtual environment CPython3.7.8.final.0-64 in 1178ms creator CPython3Posix(dest=/Users/ross/.local/share/virtualenvs/machine-learning-python-nexj2ZoU, clear=False, global=False) seeder FromAppData(download=False, pip=latest, setuptools=latest, wheel=latest, via=copy, app_data_dir=/Users/ross/Library/Application Support/virtualenv/seed-app-data/v1.0.1) activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator

I have attached a few screenshots, the .json files and a log of the following output

./roomsModelMaker.py --num-beacon 2 --http

(the sample rate is low as, well it was quite frustrating doing all the moving about again and again!)

screenshots.zip
rooms-json.zip
machine-learning.zip

Please let me know if you need further info.
I'd be more than happy to try out any new suggestions.

Prediction always at 90.00% and shows infinite start loading indicator, if screen is switched

Describe the bug
The likelihood percentage is always at 90.00%, no matter in which room I am and if I switch between the screens (i.e. to Settings and back to Prediction), it shows Starting ...
I am using 10 ESP32s running ESPHome with iBeacon enabled with the same uuid and major, but different minors.

Expected behavior
The right likelihood percentage and not the starting loading indicator.
Screenshots
If applicable, add screenshots to help explain your problem.
IMG_1132
IMG_1133

Desktop (please complete the following information):

  • OS: iOS 14.5 beta 4

Smartphone (please complete the following information):

  • Device: iPhone 12 Pro

cloud web Service to train data

Is your feature request related to a problem? Please describe.
everyone has to spin up a pipenv to train their data (when its essentially the same process)
Add Json files, crunch model, spit out result - import to phone.

Describe the solution you'd like
could we spin up a cloud service where the user uploads their models and it provides the results back?
I have a dev Azure subscription I could leverage? not sure how to make a web front end for it though?

Describe alternatives you've considered
not sure if its of value, but thought i'd suggest it

Evaluate altstore.io

Is your feature request related to a problem? Please describe.
Users can't install the App without compiling it for themselves using Xcode.

Describe the solution you'd like
A easier way to install the app.

Describe alternatives you've considered
None.

Additional context
Test out altstore.io and see if it can be used to install and run the app.

Add more detailed compile instructions

Is your feature request related to a problem? Please describe.
New users without Xcode experience might have trouble downloading and compiling the app.

Describe the solution you'd like
Step-by-Step instructions to download, compile and install the app. Possibly including external tutorials on how to install a self-developed app.

Describe alternatives you've considered
This could get obsolete, once #10 is resolved and altstore.io install is available.

Additional context

None

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.