Merge sensors messages (#65)
This commit is contained in:
Родитель
51630ec0cc
Коммит
c3dbf9d646
|
@ -22,45 +22,25 @@
|
|||
}
|
||||
},
|
||||
"Properties": {
|
||||
"Type": "Chiller",
|
||||
"Firmware": "1.0.0",
|
||||
"DeviceMethodStatus": "",
|
||||
"Location": "Building 43",
|
||||
"Latitude": 47.638928,
|
||||
"Longitude": -122.13476
|
||||
"Type": "Chiller",
|
||||
"Firmware": "1.0.0",
|
||||
"DeviceMethodStatus": "",
|
||||
"Location": "Building 43",
|
||||
"Latitude": 47.638928,
|
||||
"Longitude": -122.13476
|
||||
},
|
||||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\",\"humidity\":${humidity},\"humidity_unit\":\"${humidity_unit}\",\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "chiller-temperature;v1",
|
||||
"Name": "chiller-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature": "double",
|
||||
"temperature_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"humidity\":${humidity},\"humidity_unit\":\"${humidity_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "chiller-humidity;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature_unit": "text",
|
||||
"humidity": "double",
|
||||
"humidity_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "chiller-pressure;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"humidity_unit": "text",
|
||||
"pressure": "double",
|
||||
"pressure_unit": "text"
|
||||
}
|
||||
|
|
|
@ -32,35 +32,15 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\",\"humidity\":${humidity},\"humidity_unit\":\"${humidity_unit}\",\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "chiller-temperature;v1",
|
||||
"Name": "chiller-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature": "double",
|
||||
"temperature_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"humidity\":${humidity},\"humidity_unit\":\"${humidity_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "chiller-humidity;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature_unit": "text",
|
||||
"humidity": "double",
|
||||
"humidity_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "chiller-pressure;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"humidity_unit": "text",
|
||||
"pressure": "double",
|
||||
"pressure_unit": "text"
|
||||
}
|
||||
|
|
|
@ -29,34 +29,14 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"floor\":${floor}}",
|
||||
"MessageTemplate": "{\"floor\":${floor},\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\",\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "elevator-floor;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"floor": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "elevator-vibration;v1",
|
||||
"Name": "elevator-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"floor": "integer",
|
||||
"vibration": "double",
|
||||
"vibration_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "elevator-temperature;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"vibration_unit": "text",
|
||||
"temperature": "double",
|
||||
"temperature_unit": "text"
|
||||
}
|
||||
|
|
|
@ -29,34 +29,14 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"floor\":${floor}}",
|
||||
"MessageTemplate": "{\"floor\":${floor},\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\",\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "elevator-floor;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"floor": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "elevator-vibration;v1",
|
||||
"Name": "elevator-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"floor": "integer",
|
||||
"vibration": "double",
|
||||
"vibration_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "elevator-temperature;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"vibration_unit": "text",
|
||||
"temperature": "double",
|
||||
"temperature_unit": "text"
|
||||
}
|
||||
|
|
|
@ -30,35 +30,15 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"fuellevel\":${fuellevel},\"fuellevel_unit\":\"${fuellevel_unit}\"}",
|
||||
"MessageTemplate": "{\"fuellevel\":${fuellevel},\"fuellevel_unit\":\"${fuellevel_unit}\",\"coolant\":${coolant},\"coolant_unit\":\"${coolant_unit}\",\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "engine-fuellevel;v1",
|
||||
"Name": "engine-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"fuellevel": "double",
|
||||
"fuellevel_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"coolant\":${coolant},\"coolant_unit\":\"${coolant_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "engine-coolant;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"fuellevel_unit": "text",
|
||||
"coolant": "double",
|
||||
"coolant_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:06",
|
||||
"MessageTemplate": "{\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "engine-vibration;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"coolant_unit": "text",
|
||||
"vibration": "double",
|
||||
"vibration_unit": "text"
|
||||
}
|
||||
|
|
|
@ -30,35 +30,15 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"fuellevel\":${fuellevel},\"fuellevel_unit\":\"${fuellevel_unit}\"}",
|
||||
"MessageTemplate": "{\"fuellevel\":${fuellevel},\"fuellevel_unit\":\"${fuellevel_unit}\",\"coolant\":${coolant},\"coolant_unit\":\"${coolant_unit}\",\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "engine-fuellevel;v1",
|
||||
"Name": "engine-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"fuellevel": "double",
|
||||
"fuellevel_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"coolant\":${coolant},\"coolant_unit\":\"${coolant_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "engine-coolant;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"fuellevel_unit": "text",
|
||||
"coolant": "double",
|
||||
"coolant_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:06",
|
||||
"MessageTemplate": "{\"vibration\":${vibration},\"vibration_unit\":\"${vibration_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "engine-vibration;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"coolant_unit": "text",
|
||||
"vibration": "double",
|
||||
"vibration_unit": "text"
|
||||
}
|
||||
|
|
|
@ -33,35 +33,15 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\",\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\",\"latitude\":${latitude},\"longitude\":${longitude}}",
|
||||
"MessageSchema": {
|
||||
"Name": "prototype-temperature;v1",
|
||||
"Name": "prototype-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature": "double",
|
||||
"temperature_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "prototype-pressure;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature_unit": "text",
|
||||
"pressure": "double",
|
||||
"pressure_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:06",
|
||||
"MessageTemplate": "{\"latitude\":${latitude},\"longitude\":${longitude}}",
|
||||
"MessageSchema": {
|
||||
"Name": "prototype-geolocation;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"pressure_unit": "text",
|
||||
"latitude": "double",
|
||||
"longitude": "double"
|
||||
}
|
||||
|
|
|
@ -32,35 +32,15 @@
|
|||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\"}",
|
||||
"MessageTemplate": "{\"temperature\":${temperature},\"temperature_unit\":\"${temperature_unit}\",\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\",\"latitude\":${latitude},\"longitude\":${longitude}}",
|
||||
"MessageSchema": {
|
||||
"Name": "prototype-temperature;v1",
|
||||
"Name": "prototype-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature": "double",
|
||||
"temperature_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"pressure\":${pressure},\"pressure_unit\":\"${pressure_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "prototype-pressure;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"temperature_unit": "text",
|
||||
"pressure": "double",
|
||||
"pressure_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:06",
|
||||
"MessageTemplate": "{\"latitude\":${latitude},\"longitude\":${longitude}}",
|
||||
"MessageSchema": {
|
||||
"Name": "prototype-geolocation;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"pressure_unit": "text",
|
||||
"latitude": "double",
|
||||
"longitude": "double"
|
||||
}
|
||||
|
|
|
@ -29,36 +29,16 @@
|
|||
},
|
||||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:06",
|
||||
"MessageTemplate": "{\"latitude\":${latitude},\"longitude\":${longitude}}",
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"latitude\":${latitude},\"longitude\":${longitude},\"speed\": ${speed},\"speed_unit\":\"${speed_unit}\",\"cargotemperature\":${cargotemperature},\"cargotemperature_unit\":\"${cargotemperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "truck-geolocation;v1",
|
||||
"Name": "truck-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"latitude": "double",
|
||||
"longitude": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"speed\":${speed},\"speed_unit\":\"${speed_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "truck-speed;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"longitude": "double",
|
||||
"speed": "double",
|
||||
"speed_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"cargotemperature\":${cargotemperature},\"cargotemperature_unit\":\"${cargotemperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "truck-cargotemperature;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"speed_unit": "text",
|
||||
"cargotemperature": "double",
|
||||
"cargotemperature_unit": "text"
|
||||
}
|
||||
|
|
|
@ -29,36 +29,16 @@
|
|||
},
|
||||
"Telemetry": [
|
||||
{
|
||||
"Interval": "00:00:06",
|
||||
"MessageTemplate": "{\"latitude\":${latitude},\"longitude\":${longitude}}",
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"latitude\":${latitude},\"longitude\":${longitude},\"speed\": ${speed},\"speed_unit\":\"${speed_unit}\",\"cargotemperature\":${cargotemperature},\"cargotemperature_unit\":\"${cargotemperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "truck-geolocation;v1",
|
||||
"Name": "truck-sensors;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"latitude": "double",
|
||||
"longitude": "double"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"speed\": ${speed},\"speed_unit\":\"${speed_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "truck-speed;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"longitude": "double",
|
||||
"speed": "double",
|
||||
"speed_unit": "text"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"Interval": "00:00:10",
|
||||
"MessageTemplate": "{\"cargotemperature\":${cargotemperature},\"cargotemperature_unit\":\"${cargotemperature_unit}\"}",
|
||||
"MessageSchema": {
|
||||
"Name": "truck-cargotemperature;v1",
|
||||
"Format": "JSON",
|
||||
"Fields": {
|
||||
"speed_unit": "text",
|
||||
"cargotemperature": "double",
|
||||
"cargotemperature_unit": "text"
|
||||
}
|
||||
|
|
2
version
2
version
|
@ -1 +1 @@
|
|||
0.2.1
|
||||
0.2.2
|
Загрузка…
Ссылка в новой задаче