Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/connectors-device-parameters #13

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"organizeImports": { "enabled": true },
"linter": {
"ignore": ["node_modules"],
"ignore": ["node_modules", "./decoders/**/v1.0.0/*.ts", "./decoders/**/v1.0.0/payload.js"],
"enabled": true,
"rules": {
"recommended": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,26 @@
"install_text": "**Compact tracker**\n\nMulti-mode tracker with embedded sensors combining GPS, Low-power GPS, Wi-Fi Sniffer, BLE and LoRaWAN TDoA geolocation technologies, supporting accurate outdoor and indoor geolocation.\n \nSolid and lightweight, built for heavy-duty tracking.\nAsset tracking and management, even in the harshest environments.\n3xAA 2.7Ah replaceable batteries, IP 68, ATEX*, temperature & motion sensors.\nUp to 4 years battery life in LP GPS at 24 fix per day.",
"install_end_text": "",
"device_annotation": "",
"device_parameters": [],
"device_parameters": [
{
"name": "beacon_decoder",
"type": "dropdown",
"label": "Beacon decoder type",
"group": "main",
"options": [
{
"is_default": false,
"label": "One variable with all beacons",
"value": "simple"
},
{
"is_default": true,
"label": "Split beacon in different variables",
"value": "splitted"
}
]
}
],
"networks": [
"../../../../network/lorawan-actility/v1.0.0/payload.js",
"../../../../network/lorawan-chirpstack/v1.0.0/payload.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
"install_text": "**Industrial tracker**\n\nMulti-mode tracker with a large battery and embedded sensors combining GPS, Low-power GPS, Wi-Fi Sniffer, and LoRaWAN TDoA geolocation technologies, supporting accurate outdoor and indoor geolocation. \n\nLarge battery, hardened casing, high-precision tracking.\nDesigned to last IP65, 19Ah type D battery.\nUp to 3 years battery life in motion tracking mode at 120 position per day.",
"install_end_text": "",
"device_annotation": "",
"device_parameters": [],
"device_parameters": [
{
"name": "beacon_decoder",
"type": "dropdown",
"options": [
{
"is_default": false,
"label": "One variable with all beacon",
"value": "simple"
},
{
"is_default": true,
"label": "Split beacon in different variables",
"value": "splitted"
}
],
"label": "Beacon decoder type"
}
],
"networks": [
"../../../../network/lorawan-actility/v1.0.0/payload.js",
"../../../../network/lorawan-chirpstack/v1.0.0/payload.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
"install_text": "**Micro tracker**\n\nMulti-mode tracker with embedded sensors combining GPS, Low-power GPS, Wi-Fi Sniffer, BLE and LoRaWAN TDoA geolocation technologies, for accurate outdoor and indoor geolocation. With its small size and long battery life.\n \nLight, handy, yet powerful. Enables you to track and protect things (or people and pets) of value.\nIP 65 – ATEX*, 450mAh rechargeable battery, Buzzer, multimode button.\n\nBattery life :\n* Proximity mode : 5 days to 2 weeks depending on data precision \n* Location mode : 90 days battery life at 40 fix per day with indoor/outdoor positioning.\n",
"install_end_text": "",
"device_annotation": "",
"device_parameters": [],
"device_parameters": [
{
"name": "beacon_decoder",
"type": "dropdown",
"options": [
{
"is_default": false,
"label": "One variable with all beacon",
"value": "simple"
},
{
"is_default": true,
"label": "Split beacon in different variables",
"value": "splitted"
}
],
"label": "Beacon decoder type"
}
],
"networks": [
"../../../../network/lorawan-actility/v1.0.0/payload.js",
"../../../../network/lorawan-chirpstack/v1.0.0/payload.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@
"install_text": "**Smart Badge**\n\nMulti-mode tracker in ID card format with embedded sensors combining GPS, Low-power GPS, Wi-Fi Sniffer, BLE and LoRaWAN TDoA geolocation technologies, supporting accurate and continious outdoor and indoor geolocation. \n\nIdeal for worker protection and zone alerts, IP65, ATEX*, Buzzer with 70dB high volume, industrialized magnetic connector, 1300mAh rechargeable battery, multimode button.\n\nBattery life : \n* Proximity mode : 1 to 2 months depending on data precision\n* Location mode :120 days battery life at 60 fix per day with indoor/outdoor positioning.\n",
"install_end_text": "",
"device_annotation": "",
"device_parameters": [],
"device_parameters": [
{
"name": "beacon_decoder",
"type": "dropdown",
"options": [
{
"is_default": false,
"label": "One variable with all beacon",
"value": "simple"
},
{
"is_default": true,
"label": "Split beacon in different variables",
"value": "splitted"
}
],
"label": "Beacon decoder type"
}
],
"networks": [
"../../../../network/lorawan-chirpstack/v1.0.0/payload.js",
"../../../../network/lorawan-actility/v1.0.0/payload.js",
Expand Down
28 changes: 26 additions & 2 deletions decoders/connector/khomp/its-402/v1.0.0/payload-config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,32 @@
"install_text": "**Khomp IoT Standalone with support for LTE Cat M1, NB-IOT 2 or GPRS networks**\n\nKhomp ITS 402 comunicates via LTE Cat M1, NB-IOT 2 or GPRS networks;\n\nFeatures include:\n* GPS with internal antenna and external antenna connector;\n* MQTT Integration;\n* Internal Relay;\n* Two dry contact or external temperature sensors;\n* Bluetooth Low Energy (BLE) integration for configs;\n\nAlso supports Khomp IoT extensors, including: Relay, Current (4-20 mA), Precision temperature probes and more.\n\n**[More information on official website.](https://www.khomp.com/en/categoria-de-produto/linha-iot-khomp/)**\n\n![](https://api.tago.io/file/5bbcb03b667d7a002e56664b/khomp/logo_khomp.png)",
"install_end_text": "**Device created sucessful**\n\nDon't forget to create an action that triggers the configured MQTT Topic.\n\nParser supports English (EN), Portuguese (PT) and raw languages for value strings.\nChoose in the device configuration parameters.\n\n",
"device_annotation": "Don't forget to create an action that triggers the configured MQTT Topic.\n\nParser supports English (EN), Portuguese (PT) and raw languages for value strings.\nChoose in the device configuration parameters.\n\n**[More information on official website.](https://www.khomp.com/en/categoria-de-produto/linha-iot-khomp/)**\n\n![](https://api.tago.io/file/5bbcb03b667d7a002e56664b/khomp/logo_khomp.png)",
"device_parameters": [],
"device_parameters": [
{
"default": "",
"group": "advanced",
"label": "Available languages: PT, EN, raw",
"name": "language",
"type": "dropdown",
"options": [
{
"is_default": true,
"label": "Português",
"value": "PT"
},
{
"is_default": false,
"label": "English",
"value": "EN"
},
{
"label": "Raw",
"value": "raw"
}
]
}
],
"networks": [
"../../../../network/mqtt/v1.0.0/payload.js"
]
}
}
9 changes: 6 additions & 3 deletions schema/connector_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"type": "array",
"description": "List of device parameters.",
"items": {
"type": "string"
"type": "object"
}
},
"networks": {
Expand All @@ -50,6 +50,9 @@
"description": "Multilingual support for device_annotation field"
}
},
"required": ["description", "networks"],
"required": [
"description",
"networks"
],
"additionalProperties": false
}
}