Skip to main content

Update a NodeNs sensor connected to the gateway

Project description

The purpose of this program - NodeNs Update - is to update a NodeNs sensor configuration via the MQTT gateway. The new configuration will be defined through the file: config-gateway.yaml.

Installation

NodeNs Update can be installed using pip:

pip install nodens.update

Troubleshooting

Installing PyYaml. Pip sometimes has trouble installing the PyYaml package. If you experience this, it may be easier to install it manually:

pip install pyyaml

Operation

NodeNs Update can be executed directly from the command line as follows:

python -m nodens.update

It can also be imported as a library into your own scripts: import nodens.update

On execution, as a first step it will search for the configuration file config-update.yaml to define the MQTT broker and other basic settings. The program will first search for the config file in the User's (your) default config folder, and then in the folder you've executed the program from. If the config file is not found, it will create one based on a default configuration. Click here for details of the Configuration.

If a Cloud service operation has been specified, the script will also search for relevant access tokens or certificates.

Configuration

Location of configuration file

The program will search for the configuration file config-gateway.yaml in the following order:

  1. In the user config folder, e.g.
    • Windows: /Users/<user>/AppData/Local/NodeNs/Gateway/
    • Unix: ~/.config/Gateway/
  2. In the current working folder.
  3. In /NodeNs/
  4. In /
  5. Otherwise, a default config file will be created in the user folder, and the program will print its location. Feel free to edit it as necessary!

Description of settings

SENSOR

ROOT_ID : MAC address of the root sensor. SENSOR_ID : MAC address of the sensor to be updated. SENSOR_IP : IP address of the MQTT broker. Default = 10.3.141.1 SENSOR_PORT : Port. 1883 : unsecured. 8883: secured (security keys must be provided).

DATA_TRANSMIT

TRANSMIT_TIME : How often sensor data is sent via Wi-Fi, in seconds. Default = 2. FULL_DATA_FLAG : Flag to capture full-data for diagnostics. Set to 1 to transmit full diagnostics data via Wi-Fi, such as point clouds and micro-Dopplers. Default = 0. FULL_DATA_TIME : Seconds between full-data captures (must be a multiple of TRANSMIT_TIME). Default = 2.

RADAR RADAR_SEND_FLAG : Flag to send new radar configuration. Set to 1 to update the radar configuration. Default = 0. ROOM_X_MIN / ROOM_X_MAX: Monitoring size of area (room or virtual zone) to scan. -X/+X is to the left/right respectively, in meters, from the point-of-view of the sensor. The origin is at (0,0,0). ROOM_Y_MIN / ROOM_Y_MAX: As above. By default, sensor points along Y-axis. +Y is looking forward, from the point-of-view of the sensor. Y must be +ve. The origin is at (0,0,0). ROOM_Z_MIN / ROOM_Z_MAX: As above. Z-axis is room height. -Z/+Z is to the down/up respectively, in meters, from the point-of-view of the sensor. The origin is at (0,0,0).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nodens-update-23.1.0.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

nodens_update-23.1.0-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file nodens-update-23.1.0.tar.gz.

File metadata

  • Download URL: nodens-update-23.1.0.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for nodens-update-23.1.0.tar.gz
Algorithm Hash digest
SHA256 d69602d05e62ca2d6346f161849ad3ce340269f4d71260a63395bc75489f634d
MD5 1e30b3bb8c8a81ddf2a7b4069f97f6cc
BLAKE2b-256 a5b380e5e3137a400e0490a78bd34b63b10f80ce28b5f9824b9a306a7422297f

See more details on using hashes here.

File details

Details for the file nodens_update-23.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nodens_update-23.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5c7dbad367069acbd1b5d2a251b42c5d5ad34f195c54ff73181d18500a1928b
MD5 bd10f71e01debcdc329aa611e68be17b
BLAKE2b-256 bdbe85a92d5e2dac26163d699f5f97834da88d7385ba546300dc1215c3ea73df

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page