Wiki source code of Smart Irrigation

Version 2.1 by Hera Guo on 2024/12/04 15:16

Show last authors
1 = 1. About this demo[[Edit>>url:https://wiki.thingseye.io/xwiki/bin/edit/Main/Temperature%20%26%20Humidity/WebHome?section=1&form_token=DubYlfMjqzEYrRWOxRMJxA]] =
2
3 This template is a display template for all temperature and humidity sensors, in this template you can see the data detected by your temperature and humidity sensors as well as their location, etc., and support alarm settings.  It has **Two Level DashBoard **as decribe below.
4
5
6 The [["Irrigation Management">>url:https://thingseye.io/dashboardGroups/0a20abc0-b045-11ef-9a99-19e40fc9a6b0/0a1c6600-b045-11ef-9a99-19e40fc9a6b0]] dashboard is designed to provision fields and related devices. It has multiple states:
7
8 * **Main** state allows you to list the fields and display them on the map. We assume that you might have multiple fields with various sensors for each field. We have provisioned two "fake" fields with number of devices for demonstration purposes.
9 ** Click the "+" button in the top right corner of the fields table to create a new field. You may input the crop type and soil moisture thresholds;
10 ** Click the field polygon on the map to open the field state;
11 * **Field** state allows you to manage irrigation schedule and devices. You may provision new schedule items. The schedule dialog will create scheduler events on the background. Click on the "Alarms" button to browse all alarms. You may also add sensors to the field if needed.
12 * [[image:1733295949257-158.png||height="502" width="923"]][[image:Arrow.png]][[image:1733295993883-555.png||height="501" width="912"]]
13
14 = 2.Import Solution Template =
15
16 == 2.1 Get the json files ==
17
18 where to get:
19
20 what files to get:Download the three json files with the suffixes dashboard, deviceprofile, and rulechain.
21
22 == 2.2 Import rulechain/deviceprofile/dashboard ==
23
24 * **You will need to download and import the appropriate files**
25
26 === 2.2.1 Import rulechain ===
27
28 Firstly, we need to import the rule chain. The rule chain tells platform how we should handel the uplink and downlink for this device.
29
30 Open rule chains, click on the "+" in the upper right corner,
31
32 select "import rule chain", and then drag the downloaded JSON file with the suffix "_rule_chain" into the text box
33
34 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20174215.png?width=1542&height=785&rev=1.1||alt="屏幕截图 2024-11-26 174215.png" height="785" width="1542"]]
35
36 === 2.2.2 Import deviceprofile ===
37
38 At this step, we need to import the device profile first, as shown in the figure.
39
40 First, we need to open the device profiles, click on the "+" in the upper right corner, select "import device profile",
41
42 and then select the file with the suffix "_device_defiles" that we have already downloaded. Drag it into the text box.
43
44 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20175041.png?width=1545&height=745&rev=1.1||alt="屏幕截图 2024-11-26 175041.png" height="745" width="1545"]]
45
46 === 2.2.3 Import dashboard ===
47
48 Firstly, we need to open the dashboard module,
49
50 click on the "+" in the upper right corner, select "import dashboard",
51
52 then we shoud drag the downloaded _dashboard file into the text box.
53
54 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20175723.png?width=1548&height=759&rev=1.1||alt="屏幕截图 2024-11-26 175723.png" height="759" width="1548"]]
55
56 = 3.Connecting devices to thingseye =
57
58 Click the link below to connect the server to the platform:
59
60 [[https:~~/~~/wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20connect%20my%20devices%20to%20ThingsEye%3>>url:https://wiki.thingseye.io/xwiki/bin/view/Main/How%20to%20connect%20my%20devices%20to%20ThingsEye%3F/]]
61
62 = 4.Change the deviceproflie of device =
63
64 When our import is complete, we need to replace the deviceprofile of the device we want to show with our newly imported deviceprofile.
65
66 [[image:https://wiki.thingseye.io/xwiki/bin/download/Main/Fuel%20Level%20Monitoring/WebHome/%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE%202024-11-26%20180544.png?width=1551&height=772&rev=1.1||alt="屏幕截图 2024-11-26 180544.png" height="772" width="1551"]]
67
68 = 5.Check to see if the device is displaying properly on the dashboard =
69
70 [[image:1733296532960-131.png||height="734" width="1553"]]