Helium Positioning API
Project description
Helium Positioning API
Features
Prediction of the location of devices belonging to an organization in the Helium Console. The implementation of several different methods and models is planned.
Currently, only the nearest-hotspot-prediction method is implemented. This method uses the position of the hotspot with the highest signal strength to the corresponding device (RSSI value).
Installation
Developer install
The following allows a user to create a developer install of the positioning api.
pip install -r requirements.txt
poetry install
poetry shell
pip install git+https://github.com/emergotechnologies/helium-api-wrapper
Prerequisites
Before use, ensure that there is an .env
file in the root directory of the repository where the API_KEY
variable is entered (see .env.sample
). You can generate and copy the API_KEY
at https://console.helium.com/profile.
Usage
The service allows usage via command line interface or locally hosted REST interface.
CLI
Get Device Position
python -m helium_positioning_api predict --uuid 92f23793-6647-40aa-b255-fa1d4baec75d
REST-API
- Start local REST-API (default)
python -m helium_positioning_api serve
- Open Browser and navigate to
127.0.0.1:8000/docs
- Click on
predict/{uuid}
endpoint to drop down the endpoint details - Click on the
Try it out
button. - Fill in the
uuid
of your device and click on the buttonExecute
- You can see the location prediction response in the
Responses
section below.
You can also just simply get the prediction by navigating to:
https://127.0.0.1:8000/predict/your-uuid
Contributing
Contributions are very welcome. To learn more, see the Contributor Guide.
License
Distributed under the terms of the MIT license, Helium Positioning API is free and open source software.
Issues
If you encounter any problems, please file an issue along with a detailed description.
Credits
This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file helium_positioning_api-0.0.2.dev1675363498.tar.gz
.
File metadata
- Download URL: helium_positioning_api-0.0.2.dev1675363498.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47265f81c4fdb22aa737de12546e15775e5cd6a8c32456af5c691fd340b4500e |
|
MD5 | 9b86f31bfcd6c48a764804ca34daa1b0 |
|
BLAKE2b-256 | 5c8191f9639ffbdf238d7765948292d26776d79b065cb7cb05b0825b7009bba0 |
File details
Details for the file helium_positioning_api-0.0.2.dev1675363498-py3-none-any.whl
.
File metadata
- Download URL: helium_positioning_api-0.0.2.dev1675363498-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a07aad1129db7eb106b1a846f09d4cba2e0993cb5b39937996a8eda87d972c4 |
|
MD5 | dafe88ec98e23f764972187a2dda9d4d |
|
BLAKE2b-256 | 8d1276f16f300e6cf254d778e57686de83c0098b60512043176c74dfe82a3e05 |