Changes for page Demo for Smart Office, Factory
Last modified by Hera Guo on 2024/11/11 17:08
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 21 removed)
- 1730857191863-514.png
- 1730857537965-184.png
- 1730857750749-240.png
- 1730862483514-101.png
- 1730862584519-902.png
- 1730863708259-750.png
- 1730863750414-979.png
- 1730864045747-876.png
- 1730864077395-395.png
- 1730864117808-484.png
- 1730864159071-895.png
- 1730864207037-477.png
- 1730864250506-111.png
- 1730864293216-991.png
- 1730864331859-740.png
- 1730864460314-611.png
- 1730864617480-221.png
- 1730864676542-406.png
- 1730864784118-474.png
- 1730865053380-293.png
- 屏幕截图 2024-11-04 135045.png
Details
- Page properties
-
- Content
-
... ... @@ -1,4 +1,4 @@ 1 - 1 +**Table of Contents:** 2 2 3 3 {{toc/}} 4 4 ... ... @@ -5,9 +5,6 @@ 5 5 6 6 7 7 8 - 9 - 10 - 11 11 = 1. About this demo = 12 12 13 13 This demo is to show the installation for various sensors in Dragino Office, Dragino Facotry & ThingsEye Office. It covers various types of sensors such as Temperature, Humidity, CO2, Water Flow, Vibration & many many. ... ... @@ -60,7 +60,7 @@ 60 60 61 61 **device:**This section displays the specific information collected by the device, and different types of sensors have different display interfaces 62 62 63 -[[image: 屏幕截图 2024-11-04 134645.png]]60 +[[image:1730699212334-960.png]] 64 64 65 65 First floor: 66 66 ... ... @@ -85,7 +85,7 @@ 85 85 86 86 High Temperature、Low Temperature、High humidity、Low humidity、Low voltage、Device Disconnected 87 87 88 -[[image: 屏幕截图 2024-11-04 135045.png]]85 +[[image:1730699566023-958.png]] 89 89 90 90 = 4.configuration details = 91 91 ... ... @@ -95,48 +95,58 @@ 95 95 96 96 === 4.1.1.Data source (Entity aliases) === 97 97 98 - detail:Obtaindata based on dashboard status95 +Asset map: 99 99 97 +[[image:1730709409941-536.png||height="729" width="1440"]] 98 + 99 +detail: 100 + 100 100 [[image:1730709424998-915.png||height="729" width="1436"]] 101 101 102 - Alarm:Obtain alarm information103 +devid: 103 103 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 + 104 104 [[image:1730709479828-595.png||height="696" width="1435"]] 105 105 106 -Dragino&GXHL,Ltd: Obtain data through asset types115 +Dragino&GXHL,Ltd: 107 107 108 108 [[image:1730709511861-439.png||height="714" width="1435"]] 109 109 110 -Selected Supermarket: Retrieve devices by device type119 +Selected Supermarket: 111 111 112 112 [[image:1730709527720-418.png||height="751" width="1433"]] 113 113 114 -Supermarket Devices:Obtain data through device type123 +Supermarkets: 115 115 116 -[[image:173070955 5797-383.png||height="726" width="1434"]]125 +[[image:1730709542597-321.png||height="734" width="1435"]] 117 117 118 - LHT65N Device:Obtaindata based on devicetype127 +Supermarket Devices: 119 119 120 -[[image:1730 857191863-514.png||height="725" width="1433"]]129 +[[image:1730709555797-383.png||height="726" width="1434"]] 121 121 131 + 122 122 === 4.1.2.Page Configuration === 123 123 124 124 ==== 4.1.2.1、Configure the interface of the third layer Davies. ==== 125 125 136 + 126 126 ==== 4.1.2.2、Configure the interface of the second layer asset ==== 127 127 128 - ===== 4.1.2.2.1Equipment distribution diagram:=====139 +**Equipment distribution diagram:** 129 129 130 130 **Data:** 131 131 132 132 [[image:1730770392454-317.png||height="745" width="1439"]] 133 133 134 - **Appearannce:**In this module, we needto arrange our devices in the correspondingpositions anduse icons to display our devices. Therefore, inthe Appearanceinterface, we need toconfigure them145 +Tooltip function: 135 135 136 -**Tooltip function:**This module displays the current information of the device 137 - 138 -[[image:1730857537965-184.png]] 139 - 140 140 {{code language="none"}} 141 141 var msg = data 142 142 if(msg.Label=="gateway" && msg.type == "gateway"){ ... ... @@ -162,12 +162,8 @@ 162 162 } 163 163 {{/code}} 164 164 165 -(% class="wikigeneratedid" id="HMarkerimagefunctionFF1A" %) 166 -**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: ==== 167 167 168 -(% class="wikigeneratedid" %) 169 -[[image:1730857750749-240.png]] 170 - 171 171 {{code language="none"}} 172 172 var res 173 173 var msg = data ... ... @@ -257,11 +257,9 @@ 257 257 return res; 258 258 {{/code}} 259 259 260 -(% class="wikigeneratedid" %) 261 -[[image:1730770875793-351.png||height="799" width="1474"]] 263 +==== [[image:1730770875793-351.png]] ==== 262 262 263 -(% class="wikigeneratedid" %) 264 -**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 ==== 265 265 266 266 {{code language="none"}} 267 267 var entitySubType; ... ... @@ -320,24 +320,20 @@ 320 320 321 321 {{/code}} 322 322 323 -[[image:1730771103096-522.png ||height="815" width="1503"]]324 +[[image:1730771103096-522.png]] 324 324 325 - ===== 4.1.2.2.2Device List=====326 +Device List 326 326 327 -(% class="wikigeneratedid" id="HDataFF1A" %) 328 -**Data:** 328 +Data: 329 329 330 -[[image:1730771199343-553.png ||height="802" width="1501"]]330 +[[image:1730771199343-553.png]] 331 331 332 - **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: 333 333 334 334 [[image:1730771228766-212.png]] 335 335 336 -(% class="wikigeneratedid" id="HEditdeviceFF1A" %) 337 -**Edit device:**Implementation function: Device editing 336 +==== Edit device: ==== 338 338 339 -[[image:1730771256045-238.png]] 340 - 341 341 {{code language="none"}} 342 342 let $injector = widgetContext.$scope.$injector; 343 343 let customDialog = $injector.get(widgetContext.servicesMap.get('customDialog')); ... ... @@ -434,9 +434,9 @@ 434 434 } 435 435 {{/code}} 436 436 437 - **Deletedevice:**Implementation function: Device deletion434 +==== [[image:1730771256045-238.png]] ==== 438 438 439 - [[image:1730771318657-502.png]]436 +Delete device: 440 440 441 441 {{code language="none"}} 442 442 let $injector = widgetContext.$scope.$injector; ... ... @@ -467,9 +467,9 @@ 467 467 468 468 {{/code}} 469 469 470 - **jump:I**mplementation function: Jump to the device details page467 +[[image:1730771318657-502.png]] 471 471 472 - [[image:1730771386258-676.png]]469 +jump 473 473 474 474 {{code language="none"}} 475 475 console.log(entityName) ... ... @@ -528,10 +528,9 @@ 528 528 } 529 529 {{/code}} 530 530 531 -(% class="wikigeneratedid" id="H-1" %) 532 -**Add device:**Implementation function: Add device 528 +==== [[image:1730771386258-676.png]] ==== 533 533 534 - [[image:1730771441589-122.png]]530 +Add device: 535 535 536 536 {{code language="none"}} 537 537 let $injector = widgetContext.$scope.$injector; ... ... @@ -596,11 +596,28 @@ 596 596 } 597 597 {{/code}} 598 598 599 -==== ==== 595 +==== [[image:1730771441589-122.png]] ==== 600 600 601 -==== =4.1.2.2.3Asset Alarm:=====597 +==== Asset Alarm: ==== 602 602 599 +Data: 603 603 601 +[[image:1730771504586-433.png]] 602 + 603 +==== 4.1.2.3、Configure the first layer menu interface ==== 604 + 605 +**Map:** 606 + 607 +Data: 608 + 609 +[[image:1730710271230-716.png||height="729" width="1427"]] 610 + 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 612 + 613 +[[image:1730710850458-781.png||height="770" width="1429"]] 614 + 615 +Select supermarket: 616 + 604 604 {{code language="none"}} 605 605 var params = widgetContext.stateController.getStateParams(); 606 606 var selectedSupermarket = params['selectedSupermarket']; ... ... @@ -614,7 +614,7 @@ 614 614 615 615 [[image:1730710875401-848.png||height="767" width="1429"]] 616 616 617 - **Supermarket_detail:**Implementation function: Jump to the asset details page630 +Supermarket_detail: 618 618 619 619 {{code language="none"}} 620 620 var params = JSON.parse(JSON.stringify(widgetContext.stateController.getStateParams())); ... ... @@ -631,9 +631,7 @@ 631 631 632 632 [[image:1730710990334-601.png||height="772" width="1433"]] 633 633 634 -* ((( 635 -In this demo, exclusive map icons were set as follows: 636 -))) 647 +* In this demo, exclusive map icons were set as follows: 637 637 638 638 {{code language="none"}} 639 639 var res = { ... ... @@ -645,418 +645,23 @@ 645 645 646 646 [[image:1730710395303-672.png||height="771" width="1438"]] 647 647 648 - ===== 4.1.2.3.2Asset List:=====659 +Asset List: 649 649 650 -**Data:** 651 651 652 652 [[image:1730710693066-349.png||height="772" width="1439"]] 653 653 654 - **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 location664 +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 655 655 656 656 [[image:1730712335338-750.png||height="751" width="1423"]] 657 657 658 658 [[image:1730712473941-913.png||height="781" width="1422"]] 659 659 660 - ===== 4.1.2.3.3All Alarms:=====670 +All Alarms: 661 661 662 662 [[image:1730712539209-554.png||height="764" width="1424"]] 663 663 664 664 == 4.2 Alarm configuration details == 665 665 666 -=== 4.2.1 High temperature === 667 - 668 -Creat: 669 - 670 -[[image:1730862483514-101.png||height="750" width="1407"]] 671 - 672 -Clear: 673 - 674 -[[image:1730862584519-902.png||height="758" width="1404"]] 675 - 676 -=== 4.2.2 Low Temperature === 677 - 678 -Creat: 679 - 680 -[[image:1730863708259-750.png||height="752" width="1403"]] 681 - 682 -Clear: 683 - 684 -[[image:1730863750414-979.png||height="746" width="1403"]] 685 - 686 -=== 4.2.3 High humidity === 687 - 688 -Creat: 689 - 690 -[[image:1730864045747-876.png||height="752" width="1396"]] 691 - 692 -Clear: 693 - 694 -[[image:1730864077395-395.png||height="735" width="1393"]] 695 - 696 -=== 4.2.4 Low humidity === 697 - 698 -Creat: 699 - 700 -[[image:1730864117808-484.png||height="741" width="1392"]] 701 - 702 -Clear: 703 - 704 -[[image:1730864159071-895.png||height="745" width="1392"]] 705 - 706 -=== 4.2.5 Low voltage === 707 - 708 -Creat: 709 - 710 -[[image:1730864207037-477.png||height="740" width="1388"]] 711 - 712 -Clear: 713 - 714 -[[image:1730864250506-111.png||height="735" width="1389"]] 715 - 716 -=== 4.2.6 Device Disconnected === 717 - 718 -Creat: 719 - 720 -[[image:1730864293216-991.png||height="739" width="1387"]] 721 - 722 -Clear: 723 - 724 -[[image:1730864331859-740.png||height="735" width="1385"]] 725 - 726 726 == 4.3 Rule chain configuration details == 727 727 728 -[[image:1730864784118-474.png]] 729 - 730 -**Script:**Email configuration for sending device alarm information 731 - 732 -[[image:1730864676542-406.png||height="732" width="1384"]] 733 - 734 -{{code language="none"}} 735 -function locatime(timenumber){ 736 - var date = new Date(timenumber) 737 - return date.toLocaleDateString() + ' ' + date.toLocaleTimeString() 738 -} 739 -var name = msg.name 740 -var devicename = msg.originatorName 741 -var label = msg.originatorLabel 742 -var status = msg.status 743 -var detaildata =JSON.parse(msg.details.data) 744 -var tempswitch 745 - 746 -if (name != "Device Disconnected") { 747 - //detaildata=JSON.parse(msg.details.data) 748 - if (detaildata.Temperature_alarm_switch == true) { 749 - tempswitch = "open" 750 - } else { 751 - tempswitch = "close" 752 - } 753 - var humswitch 754 - if (detaildata.Humidity_alarm_switch == true) { 755 - humswitch = "open" 756 - } else { 757 - humswitch = "close" 758 - } 759 - var batswitch 760 - if (detaildata.Voltage_alarm_switch == true) { 761 - batswitch = "open" 762 - } else { 763 - batswitch = "close" 764 - } 765 - var str2 = "<p>-- Temperature alarm switch status: " + 766 - tempswitch + "</p>" + 767 - "<p>-- Humidity alarm switch status: " + humswitch + 768 - "</p>" + 769 - "<p>-- Voltage alarm switch status: " + batswitch 770 -} 771 - 772 -if (name == "High Temperature" && status == 773 - "ACTIVE_UNACK") { 774 - var emailstr = 775 - "<div><p><span style='color: black; font-weight: bold'>" + 776 - "Device " + label + " has alarm:</span></p>" + 777 - "<p><span style='color: red; font-weight: bold'>-- High Temperature Alarm</span></p>" + 778 - "<p>-- Current Temperature : " + detaildata 779 - .TempC_SHT + "</p><br>" + 780 - "<p>Device Configure:</p>" + 781 - "<p>-- Temperature Threshold : min: " + detaildata 782 - .Low_temperature_alarm + ", max: " + detaildata 783 - .High_temperature_alarm + "</p>" + 784 - "<p>-- Humidity Threshold: min: " + detaildata 785 - .Low_humidity_alarm + ", max:" + detaildata 786 - .High_humidity_alarm + "</p>" + 787 - "<p>-- Battery threshold: min: " + detaildata 788 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 789 - return { 790 - msg: { 791 - "data": emailstr 792 - }, 793 - metadata: metadata, 794 - msgType: msgType 795 - }; 796 -} else if (name == "Low Temperature" && status == 797 - "ACTIVE_UNACK") { 798 - var emailstr = 799 - "<div><p><span style='color: black; font-weight: bold'>" + 800 - "Device " + label + " has alarm:</span></p>" + 801 - "<p><span style='color: red; font-weight: bold'>-- Low Temperature Alarm</span></p>" + 802 - "<p>-- Current Temperature : " + detaildata 803 - .TempC_SHT + "</p><br>" + 804 - "<p>Device Configure:</p>" + 805 - "<p>-- Temperature Threshold : min: " + detaildata 806 - .Low_temperature_alarm + ", max: " + detaildata 807 - .High_temperature_alarm + "</p>" + 808 - "<p>-- Humidity Threshold: min: " + detaildata 809 - .Low_humidity_alarm + ", max:" + detaildata 810 - .High_humidity_alarm + "</p>" + 811 - "<p>-- Battery threshold: min: " + detaildata 812 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 813 - 814 - return { 815 - msg: { 816 - "data": emailstr 817 - }, 818 - metadata: metadata, 819 - msgType: msgType 820 - }; 821 - 822 -} else if (name == "Device Disconnected" && status == 823 - "ACTIVE_UNACK") { 824 - var time1 = locatime(Number(detaildata.lastActivityTime)) 825 - //var time1 = detaildata.lastActivityTime 826 - // var chazhi = parseInt((detaildata.inactivityAlarmTime-detaildata.lastActivityTime)/1000/60) 827 - // var emailstr = 828 - // "<div><p><span style='color: red; font-weight: bold'>" + 829 - // "Device " + label + " has Alarm</span></p><p>Last activity time: "+time1+"</p><p>Last Uplink: 21"+"minutes ago</p></div>" 830 - 831 - var emailstr ="Device " + label + " has Alarm##Last activity time: "+time1+"##Last Uplink: 21minutes ago" 832 - var newType = "POST_TELEMETRY_REQUEST" 833 - return { 834 - msg:emailstr, 835 - metadata: metadata, 836 - msgType: newType 837 - } 838 -} else if (name == "High humidity" && status == 839 - "ACTIVE_UNACK") { 840 - var emailstr = 841 - "<div><p><span style='color: black; font-weight: bold'>" + 842 - "Device " + label + " has alarm:</span></p>" + 843 - "<p><span style='color: red; font-weight: bold'>-- High Humidity Alarm</span></p>" + 844 - "<p>-- Current Temperature : " + detaildata 845 - .Hum_SHT + "</p><br>" + 846 - "<p>Device Configure:</p>" + 847 - "<p>-- Temperature Threshold : min: " + detaildata 848 - .Low_temperature_alarm + ", max: " + detaildata 849 - .High_temperature_alarm + "</p>" + 850 - "<p>-- Humidity Threshold: min: " + detaildata 851 - .Low_humidity_alarm + ", max:" + detaildata 852 - .High_humidity_alarm + "</p>" + 853 - "<p>-- Battery threshold: min: " + detaildata 854 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 855 - 856 - return { 857 - msg: { 858 - "data": emailstr 859 - }, 860 - metadata: metadata, 861 - msgType: msgType 862 - }; 863 -} else if (name == "Low humidity" && status == 864 - "ACTIVE_UNACK") { 865 - var emailstr = 866 - "<div><p><span style='color: black; font-weight: bold'>" + 867 - "Device " + label + " has alarm:</span></p>" + 868 - "<p><span style='color: red; font-weight: bold'>-- Low Humidity Alarm</span></p>" + 869 - "<p>-- Current Temperature : " + detaildata 870 - .Hum_SHT + "</p><br>" + 871 - "<p>Device Configure:</p>" + 872 - "<p>-- Temperature Threshold : min: " + detaildata 873 - .Low_temperature_alarm + ", max: " + detaildata 874 - .High_temperature_alarm + "</p>" + 875 - "<p>-- Humidity Threshold: min: " + detaildata 876 - .Low_humidity_alarm + ", max:" + detaildata 877 - .High_humidity_alarm + "</p>" + 878 - "<p>-- Battery threshold: min: " + detaildata 879 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 880 - 881 - return { 882 - msg: { 883 - "data": emailstr 884 - }, 885 - metadata: metadata, 886 - msgType: msgType 887 - }; 888 -} else if (name == "Low voltage" && status == 889 - "ACTIVE_UNACK") { 890 - var emailstr = 891 - "<div><p><span style='color: black; font-weight: bold'>" + 892 - "Device " + label + " has alarm:</span></p>" + 893 - "<p><span style='color: red; font-weight: bold'>-- Low Voltage Alarm</span></p>" + 894 - "<p>-- Current Temperature : " + detaildata.BatV + 895 - "</p><br>" + 896 - "<p>Device Configure:</p>" + 897 - "<p>-- Temperature Threshold : min: " + detaildata 898 - .Low_temperature_alarm + ", max: " + detaildata 899 - .High_temperature_alarm + "</p>" + 900 - "<p>-- Humidity Threshold: min: " + detaildata 901 - .Low_humidity_alarm + ", max:" + detaildata 902 - .High_humidity_alarm + "</p>" + 903 - "<p>-- Battery threshold: min: " + detaildata 904 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 905 - 906 - return { 907 - msg: { 908 - "data": emailstr 909 - }, 910 - metadata: metadata, 911 - msgType: msgType 912 - }; 913 -} else if (name == "High Temperature" && status == 914 - "CLEARED_UNACK") { 915 - var emailstr = 916 - "<div><p><span style='color: green; font-weight: bold'>Device " + 917 - label + 918 - " High Temperature Alarm Cleared</span></p>" + 919 - "<p>-- Current Temperature : " + detaildata 920 - .TempC_SHT + "</p><br>" + 921 - "<p>Device Configure:</p>" + 922 - "<p>-- Temperature Threshold : min: " + detaildata 923 - .Low_temperature_alarm + ", max: " + detaildata 924 - .High_temperature_alarm + "</p>" + 925 - "<p>-- Humidity Threshold: min: " + detaildata 926 - .Low_humidity_alarm + ", max:" + detaildata 927 - .High_humidity_alarm + "</p>" + 928 - "<p>-- Battery threshold: min: " + detaildata 929 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 930 - 931 - return { 932 - msg: { 933 - "data": emailstr 934 - }, 935 - metadata: metadata, 936 - msgType: msgType 937 - }; 938 -} else if (name == "Low Temperature" && status == 939 - "CLEARED_UNACK") { 940 - var emailstr = 941 - "<div><p><span style='color: green; font-weight: bold'>Device " + 942 - label + 943 - " Low Temperature Alarm Cleared</span></p>" + 944 - "<p>-- Current Temperature : " + detaildata 945 - .TempC_SHT + "</p><br>" + 946 - "<p>Device Configure:</p>" + 947 - "<p>-- Temperature Threshold : min: " + detaildata 948 - .Low_temperature_alarm + ", max: " + detaildata 949 - .High_temperature_alarm + "</p>" + 950 - "<p>-- Humidity Threshold: min: " + detaildata 951 - .Low_humidity_alarm + ", max:" + detaildata 952 - .High_humidity_alarm + "</p>" + 953 - "<p>-- Battery threshold: min: " + detaildata 954 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 955 - 956 - return { 957 - msg: { 958 - "data": emailstr 959 - }, 960 - metadata: metadata, 961 - msgType: msgType 962 - }; 963 -} else if (name == "High humidity" && status == 964 - "CLEARED_UNACK") { 965 - var emailstr = 966 - "<div><p><span style='color: green; font-weight: bold'>Device " + 967 - label + " High Humidity Alarm Cleared</span></p>" + 968 - "<p>-- Current Temperature : " + detaildata 969 - .Hum_SHT + "</p><br>" + 970 - "<p>Device Configure:</p>" + 971 - "<p>-- Temperature Threshold : min: " + detaildata 972 - .Low_temperature_alarm + ", max: " + detaildata 973 - .High_temperature_alarm + "</p>" + 974 - "<p>-- Humidity Threshold: min: " + detaildata 975 - .Low_humidity_alarm + ", max:" + detaildata 976 - .High_humidity_alarm + "</p>" + 977 - "<p>-- Battery threshold: min: " + detaildata 978 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 979 - 980 - return { 981 - msg: { 982 - "data": emailstr 983 - }, 984 - metadata: metadata, 985 - msgType: msgType 986 - }; 987 -} else if (name == "Low humidity" && status == 988 - "CLEARED_UNACK") { 989 - var emailstr = 990 - "<div><p><span style='color: green; font-weight: bold'>Device " + 991 - label + " Low Humidity Alarm Cleared</span></p>" + 992 - "<p>-- Current Temperature : " + detaildata 993 - .Hum_SHT + "</p><br>" + 994 - "<p>Device Configure:</p>" + 995 - "<p>-- Temperature Threshold : min: " + detaildata 996 - .Low_temperature_alarm + ", max: " + detaildata 997 - .High_temperature_alarm + "</p>" + 998 - "<p>-- Humidity Threshold: min: " + detaildata 999 - .Low_humidity_alarm + ", max:" + detaildata 1000 - .High_humidity_alarm + "</p>" + 1001 - "<p>-- Battery threshold: min: " + detaildata 1002 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 1003 - return { 1004 - msg: { 1005 - "data": emailstr 1006 - }, 1007 - metadata: metadata, 1008 - msgType: msgType 1009 - }; 1010 -} else if (name == "Low voltage" && status == 1011 - "CLEARED_UNACK") { 1012 - 1013 - var emailstr = 1014 - "<div><p><span style='color: green; font-weight: bold'>Device " + 1015 - label + " Low Voltage Alarm Cleared</span></p>" + 1016 - "<p>-- Current Temperature : " + detaildata.BatV + 1017 - "</p><br><br>" + 1018 - "<p>Device Configure:</p>" + 1019 - "<p>-- Temperature Threshold : min: " + detaildata 1020 - .Low_temperature_alarm + ", max: " + detaildata 1021 - .High_temperature_alarm + "</p>" + 1022 - "<p>-- Humidity Threshold: min: " + detaildata 1023 - .Low_humidity_alarm + ", max:" + detaildata 1024 - .High_humidity_alarm + "</p>" + 1025 - "<p>-- Battery threshold: min: " + detaildata 1026 - .Low_voltage_alarm + "</p>" + str2 + "</div>" 1027 - 1028 - return { 1029 - msg: { 1030 - "data": emailstr 1031 - }, 1032 - metadata: metadata, 1033 - msgType: msgType 1034 - }; 1035 -} else if (name == "Device Disconnected" && status == 1036 - "CLEARED_UNACK") { 1037 - var time1 = locatime(Number(detaildata.lastActivityTime)) 1038 - //var time1 = detaildata.lastActivityTime 1039 - // var chazhi = parseInt((detaildata.inactivityAlarmTime-detaildata.lastActivityTime)/1000/60) 1040 - // var emailstr = 1041 - // "<div><p><span style='color: green; font-weight: bold'>" + 1042 - // "Device " + label + " has Alarm Cleared</span></p><p>Last activity time: "+time1+"</p></div>" 1043 - var emailstr ="Device " + label + " has Alarm Cleared##Last activity time: "+time1 1044 - var newType = "POST_TELEMETRY_REQUEST" 1045 - return { 1046 - msg: emailstr, 1047 - metadata: metadata, 1048 - msgType: newType 1049 - } 1050 -} 1051 -{{/code}} 1052 - 1053 -(% class="wikigeneratedid" %) 1054 -**Generate Report:** 1055 - 1056 -(% class="wikigeneratedid" %) 1057 -[[image:1730865053380-293.png]] 1058 - 1059 -= 5.other = 1060 - 1061 -* 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. 1062 -* 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