Last modified by Hera Guo on 2024/11/11 17:08

From version 38.1
edited by Hera Guo
on 2024/11/07 08:58
Change comment: There is no comment for this version
To version 19.1
edited by Hera Guo
on 2024/11/05 09:51
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -57,7 +57,7 @@
57 57  
58 58  **device:**This section displays the specific information collected by the device, and different types of sensors have different display interfaces
59 59  
60 -[[image:屏幕截图 2024-11-04 134645.png]]
60 +[[image:1730699212334-960.png]]
61 61  
62 62  First floor:
63 63  
... ... @@ -82,7 +82,7 @@
82 82  
83 83  High Temperature、Low Temperature、High humidity、Low humidity、Low voltage、Device Disconnected
84 84  
85 -[[image:屏幕截图 2024-11-04 135045.png]]
85 +[[image:1730699566023-958.png]]
86 86  
87 87  = 4.configuration details =
88 88  
... ... @@ -92,48 +92,58 @@
92 92  
93 93  === 4.1.1.Data source (Entity aliases) ===
94 94  
95 -detail:Obtain data based on dashboard status
95 +Asset map:
96 96  
97 +[[image:1730709409941-536.png||height="729" width="1440"]]
98 +
99 +detail:
100 +
97 97  [[image:1730709424998-915.png||height="729" width="1436"]]
98 98  
99 -Alarm:Obtain alarm information
103 +devid:
100 100  
105 +[[image:1730709442773-502.png||height="738" width="1434"]]
106 +
107 +State:
108 +
109 +[[image:1730709461297-207.png||height="706" width="1434"]]
110 +
111 +Alarm:
112 +
101 101  [[image:1730709479828-595.png||height="696" width="1435"]]
102 102  
103 -Dragino&GXHL,Ltd:Obtain data through asset types
115 +Dragino&GXHL,Ltd:
104 104  
105 105  [[image:1730709511861-439.png||height="714" width="1435"]]
106 106  
107 -Selected Supermarket:Retrieve devices by device type
119 +Selected Supermarket:
108 108  
109 109  [[image:1730709527720-418.png||height="751" width="1433"]]
110 110  
111 -Supermarket Devices:Obtain data through device type
123 +Supermarkets:
112 112  
113 -[[image:1730709555797-383.png||height="726" width="1434"]]
125 +[[image:1730709542597-321.png||height="734" width="1435"]]
114 114  
115 -LHT65N Device:Obtain data based on device type
127 +Supermarket Devices:
116 116  
117 -[[image:1730857191863-514.png||height="725" width="1433"]]
129 +[[image:1730709555797-383.png||height="726" width="1434"]]
118 118  
131 +
119 119  === 4.1.2.Page Configuration ===
120 120  
121 121  ==== 4.1.2.1、Configure the interface of the third layer Davies. ====
122 122  
136 +
123 123  ==== 4.1.2.2、Configure the interface of the second layer asset ====
124 124  
125 -===== 4.1.2.2.1 Equipment distribution diagram: =====
139 +**Equipment distribution diagram:**
126 126  
127 127  **Data:**
128 128  
129 129  [[image:1730770392454-317.png||height="745" width="1439"]]
130 130  
131 -**Appearannce:**In this module, we need to arrange our devices in the corresponding positions and use icons to display our devices. Therefore, in the Appearance interface, we need to configure them
145 +Tooltip function
132 132  
133 -**Tooltip function:**This module displays the current information of the device
134 -
135 -[[image:1730857537965-184.png]]
136 -
137 137  {{code language="none"}}
138 138  var msg = data
139 139  if(msg.Label=="gateway" && msg.type == "gateway"){
... ... @@ -159,12 +159,8 @@
159 159  }
160 160  {{/code}}
161 161  
162 -(% class="wikigeneratedid" id="HMarkerimagefunctionFF1A" %)
163 -**Marker image function:**This module can display different icons based on different types of sensors and their status to achieve its functionality
172 +==== Marker image function: ====
164 164  
165 -(% class="wikigeneratedid" %)
166 -[[image:1730857750749-240.png]]
167 -
168 168  {{code language="none"}}
169 169  var res
170 170  var msg = data
... ... @@ -254,11 +254,9 @@
254 254  return res;
255 255  {{/code}}
256 256  
257 -(% class="wikigeneratedid" %)
258 -[[image:1730770875793-351.png]]
263 +==== [[image:1730770875793-351.png]] ====
259 259  
260 -(% class="wikigeneratedid" %)
261 -**Actions:**We need to implement the function of entering the details interface through the corresponding device icon, so in this module, we need to add actions to achieve redirection
265 +==== Actions ====
262 262  
263 263  {{code language="none"}}
264 264  var entitySubType;
... ... @@ -319,22 +319,18 @@
319 319  
320 320  [[image:1730771103096-522.png]]
321 321  
322 -===== 4.1.2.2.2 Device List =====
326 +Device List
323 323  
324 -(% class="wikigeneratedid" id="HDataFF1A" %)
325 -**Data:**
328 +Data:
326 326  
327 327  [[image:1730771199343-553.png]]
328 328  
329 -**Actions:**Equipment distribution diagram: In this module, functions need to be implemented such as adding devices, editing devices, deleting devices, and jumping to the device details page. Therefore, the following actions need to be added:
332 +Actions:
330 330  
331 331  [[image:1730771228766-212.png]]
332 332  
333 -(% class="wikigeneratedid" id="HEditdeviceFF1A" %)
334 -**Edit device:**Implementation function: Device editing
336 +==== Edit device: ====
335 335  
336 -[[image:1730771256045-238.png]]
337 -
338 338  {{code language="none"}}
339 339  let $injector = widgetContext.$scope.$injector;
340 340  let customDialog = $injector.get(widgetContext.servicesMap.get('customDialog'));
... ... @@ -431,10 +431,9 @@
431 431  }
432 432  {{/code}}
433 433  
434 -(% class="wikigeneratedid" id="H" %)
435 -**Delete device:**Implementation function: Device deletion
434 +==== [[image:1730771256045-238.png]] ====
436 436  
437 -[[image:1730771318657-502.png]]
436 +Delete device
438 438  
439 439  {{code language="none"}}
440 440  let $injector = widgetContext.$scope.$injector;
... ... @@ -465,9 +465,9 @@
465 465  
466 466  {{/code}}
467 467  
468 -**jump:I**mplementation function: Jump to the device details page
467 +[[image:1730771318657-502.png]]
469 469  
470 -[[image:1730771386258-676.png]]
469 +jump
471 471  
472 472  {{code language="none"}}
473 473  console.log(entityName)
... ... @@ -526,10 +526,9 @@
526 526  }
527 527  {{/code}}
528 528  
529 -(% class="wikigeneratedid" id="H-1" %)
530 -**Add device:**Implementation function: Add device
528 +==== [[image:1730771386258-676.png]] ====
531 531  
532 -[[image:1730771441589-122.png]]
530 +Add device
533 533  
534 534  {{code language="none"}}
535 535  let $injector = widgetContext.$scope.$injector;
... ... @@ -594,27 +594,27 @@
594 594  }
595 595  {{/code}}
596 596  
597 -==== ====
595 +==== [[image:1730771441589-122.png]] ====
598 598  
599 -===== **4.1.2.2.3 Asset Alarm:** =====
597 +==== Asset Alarm: ====
600 600  
601 -**Data:**
599 +Data:
602 602  
603 603  [[image:1730771504586-433.png]]
604 604  
605 605  ==== 4.1.2.3、Configure the first layer menu interface ====
606 606  
607 -===== 4.1.2.3.1 **Map:** =====
605 +**Map:**
608 608  
609 -**Data:**
607 +Data:
610 610  
611 611  [[image:1730710271230-716.png||height="729" width="1427"]]
612 612  
613 -**Actions**:The map interface has two actions, among which Select supermarket can refresh the device list and related alarms on the right side to enter the location, and Supermarket_detail can jump to the second level physical interface to view the details of the location based on the selected location
611 +Actions:The map interface has two actions, among which Select supermarket can refresh the device list and related alarms on the right side to enter the location, and Supermarket_detail can jump to the second level physical interface to view the details of the location based on the selected location
614 614  
615 615  [[image:1730710850458-781.png||height="770" width="1429"]]
616 616  
617 -**Select supermarket:**Implementation function: Refresh the side page
615 +Select supermarket:
618 618  
619 619  {{code language="none"}}
620 620  var params = widgetContext.stateController.getStateParams();
... ... @@ -629,7 +629,7 @@
629 629  
630 630  [[image:1730710875401-848.png||height="767" width="1429"]]
631 631  
632 -**Supermarket_detail:**Implementation function: Jump to the asset details page
630 +Supermarket_detail:
633 633  
634 634  {{code language="none"}}
635 635  var params = JSON.parse(JSON.stringify(widgetContext.stateController.getStateParams()));
... ... @@ -646,9 +646,7 @@
646 646  
647 647  [[image:1730710990334-601.png||height="772" width="1433"]]
648 648  
649 -* (((
650 -In this demo, exclusive map icons were set as follows:
651 -)))
647 +* In this demo, exclusive map icons were set as follows:
652 652  
653 653  {{code language="none"}}
654 654  var res = {
... ... @@ -660,13 +660,12 @@
660 660  
661 661  [[image:1730710395303-672.png||height="771" width="1438"]]
662 662  
663 -===== 4.1.2.3.1 Asset List: =====
659 +Asset List:
664 664  
665 -**Data:**
666 666  
667 667  [[image:1730710693066-349.png||height="772" width="1439"]]
668 668  
669 -**Actions:**The Assets List interface has an action, which is the same as the Supermarket_details in the Map. You can jump to the second level entity interface to view the details of the selected location based on its location
664 +Actions:The Assets List interface has an action, which is the same as the Supermarket_details in the Map. You can jump to the second level entity interface to view the details of the selected location based on its location
670 670  
671 671  [[image:1730712335338-750.png||height="751" width="1423"]]
672 672  
... ... @@ -678,400 +678,6 @@
678 678  
679 679  == 4.2 Alarm configuration details ==
680 680  
681 -=== 4.2.1 High temperature ===
682 -
683 -Creat:
684 -
685 -[[image:1730862483514-101.png||height="750" width="1407"]]
686 -
687 -Clear:
688 -
689 -[[image:1730862584519-902.png||height="758" width="1404"]]
690 -
691 -=== 4.2.2 Low Temperature ===
692 -
693 -Creat:
694 -
695 -[[image:1730863708259-750.png||height="752" width="1403"]]
696 -
697 -Clear:
698 -
699 -[[image:1730863750414-979.png||height="746" width="1403"]]
700 -
701 -=== 4.2.3 High humidity ===
702 -
703 -Creat:
704 -
705 -[[image:1730864045747-876.png||height="752" width="1396"]]
706 -
707 -Clear:
708 -
709 -[[image:1730864077395-395.png||height="735" width="1393"]]
710 -
711 -=== 4.2.4 Low humidity ===
712 -
713 -Creat:
714 -
715 -[[image:1730864117808-484.png||height="741" width="1392"]]
716 -
717 -Clear:
718 -
719 -[[image:1730864159071-895.png||height="745" width="1392"]]
720 -
721 -=== 4.2.5 Low voltage ===
722 -
723 -Creat:
724 -
725 -[[image:1730864207037-477.png||height="740" width="1388"]]
726 -
727 -Clear:
728 -
729 -[[image:1730864250506-111.png||height="735" width="1389"]]
730 -
731 -=== 4.2.6 Device Disconnected ===
732 -
733 -Creat:
734 -
735 -[[image:1730864293216-991.png||height="739" width="1387"]]
736 -
737 -Clear:
738 -
739 -[[image:1730864331859-740.png||height="735" width="1385"]]
740 -
741 741  == 4.3 Rule chain configuration details ==
742 742  
743 -[[image:1730864784118-474.png]]
744 -
745 -**Script:**Email configuration for sending device alarm information
746 -
747 -[[image:1730864676542-406.png||height="732" width="1384"]]
748 -
749 -{{code language="none"}}
750 -function locatime(timenumber){
751 - var date = new Date(timenumber)
752 - return date.toLocaleDateString() + ' ' + date.toLocaleTimeString()
753 -}
754 -var name = msg.name
755 -var devicename = msg.originatorName
756 -var label = msg.originatorLabel
757 -var status = msg.status
758 -var detaildata =JSON.parse(msg.details.data)
759 -var tempswitch
760 -
761 -if (name != "Device Disconnected") {
762 - //detaildata=JSON.parse(msg.details.data)
763 - if (detaildata.Temperature_alarm_switch == true) {
764 - tempswitch = "open"
765 - } else {
766 - tempswitch = "close"
767 - }
768 - var humswitch
769 - if (detaildata.Humidity_alarm_switch == true) {
770 - humswitch = "open"
771 - } else {
772 - humswitch = "close"
773 - }
774 - var batswitch
775 - if (detaildata.Voltage_alarm_switch == true) {
776 - batswitch = "open"
777 - } else {
778 - batswitch = "close"
779 - }
780 - var str2 = "<p>-- Temperature alarm switch status: " +
781 - tempswitch + "</p>" +
782 - "<p>-- Humidity alarm switch status: " + humswitch +
783 - "</p>" +
784 - "<p>-- Voltage alarm switch status: " + batswitch
785 -}
786 -
787 -if (name == "High Temperature" && status ==
788 - "ACTIVE_UNACK") {
789 - var emailstr =
790 - "<div><p><span style='color: black; font-weight: bold'>" +
791 - "Device " + label + " has alarm:</span></p>" +
792 - "<p><span style='color: red; font-weight: bold'>-- High Temperature Alarm</span></p>" +
793 - "<p>-- Current Temperature : " + detaildata
794 - .TempC_SHT + "</p><br>" +
795 - "<p>Device Configure:</p>" +
796 - "<p>-- Temperature Threshold : min: " + detaildata
797 - .Low_temperature_alarm + ", max: " + detaildata
798 - .High_temperature_alarm + "</p>" +
799 - "<p>-- Humidity Threshold: min: " + detaildata
800 - .Low_humidity_alarm + ", max:" + detaildata
801 - .High_humidity_alarm + "</p>" +
802 - "<p>-- Battery threshold: min: " + detaildata
803 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
804 - return {
805 - msg: {
806 - "data": emailstr
807 - },
808 - metadata: metadata,
809 - msgType: msgType
810 - };
811 -} else if (name == "Low Temperature" && status ==
812 - "ACTIVE_UNACK") {
813 - var emailstr =
814 - "<div><p><span style='color: black; font-weight: bold'>" +
815 - "Device " + label + " has alarm:</span></p>" +
816 - "<p><span style='color: red; font-weight: bold'>-- Low Temperature Alarm</span></p>" +
817 - "<p>-- Current Temperature : " + detaildata
818 - .TempC_SHT + "</p><br>" +
819 - "<p>Device Configure:</p>" +
820 - "<p>-- Temperature Threshold : min: " + detaildata
821 - .Low_temperature_alarm + ", max: " + detaildata
822 - .High_temperature_alarm + "</p>" +
823 - "<p>-- Humidity Threshold: min: " + detaildata
824 - .Low_humidity_alarm + ", max:" + detaildata
825 - .High_humidity_alarm + "</p>" +
826 - "<p>-- Battery threshold: min: " + detaildata
827 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
828 -
829 - return {
830 - msg: {
831 - "data": emailstr
832 - },
833 - metadata: metadata,
834 - msgType: msgType
835 - };
836 -
837 -} else if (name == "Device Disconnected" && status ==
838 - "ACTIVE_UNACK") {
839 - var time1 = locatime(Number(detaildata.lastActivityTime))
840 - //var time1 = detaildata.lastActivityTime
841 - // var chazhi = parseInt((detaildata.inactivityAlarmTime-detaildata.lastActivityTime)/1000/60)
842 - // var emailstr =
843 - // "<div><p><span style='color: red; font-weight: bold'>" +
844 - // "Device " + label + " has Alarm</span></p><p>Last activity time: "+time1+"</p><p>Last Uplink: 21"+"minutes ago</p></div>"
845 -
846 - var emailstr ="Device " + label + " has Alarm##Last activity time: "+time1+"##Last Uplink: 21minutes ago"
847 - var newType = "POST_TELEMETRY_REQUEST"
848 - return {
849 - msg:emailstr,
850 - metadata: metadata,
851 - msgType: newType
852 - }
853 -} else if (name == "High humidity" && status ==
854 - "ACTIVE_UNACK") {
855 - var emailstr =
856 - "<div><p><span style='color: black; font-weight: bold'>" +
857 - "Device " + label + " has alarm:</span></p>" +
858 - "<p><span style='color: red; font-weight: bold'>-- High Humidity Alarm</span></p>" +
859 - "<p>-- Current Temperature : " + detaildata
860 - .Hum_SHT + "</p><br>" +
861 - "<p>Device Configure:</p>" +
862 - "<p>-- Temperature Threshold : min: " + detaildata
863 - .Low_temperature_alarm + ", max: " + detaildata
864 - .High_temperature_alarm + "</p>" +
865 - "<p>-- Humidity Threshold: min: " + detaildata
866 - .Low_humidity_alarm + ", max:" + detaildata
867 - .High_humidity_alarm + "</p>" +
868 - "<p>-- Battery threshold: min: " + detaildata
869 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
870 -
871 - return {
872 - msg: {
873 - "data": emailstr
874 - },
875 - metadata: metadata,
876 - msgType: msgType
877 - };
878 -} else if (name == "Low humidity" && status ==
879 - "ACTIVE_UNACK") {
880 - var emailstr =
881 - "<div><p><span style='color: black; font-weight: bold'>" +
882 - "Device " + label + " has alarm:</span></p>" +
883 - "<p><span style='color: red; font-weight: bold'>-- Low Humidity Alarm</span></p>" +
884 - "<p>-- Current Temperature : " + detaildata
885 - .Hum_SHT + "</p><br>" +
886 - "<p>Device Configure:</p>" +
887 - "<p>-- Temperature Threshold : min: " + detaildata
888 - .Low_temperature_alarm + ", max: " + detaildata
889 - .High_temperature_alarm + "</p>" +
890 - "<p>-- Humidity Threshold: min: " + detaildata
891 - .Low_humidity_alarm + ", max:" + detaildata
892 - .High_humidity_alarm + "</p>" +
893 - "<p>-- Battery threshold: min: " + detaildata
894 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
895 -
896 - return {
897 - msg: {
898 - "data": emailstr
899 - },
900 - metadata: metadata,
901 - msgType: msgType
902 - };
903 -} else if (name == "Low voltage" && status ==
904 - "ACTIVE_UNACK") {
905 - var emailstr =
906 - "<div><p><span style='color: black; font-weight: bold'>" +
907 - "Device " + label + " has alarm:</span></p>" +
908 - "<p><span style='color: red; font-weight: bold'>-- Low Voltage Alarm</span></p>" +
909 - "<p>-- Current Temperature : " + detaildata.BatV +
910 - "</p><br>" +
911 - "<p>Device Configure:</p>" +
912 - "<p>-- Temperature Threshold : min: " + detaildata
913 - .Low_temperature_alarm + ", max: " + detaildata
914 - .High_temperature_alarm + "</p>" +
915 - "<p>-- Humidity Threshold: min: " + detaildata
916 - .Low_humidity_alarm + ", max:" + detaildata
917 - .High_humidity_alarm + "</p>" +
918 - "<p>-- Battery threshold: min: " + detaildata
919 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
920 -
921 - return {
922 - msg: {
923 - "data": emailstr
924 - },
925 - metadata: metadata,
926 - msgType: msgType
927 - };
928 -} else if (name == "High Temperature" && status ==
929 - "CLEARED_UNACK") {
930 - var emailstr =
931 - "<div><p><span style='color: green; font-weight: bold'>Device " +
932 - label +
933 - " High Temperature Alarm Cleared</span></p>" +
934 - "<p>-- Current Temperature : " + detaildata
935 - .TempC_SHT + "</p><br>" +
936 - "<p>Device Configure:</p>" +
937 - "<p>-- Temperature Threshold : min: " + detaildata
938 - .Low_temperature_alarm + ", max: " + detaildata
939 - .High_temperature_alarm + "</p>" +
940 - "<p>-- Humidity Threshold: min: " + detaildata
941 - .Low_humidity_alarm + ", max:" + detaildata
942 - .High_humidity_alarm + "</p>" +
943 - "<p>-- Battery threshold: min: " + detaildata
944 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
945 -
946 - return {
947 - msg: {
948 - "data": emailstr
949 - },
950 - metadata: metadata,
951 - msgType: msgType
952 - };
953 -} else if (name == "Low Temperature" && status ==
954 - "CLEARED_UNACK") {
955 - var emailstr =
956 - "<div><p><span style='color: green; font-weight: bold'>Device " +
957 - label +
958 - " Low Temperature Alarm Cleared</span></p>" +
959 - "<p>-- Current Temperature : " + detaildata
960 - .TempC_SHT + "</p><br>" +
961 - "<p>Device Configure:</p>" +
962 - "<p>-- Temperature Threshold : min: " + detaildata
963 - .Low_temperature_alarm + ", max: " + detaildata
964 - .High_temperature_alarm + "</p>" +
965 - "<p>-- Humidity Threshold: min: " + detaildata
966 - .Low_humidity_alarm + ", max:" + detaildata
967 - .High_humidity_alarm + "</p>" +
968 - "<p>-- Battery threshold: min: " + detaildata
969 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
970 -
971 - return {
972 - msg: {
973 - "data": emailstr
974 - },
975 - metadata: metadata,
976 - msgType: msgType
977 - };
978 -} else if (name == "High humidity" && status ==
979 - "CLEARED_UNACK") {
980 - var emailstr =
981 - "<div><p><span style='color: green; font-weight: bold'>Device " +
982 - label + " High Humidity Alarm Cleared</span></p>" +
983 - "<p>-- Current Temperature : " + detaildata
984 - .Hum_SHT + "</p><br>" +
985 - "<p>Device Configure:</p>" +
986 - "<p>-- Temperature Threshold : min: " + detaildata
987 - .Low_temperature_alarm + ", max: " + detaildata
988 - .High_temperature_alarm + "</p>" +
989 - "<p>-- Humidity Threshold: min: " + detaildata
990 - .Low_humidity_alarm + ", max:" + detaildata
991 - .High_humidity_alarm + "</p>" +
992 - "<p>-- Battery threshold: min: " + detaildata
993 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
994 -
995 - return {
996 - msg: {
997 - "data": emailstr
998 - },
999 - metadata: metadata,
1000 - msgType: msgType
1001 - };
1002 -} else if (name == "Low humidity" && status ==
1003 - "CLEARED_UNACK") {
1004 - var emailstr =
1005 - "<div><p><span style='color: green; font-weight: bold'>Device " +
1006 - label + " Low Humidity Alarm Cleared</span></p>" +
1007 - "<p>-- Current Temperature : " + detaildata
1008 - .Hum_SHT + "</p><br>" +
1009 - "<p>Device Configure:</p>" +
1010 - "<p>-- Temperature Threshold : min: " + detaildata
1011 - .Low_temperature_alarm + ", max: " + detaildata
1012 - .High_temperature_alarm + "</p>" +
1013 - "<p>-- Humidity Threshold: min: " + detaildata
1014 - .Low_humidity_alarm + ", max:" + detaildata
1015 - .High_humidity_alarm + "</p>" +
1016 - "<p>-- Battery threshold: min: " + detaildata
1017 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
1018 - return {
1019 - msg: {
1020 - "data": emailstr
1021 - },
1022 - metadata: metadata,
1023 - msgType: msgType
1024 - };
1025 -} else if (name == "Low voltage" && status ==
1026 - "CLEARED_UNACK") {
1027 -
1028 - var emailstr =
1029 - "<div><p><span style='color: green; font-weight: bold'>Device " +
1030 - label + " Low Voltage Alarm Cleared</span></p>" +
1031 - "<p>-- Current Temperature : " + detaildata.BatV +
1032 - "</p><br><br>" +
1033 - "<p>Device Configure:</p>" +
1034 - "<p>-- Temperature Threshold : min: " + detaildata
1035 - .Low_temperature_alarm + ", max: " + detaildata
1036 - .High_temperature_alarm + "</p>" +
1037 - "<p>-- Humidity Threshold: min: " + detaildata
1038 - .Low_humidity_alarm + ", max:" + detaildata
1039 - .High_humidity_alarm + "</p>" +
1040 - "<p>-- Battery threshold: min: " + detaildata
1041 - .Low_voltage_alarm + "</p>" + str2 + "</div>"
1042 -
1043 - return {
1044 - msg: {
1045 - "data": emailstr
1046 - },
1047 - metadata: metadata,
1048 - msgType: msgType
1049 - };
1050 -} else if (name == "Device Disconnected" && status ==
1051 - "CLEARED_UNACK") {
1052 - var time1 = locatime(Number(detaildata.lastActivityTime))
1053 - //var time1 = detaildata.lastActivityTime
1054 - // var chazhi = parseInt((detaildata.inactivityAlarmTime-detaildata.lastActivityTime)/1000/60)
1055 - // var emailstr =
1056 - // "<div><p><span style='color: green; font-weight: bold'>" +
1057 - // "Device " + label + " has Alarm Cleared</span></p><p>Last activity time: "+time1+"</p></div>"
1058 - var emailstr ="Device " + label + " has Alarm Cleared##Last activity time: "+time1
1059 - var newType = "POST_TELEMETRY_REQUEST"
1060 - return {
1061 - msg: emailstr,
1062 - metadata: metadata,
1063 - msgType: newType
1064 - }
1065 -}
1066 -{{/code}}
1067 -
1068 -(% class="wikigeneratedid" %)
1069 -**Generate Report:**
1070 -
1071 -(% class="wikigeneratedid" %)
1072 -[[image:1730865053380-293.png]]
1073 -
1074 -= 5.other =
1075 -
1076 -* If you want to create a similar dashboard, after understanding the case, you can download and import the dashboard, device profiles, rule chains, etc. of the case on GitHub, and make modifications based on them.
1077 -* GitHub address:[[https:~~/~~/github.com/ThingsEye-io/te-platform/tree/main/case/Dragino%20Office%20%26%20Factory>>https://github.com/ThingsEye-io/te-platform/tree/main/case/Dragino%20Office%20%26%20Factory]]
678 += 5. =
1730857191863-514.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -354.7 KB
Content
1730857537965-184.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -455.1 KB
Content
1730857750749-240.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -285.9 KB
Content
1730862483514-101.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -195.8 KB
Content
1730862584519-902.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -191.1 KB
Content
1730863708259-750.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -220.1 KB
Content
1730863750414-979.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -210.6 KB
Content
1730864045747-876.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -208.9 KB
Content
1730864077395-395.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -201.4 KB
Content
1730864117808-484.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -203.0 KB
Content
1730864159071-895.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -226.6 KB
Content
1730864207037-477.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -215.3 KB
Content
1730864250506-111.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -209.5 KB
Content
1730864293216-991.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -138.5 KB
Content
1730864331859-740.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -134.4 KB
Content
1730864460314-611.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -256.7 KB
Content
1730864617480-221.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -260.8 KB
Content
1730864676542-406.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -227.7 KB
Content
1730864784118-474.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -148.8 KB
Content
1730865053380-293.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -46.7 KB
Content
屏幕截图 2024-11-04 135045.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.hera
Size
... ... @@ -1,1 +1,0 @@
1 -29.4 KB
Content