kootenpv / whereami

Uses WiFi signals :signal_strength: and machine learning to predict where you are
GNU Affero General Public License v3.0
5.1k stars 247 forks source link

Embedd in Python Code #15

Closed DeastinY closed 7 years ago

DeastinY commented 7 years ago

Hi, I did not find any documentation on using this module from other Python code. When importing it does not expose any functionality. Would it be possible to allow other modules to work with whereami ?

kootenpv commented 7 years ago

You'd have to dig into the code as I have indeed not provided ways for people to use it. But you can use this should be the starting point: https://github.com/kootenpv/whereami/tree/master/whereami

For example, you can do something like this:

from whereami.predict import predict
predict()   # equal to the CLI version of predict

The components are in there, but you'll have to nagivate yourself.

kootenpv commented 7 years ago

Ugh, it is so sad that your changes to your fork did not make it upstream :( All you would have had to do was a PR? I'm sad I didn't notice it.

I now updated it in the latest version.