You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/digital-twins/tutorial-facilities-analyze.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ ms.service: digital-twins
8
8
ms.topic: tutorial
9
9
ms.date: 09/17/2019
10
10
ms.author: alinast
11
+
#Customer intent: As an Azure IoT developer, I want to walk through a sample application to learn how to analyze events from an Azure Digital Twins instance.
11
12
---
12
13
13
14
# Tutorial: Visualize and analyze events from your Azure Digital Twins spaces by using Time Series Insights
Copy file name to clipboardExpand all lines: articles/digital-twins/tutorial-facilities-events.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ ms.service: digital-twins
8
8
ms.topic: tutorial
9
9
ms.date: 09/17/2019
10
10
ms.author: alinast
11
+
#Customer intent: As an Azure IoT developer, I want to walk through a sample application to learn how to capture events from a Azure Digital Twins space.
11
12
---
12
13
13
14
# Tutorial: Receive notifications from your Azure Digital Twins spaces by using Logic Apps
Copy file name to clipboardExpand all lines: articles/digital-twins/tutorial-facilities-udf.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,9 @@ author: alinamstanciu
6
6
ms.custom: seodec18
7
7
ms.service: digital-twins
8
8
ms.topic: tutorial
9
-
ms.date: 09/17/2019
9
+
ms.date: 09/20/2019
10
10
ms.author: alinast
11
+
#Customer intent: As an Azure IoT developer, I want to walk through a sample application to monitor a space using Azure Digital Twins.
11
12
---
12
13
13
14
# Tutorial: Provision your building and monitor working conditions with Azure Digital Twins Preview
@@ -51,17 +52,17 @@ This matcher will track the `SAMPLE_SENSOR_TEMPERATURE` sensor that you added in
51
52
52
53
You can use user-defined functions to customize the processing of your sensor data. They're custom JavaScript code that can run within your Azure Digital Twins instance, when specific conditions as described by the matchers occur. You can create matchers and user-defined functions for each sensor that you want to monitor. For more information, read [Data processing and user-defined functions](concepts-user-defined-functions.md).
53
54
54
-
In the sample `provisionSample.yaml` file, look for a section that begins with the type **userdefinedfunctions**. This section provisions a user-defined function with a given **Name**. This UDF acts on the list of matchers under **matcherNames**. Notice how you can provide your own JavaScript file for the UDF as the **script**.
55
+
In the sample *provisionSample.yaml* file, look for a section that begins with the type **userdefinedfunctions**. This section provisions a user-defined function with a given **Name**. This UDF acts on the list of matchers under **matcherNames**. Notice how you can provide your own JavaScript file for the UDF as the **script**.
55
56
56
57
Also note the section named **roleassignments**. It assigns the Space Administrator role to the user-defined function. This role allows it to access the events that come from any of the provisioned spaces.
57
58
58
-
1. Configure the UDF to include the temperature matcher by adding or uncommenting the following line in the `matcherNames` node of the `provisionSample.yaml` file:
59
+
1. Configure the UDF to include the temperature matcher by adding or uncommenting the following line in the `matcherNames` node of the *provisionSample.yaml* file:
59
60
60
61
```yaml
61
62
- Matcher Temperature
62
63
```
63
64
64
-
1. Open the file **src\actions\userDefinedFunctions\availability.js** in your editor. This is the file referenced in the **script** element of `provisionSample.yaml`. The user-defined function in this file looks for conditions when no motion is detected in the room and carbon dioxide levels are below 1,000 ppm.
65
+
1. Open the file **src\actions\userDefinedFunctions\availability.js** in your editor. This is the file referenced in the **script** element of *provisionSample.yaml*. The user-defined function in this file looks for conditions when no motion is detected in the room and carbon dioxide levels are below 1,000 ppm.
65
66
66
67
Modify the JavaScript file to monitor temperature and other conditions. Add the following lines of code to look for conditions when no motion is detected in the room, carbon dioxide levels are below 1,000 ppm, and temperature is below 78 degrees Fahrenheit.
67
68
@@ -172,7 +173,7 @@ Also note the section named **roleassignments**. It assigns the Space Administra
172
173
> [!IMPORTANT]
173
174
> To prevent unauthorized access to your Digital Twins Management API, the **occupancy-quickstart** application requires you to sign in with your Azure account credentials. It saves your credentials for a brief period, so you might not need to sign in every time you run it. The first time this program runs, and when your saved credentials expire after that, the application directs you to a sign-in page and gives a session-specific code to enter on that page. Follow the prompts to sign in with your Azure account.
174
175
175
-
1. After your account is authenticated, the application starts creating a sample spatial graph as configured in `provisionSample.yaml`. Wait until the provisioning finishes. It will take a few minutes. After that, observe the messages in the command window and notice how your spatial graph is created. Notice how the application creates an IoT hub at the root node or the `Venue`.
176
+
1. After your account is authenticated, the application starts creating a sample spatial graph as configured in *provisionSample.yaml*. Wait until the provisioning finishes. It will take a few minutes. After that, observe the messages in the command window and notice how your spatial graph is created. Notice how the application creates an IoT hub at the root node or the `Venue`.
176
177
177
178
1. From the output in the command window, copy the value of `ConnectionString`, under the `Devices` section, to your clipboard. You'll need this value to simulate the device connection in the next section.
178
179
@@ -197,9 +198,9 @@ In this section, you'll use the project named *device-connectivity* in the sampl
197
198
198
199
a. **DeviceConnectionString**: Assign the value of `ConnectionString` in the output window from the previous section. Copy this string completely, within the quotes, so the simulator can connect properly with the IoT hub.
199
200
200
-
b. **HardwareId** within the **Sensors** array: Because you're simulating events from sensors provisioned to your Azure Digital Twins instance, the hardware ID and the names of the sensors in this file should match the `sensors` node of the `provisionSample.yaml` file.
201
+
b. **HardwareId** within the **Sensors** array: Because you're simulating events from sensors provisioned to your Azure Digital Twins instance, the hardware ID and the names of the sensors in this file should match the `sensors` node of the *provisionSample.yaml* file.
201
202
202
-
Add a new entry for the temperature sensor. The **Sensors** node in `appsettings.json` should look like the following:
203
+
Add a new entry for the temperature sensor. The **Sensors** node in *appsettings.json* should look like the following:
0 commit comments