diff --git a/projects/IoT/IoT.Shared/DeviceServices/FBee/FBeeService.cs b/projects/IoT/IoT.Shared/DeviceServices/FBee/FBeeService.cs index e6805e27..17da1621 100644 --- a/projects/IoT/IoT.Shared/DeviceServices/FBee/FBeeService.cs +++ b/projects/IoT/IoT.Shared/DeviceServices/FBee/FBeeService.cs @@ -1276,7 +1276,7 @@ namespace IoT.Shared.DeviceServices.FBee else if (clusterId == ClusterId.temperature) { var temperature = BitConverter.ToInt16(props[0x0000]) / 100f; - var desc = temperature < 16 ? "低" : (temperature > 26 ? "高" : "适中"); + var desc = temperature < 16 ? "低" : (temperature > 28 ? "高" : "适中"); var data1 = device.CreateData(Keys.Temperature, temperature, DeviceDataType.Float, "温度", "℃", desc); device.AddorUpdateData(data1); var dto1 = data1.To(); @@ -1286,7 +1286,7 @@ namespace IoT.Shared.DeviceServices.FBee else if (clusterId == ClusterId.humidity) { var humidity = BitConverter.ToInt16(props[0x0000]) / 100f; - var desc = humidity < 40 ? "低" : (humidity > 50 ? "高" : "适中"); + var desc = humidity < 30 ? "低" : (humidity > 80 ? "高" : "适中"); var data1 = device.CreateData(Keys.Humidity, humidity, DeviceDataType.Float, "湿度", "RH%", desc); device.AddorUpdateData(data1); var dto1 = data1.To(); diff --git a/projects/IoT/IoTNode/appsettings.json b/projects/IoT/IoTNode/appsettings.json index 324313b4..857e388c 100644 --- a/projects/IoT/IoTNode/appsettings.json +++ b/projects/IoT/IoTNode/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "Logging": { "LogLevel": { "Default": "Warning", diff --git a/projects/IoTCenter/appsettings.json b/projects/IoTCenter/appsettings.json index 0c412c57..8919826a 100644 --- a/projects/IoTCenter/appsettings.json +++ b/projects/IoTCenter/appsettings.json @@ -1,5 +1,5 @@ { - "version": "1.0.0-rc.10", + "version": "1.0.0-rc.11", "Logging": { "LogLevel": { "Default": "Warning", diff --git a/projects/IoTCenter/wwwroot/node.html b/projects/IoTCenter/wwwroot/node.html index 572edbd6..1fa94994 100644 --- a/projects/IoTCenter/wwwroot/node.html +++ b/projects/IoTCenter/wwwroot/node.html @@ -44,6 +44,14 @@ right: 0; } + .danger { + color: red; + } + + .normal { + color: green; + } + .ptz { width: 100%; } @@ -341,7 +349,9 @@
-

{{GetDeviceDataValue(device.Number,'温度','Description')}}

+

+ {{GetDeviceDataValue(device.Number,'温度','Description')}} +

温度:{{GetDeviceDataValue(device.Number,'温度','Value')}}{{ GetDeviceDataValue(device.Number,'温度','Unit')}} @@ -356,7 +366,9 @@
-

{{GetDeviceDataValue(device.Number,'湿度','Description')}}

+

+ {{GetDeviceDataValue(device.Number,'湿度','Description')}} +

湿度:{{GetDeviceDataValue(device.Number,'湿度','Value')}}{{ GetDeviceDataValue(device.Number,'温度','Unit')}} @@ -371,7 +383,9 @@
-

{{GetDeviceDataValue(device.Number,'PM2.5','Description')}}

+

+ {{GetDeviceDataValue(device.Number,'PM2.5','Description')}} +

PM2.5:{{GetDeviceDataValue(device.Number,'PM2.5','Value')}}{{ GetDeviceDataValue(device.Number,'PM2.5','Unit')}} @@ -379,21 +393,23 @@
- +
@@ -401,7 +417,9 @@
-

{{GetDeviceDataValue(device.Number,'光照度','Description')}}

+

+ {{GetDeviceDataValue(device.Number,'光照度','Description')}} +

{{device.DisplayName||device.Name}} 光照 {{GetDeviceDataValue(device.Number,'光照度','Value')}}{{ GetDeviceDataValue(device.Number,'光照度','Unit')}} @@ -417,6 +435,7 @@
+

正常

{{device.DisplayName||device.Name}} {{GetDeviceDataValue(device.Number,'状态','Value') }} @@ -432,6 +451,7 @@
+

正常

{{device.DisplayName||device.Name}} {{GetDeviceDataValue(device.Number,'状态','Value') }} @@ -441,11 +461,31 @@
- +
+
+
+

{{device.DisplayName||device.Name}}

+
+ {{GetDataValue(device.Number,'状态')}} +
+
+
+
+
+
+ + + +
+
+
+
+
+
-

{{device.DisplayName||device.Name}}

+

{{device.DisplayName||device.Name}}

@@ -462,7 +502,7 @@
-

{{device.DisplayName||device.Name}}

+

{{device.DisplayName||device.Name}}

@@ -510,7 +550,7 @@
-

{{device.DisplayName||device.Name}}

+

{{device.DisplayName||device.Name}}

{{parseFloat(GetDataValue(device.Number,'电量')).toFixed(2)}} kWh
@@ -530,7 +570,7 @@
-

{{device.DisplayName||device.Name}}

+

{{device.DisplayName||device.Name}}

diff --git a/projects/IoTClient/Assets/StreamingAssets/IoT.Resources.csproj b/projects/IoTClient/Assets/StreamingAssets/IoT.Resources.csproj index f76dc3e4..18176fe7 100644 --- a/projects/IoTClient/Assets/StreamingAssets/IoT.Resources.csproj +++ b/projects/IoTClient/Assets/StreamingAssets/IoT.Resources.csproj @@ -11,5 +11,6 @@ + \ No newline at end of file diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/batch.png b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/batch.png index 4003d3a7..c6123332 100644 Binary files a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/batch.png and b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/batch.png differ diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/stop32.png b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/stop32.png new file mode 100644 index 00000000..5ddc4376 Binary files /dev/null and b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/stop32.png differ diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomin.png b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomin.png index 2dd1c410..d249f6e5 100644 Binary files a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomin.png and b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomin.png differ diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomout.png b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomout.png index 093194b0..9d09c3ce 100644 Binary files a/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomout.png and b/projects/IoTClient/Assets/StreamingAssets/wwwroot/images/zoomout.png differ