From ce2e0ac3b0422d15fe31b832f2c9d70da424aa3f Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Thu, 31 Oct 2019 14:55:03 +0800 Subject: [PATCH] update Former-commit-id: 315aa4734f793c161f881bc92383b9fddd13cddd --- projects/IoTCenter/Views/Home/Node.cshtml | 24 +-- projects/IoTCenter/iotcenter.db | Bin 462848 -> 462848 bytes .../StreamingAssets/wwwroot/js/node.js.meta | 7 + .../Assets/StreamingAssets/wwwroot/node.html | 172 +++++++++++++----- projects/IoTNode/iotnode.db | Bin 499712 -> 499712 bytes 5 files changed, 135 insertions(+), 68 deletions(-) create mode 100644 projects/IoTClient/Assets/StreamingAssets/wwwroot/js/node.js.meta 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 4e0b571a3349d24d783c67be367ef35f95abebe4..6961d24eabd0b71240f840db921b9ef270faf6c7 100644 GIT binary patch delta 169 zcmZozAkzRuEsQNpEzB(}Ev#GE7!}w!PB6$a_DpA2U{hw|oHboXfvtlDD0XA|4h1%2 zCPS0$Zxz_?vNJJUntn!u?HqfyAx|iSxZw2N3Ty^UhNjcsDX^JrXV+pAy2i-1Rf_!t zD~pMqvDx%ztn9f=hDOsv+1Lx1P4$eYpI~FR;N{G50P4+n;R?a delta 229 zcmZozAkzRuEsQNpEzB(}Ev#GE7!}wUl^A3hwoGSNU{huS(mD!k9qc)VJfRHY!qXRO zvKcU$7;S&6z;>6NiP3)g84b2`9t^sol8g)t92}v>7AB5PuBJx1hDK)2x+aEhmbw-e z29CPUE=EokriN}tuEr+L`8oMTA*s0qsYQt;rA4VGrUoW2IyXJrv2uE$CY$PZb}crc zYmDq$rPxofvY6_b8&7}6%AU()W->jLjlF=`T+eX&2{v{MKCT=Gpri6~U4f*m=yYCo bb`vHuz3ndS?1^kFCVEDO+gI|khcf{H^fo(* 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 9cacac9f59e68ad378f09cd222daacc9bd794ec9..58dd46b1916534ac815baa5c36dfe61fda08fa64 100644 GIT binary patch delta 215 zcmZoTAlCpyEsQNpEzB(}Ev#GEqDoi{(hLl?$Ca@CjbSlQ1~TI>vaRA^voJBRG&kMO ze~ayF7KdSqfn}<(f#r4{SN5-3oQz5giVPds_$N*0DqvS-p2VVzU7&)!k)4wvyHN*dzPRA@nf2@jOopc0 K&(yPX{o) zzgoy{BEXQ_=m38>o<6Id-GJG|$a4FcdUg{903uvS AKL7v#