diff --git a/projects/IoTCenter/Views/Home/Node.cshtml b/projects/IoTCenter/Views/Home/Node.cshtml index 6a6e9261..2ea0d90d 100644 --- a/projects/IoTCenter/Views/Home/Node.cshtml +++ b/projects/IoTCenter/Views/Home/Node.cshtml @@ -161,6 +161,7 @@ + @@ -197,7 +198,8 @@ - + + @@ -215,24 +217,8 @@ - - - - - - - - - {{GetDeviceDataValue(device.Number,'PM10','Description')}} - - - - - PM10:{{GetDeviceDataValue(device.Number,'PM10','Value')}}{{ GetDeviceDataValue(device.Number,'PM10','Unit')}} - - - + @@ -250,6 +236,7 @@ + @@ -266,6 +253,7 @@ + diff --git a/projects/IoTCenter/iotcenter.db b/projects/IoTCenter/iotcenter.db index 4e0b571a..6961d24e 100644 Binary files a/projects/IoTCenter/iotcenter.db and b/projects/IoTCenter/iotcenter.db differ diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js.meta b/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js.meta new file mode 100644 index 00000000..8e667c80 --- /dev/null +++ b/projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 86212a52db4fe8149a82b643fc08c9b1 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/projects/IoTClient/Assets/StreamingAssets/wwwroot/node.html b/projects/IoTClient/Assets/StreamingAssets/wwwroot/node.html index 313c2111..ab74cc66 100644 --- a/projects/IoTClient/Assets/StreamingAssets/wwwroot/node.html +++ b/projects/IoTClient/Assets/StreamingAssets/wwwroot/node.html @@ -22,12 +22,131 @@ - + - + + + + 场景 + + + {{scene.Name}} + + + + + + + + + + + + + + + + + {{GetDeviceDataValue(device.Number,'温度','Description')}} + + + 温度:{{GetDeviceDataValue(device.Number,'温度','Value')}}{{ GetDeviceDataValue(device.Number,'温度','Unit')}} + + + + + + + + + + + + + + {{GetDeviceDataValue(device.Number,'湿度','Description')}} + + + 湿度:{{GetDeviceDataValue(device.Number,'湿度','Value')}}{{ GetDeviceDataValue(device.Number,'温度','Unit')}} + + + + + + + + + + + + + + + + {{GetDeviceDataValue(device.Number,'PM2.5','Description')}} + + + PM2.5:{{GetDeviceDataValue(device.Number,'PM2.5','Value')}}{{ GetDeviceDataValue(device.Number,'PM2.5','Unit')}} + + + + + + + + + + + + + + + {{GetDeviceDataValue(device.Number,'光照度','Description')}} + + + 光照 {{GetDeviceDataValue(device.Number,'光照度','Value')}}{{ GetDeviceDataValue(device.Number,'光照度','Unit')}} + + + + + + + + + + + + + + + 正常 + + 红外 {{GetDeviceDataValue(device.Number,'状态','Value') }} + + + + + + + + + + + + + + + 正常 + + 烟雾 {{GetDeviceDataValue(device.Number,'状态','Value') }} + + + + + @@ -38,7 +157,7 @@ - + @@ -72,53 +191,6 @@ - - - - - - - {{device.DisplayName||device.Name}}{{getLightColor(GetDataValue(device.Number,'色调'),GetDataValue(device.Number,'饱和度'),GetDataValue(device.Number,'亮度'))}} - - - - - - - - - - - - - 亮度 - - - - - - - - - - - - - 色调 - - - - - - - - - - - diff --git a/projects/IoTNode/iotnode.db b/projects/IoTNode/iotnode.db index 9cacac9f..58dd46b1 100644 Binary files a/projects/IoTNode/iotnode.db and b/projects/IoTNode/iotnode.db differ