Name | nodens-gateway JSON |
Version |
24.5.6
JSON |
| download |
home_page | None |
Summary | Run the NodeNs gateway |
upload_time | 2024-05-29 18:00:32 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.7 |
license | The MIT License (MIT) Copyright (c) 2024 Khalid Rajab and NodeNs Medical Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
nodens
gateway
radar
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
The purpose of this program - NodeNs Gateway - is to operate an MQTT gateway for connection to NodeNs sensors. The gateway will detect NodeNs sensors connected to the MQTT host, process their data, and optionally publish to a Cloud service and/or save to local storage.
## Installation
NodeNs Gateway can be installed using pip:
```
pip install nodens.gateway
```
### 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 Gateway can be executed directly from the command line as follows:
```
python -m nodens.gateway
```
It can also be imported as a library into your own scripts:
```import nodens.gateway```
On execution, as a first step it will search for the configuration file ```config-gateway.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](##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 *<System documents folder>/NodeNs/*
4. In *<System documents folder>/*
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
**Program**
*WRITE_FLAG* : Set to *1* if you require sensor data to be saved to disk. Data will be saved in csv form to: *\<current folder>/Saved/*
*CLOUD_WRITE_TIME* : How often data is saved to a Cloud service (if activated)
**Sensor**
*Sensor_IP* : IP address of the MQTT broker. _Default_: 10.3.141.1.
# Thingsboard setup
Thingsboard provisioning: https://thingsboard.io/docs/paas/getting-started-guides/helloworld/#step-1-provision-device
Raw data
{
"_id": null,
"home_page": null,
"name": "nodens-gateway",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "nodens, gateway, radar",
"author": null,
"author_email": "Khalid Z Rajab <khalid@nodens.eu>",
"download_url": "https://files.pythonhosted.org/packages/96/60/c92ded376ba5dd0ff0a1bf1d1fbc4d64f8d104e51368a27f5a4ec29c7f20/nodens_gateway-24.5.6.tar.gz",
"platform": null,
"description": "The purpose of this program - NodeNs Gateway - is to operate an MQTT gateway for connection to NodeNs sensors. The gateway will detect NodeNs sensors connected to the MQTT host, process their data, and optionally publish to a Cloud service and/or save to local storage.\r\n\r\n## Installation\r\nNodeNs Gateway can be installed using pip:\r\n```\r\npip install nodens.gateway\r\n```\r\n\r\n### Troubleshooting\r\n**Installing PyYaml**. Pip sometimes has trouble installing the PyYaml package. If you experience this, it may be easier to install it manually:\r\n```\r\npip install pyyaml\r\n```\r\n\r\n## Operation\r\nNodeNs Gateway can be executed directly from the command line as follows:\r\n```\r\npython -m nodens.gateway\r\n```\r\n\r\nIt can also be imported as a library into your own scripts:\r\n```import nodens.gateway```\r\n\r\nOn execution, as a first step it will search for the configuration file ```config-gateway.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](##Configuration).\r\n\r\nIf a Cloud service operation has been specified, the script will also search for relevant access tokens or certificates.\r\n\r\n## Configuration\r\n### Location of configuration file \r\nThe program will search for the configuration file ```config-gateway.yaml``` in the following order:\r\n\r\n1. In the user config folder, e.g.\r\n - Windows: */Users/\\<user>/AppData/Local/NodeNs/Gateway/*\r\n - Unix: *~/.config/Gateway/*\r\n2. In the current working folder.\r\n3. In *<System documents folder>/NodeNs/*\r\n4. In *<System documents folder>/*\r\n5. 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!\r\n\r\n### Description of settings\r\n\r\n**Program**\r\n\r\n*WRITE_FLAG* : Set to *1* if you require sensor data to be saved to disk. Data will be saved in csv form to: *\\<current folder>/Saved/*\r\n*CLOUD_WRITE_TIME* : How often data is saved to a Cloud service (if activated)\r\n\r\n**Sensor**\r\n\r\n*Sensor_IP* : IP address of the MQTT broker. _Default_: 10.3.141.1.\r\n\r\n\r\n# Thingsboard setup\r\nThingsboard provisioning: https://thingsboard.io/docs/paas/getting-started-guides/helloworld/#step-1-provision-device\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "The MIT License (MIT) Copyright (c) 2024 Khalid Rajab and NodeNs Medical Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Run the NodeNs gateway",
"version": "24.5.6",
"project_urls": {
"Homepage": "https://www.nodens.eu"
},
"split_keywords": [
"nodens",
" gateway",
" radar"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a8e4203c598db946227d81d7596c38be725e8f2470da84ba2d0fbc0a7c72430e",
"md5": "4b87150c972423376284dbab60862928",
"sha256": "67ccafbcf67cbcaec71bdf552e1e66aedd8211bbfb779266e1619f206d422a64"
},
"downloads": -1,
"filename": "nodens_gateway-24.5.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4b87150c972423376284dbab60862928",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 42160,
"upload_time": "2024-05-29T18:00:30",
"upload_time_iso_8601": "2024-05-29T18:00:30.744130Z",
"url": "https://files.pythonhosted.org/packages/a8/e4/203c598db946227d81d7596c38be725e8f2470da84ba2d0fbc0a7c72430e/nodens_gateway-24.5.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9660c92ded376ba5dd0ff0a1bf1d1fbc4d64f8d104e51368a27f5a4ec29c7f20",
"md5": "5167f4b53dca49b6dd12a8ad72e1dc69",
"sha256": "d0ca25555b9ede408f2d61c3776317da4e30f5039273e0b95ddc4a81765a598e"
},
"downloads": -1,
"filename": "nodens_gateway-24.5.6.tar.gz",
"has_sig": false,
"md5_digest": "5167f4b53dca49b6dd12a8ad72e1dc69",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 38604,
"upload_time": "2024-05-29T18:00:32",
"upload_time_iso_8601": "2024-05-29T18:00:32.673680Z",
"url": "https://files.pythonhosted.org/packages/96/60/c92ded376ba5dd0ff0a1bf1d1fbc4d64f8d104e51368a27f5a4ec29c7f20/nodens_gateway-24.5.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-29 18:00:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "nodens-gateway"
}