Skip to content

Commit

Permalink
fix/connectors-device-parameters (#13)
Browse files Browse the repository at this point in the history
* chore: Update schema to use object type for device parameters

* chore: Update beacon decoder type in payload-config.jsonc files

* chore: Update biome.jsonc to ignore specific decoder files in linter
  • Loading branch information
mateuscardosodeveloper authored Jun 7, 2024
1 parent f630811 commit ef8fc1a
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 7 deletions.
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"
]
}
}
5 changes: 4 additions & 1 deletion schema/connector_details.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
"description": "Multilingual support for device_annotation field"
}
},
"required": ["description", "networks"],
"required": [
"description",
"networks"
],
"additionalProperties": false
}

0 comments on commit ef8fc1a

Please sign in to comment.