Skip to content

Commit 920bdeb

Browse files
committed
Update retail tutorials
1 parent 3218936 commit 920bdeb

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

articles/iot-central/retail/tutorial-in-store-analytics-create-app.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ In this tutorial, you learn how to:
2727
2828
If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
2929

30+
## Prerequisites
31+
32+
To complete this tutorial, you need to install the [dmr-client](https://www.nuget.org/packages/Microsoft.IoT.ModelsRepository.CommandLine) command-line tool on your local machine:
33+
34+
```console
35+
dotnet tool install --global Microsoft.IoT.ModelsRepository.CommandLine --version 1.0.0-beta.9
36+
```
37+
3038
## Application architecture
3139

3240
For many retailers, environmental conditions are a key way to differentiate their stores from their competitors' stores. The most successful retailers make every effort to maintain pleasant conditions within their stores for the comfort of their customers.
@@ -124,17 +132,27 @@ The _In-store analytics - checkout_ application template has several preinstalle
124132

125133
In this section, you add a device template for RuuviTag sensors to your application. To do so:
126134

135+
1. To download a copy of the RuuviTag device template from the model repository, run the following command:
136+
137+
```bash
138+
dmr-client export --dtmi "dtmi:rigado:RuuviTag;2" --repo https://raw.githubusercontent.com/Azure/iot-plugandplay-models/main > ruuvitag.json
139+
```
140+
127141
1. On the left pane, select **Device Templates**.
128142

129-
1. Select **New** to create a new device template.
143+
1. Select **+ New** to create a new device template.
144+
145+
1. Select the **IoT device** tile and then select **Next: Customize**.
130146

131-
1. Search for and then select the **RuuviTag Multisensor** device template in the list of featured device templates.
147+
1. On the **Customize** page, enter *RuuviTag* as the device template name.
132148

133149
1. Select **Next: Review**.
134150

135151
1. Select **Create**.
136152

137-
The application adds the RuuviTag device template.
153+
1. Select the **Import a model** tile. Then browse for and import the *ruuvitag.json* file that you downloaded previously.
154+
155+
1. After the import completes, select **Publish** to publish the device template.
138156

139157
1. On the left pane, select **Device templates**.
140158

0 commit comments

Comments
 (0)