Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Helium Positioning API

PyPI Status Python Version License

Read the documentation at https://helium-positioning-api.readthedocs.io/ Tests Codecov

pre-commit Black

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

Currently defaults to the "nearest_neighbor" model.

Advanced Requests

The location prediction command is

python -m helium_positioning_api predict --uuid 'your uuid' --model 'your model selection'

See the table below for a list of currently available commands and models.

command position estimation model
nearest_neighbor location of hotspot with the best signal
midpoint point of equal distance from the two hotspots with the best signals
linear_regression trilateration with an linear regression distance estimator
gradient_boosting trilateration with a gradient boosted regression distance estimator

REST-API

  1. Start local REST-API (default)
    python -m helium_positioning_api serve
    
  2. Open Browser and navigate to 127.0.0.1:8000/docs
  3. Click on predict/{uuid} endpoint to drop down the endpoint details
  4. Click on the Try it out button.
  5. Fill in the uuid of your device and click on the button Execute
  6. 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.

Metadata

Release files for helium-positioning-api 0.0.2.dev1675699212

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for helium-positioning-api 0.0.2.dev1675699212
File Size Uploaded
helium_positioning_api-0.0.2.dev1675699212.tar.gz 13.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for helium-positioning-api 0.0.2.dev1675699212
File Interpreter ABI Platform
helium_positioning_api-0.0.2.dev1675699212-py3-none-any.whl Python 3 none any Details

Total release size: 26.9 kB

Release files / helium_positioning_api-0.0.2.dev1675699212.tar.gz

Download URL helium_positioning_api-0.0.2.dev1675699212.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
91131837dbe38658305350d71b80ea7c17ed245e5363ca4d1e6a06044d01cc3e
BLAKE2b-256 checksum
How to use checksums
0ee484d4bd76e541faabbc34e5594da8023a13a84ed7b4d27ae65f0bb6fbdd02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / helium_positioning_api-0.0.2.dev1675699212-py3-none-any.whl

Download URL helium_positioning_api-0.0.2.dev1675699212-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
607d7aea936e6f80d3aa4bb5b662bcbc0b5e42ef9d38945f500eb17f0e70bcad
BLAKE2b-256 checksum
How to use checksums
a57ba7f8166eb5cc480b1e8709d1cfeadf4c93fd2f8511b3790afa41b4fed7ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page