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/industry/agriculture/query-telemetry-data-from-azure-farmbeats.md
+18-1Lines changed: 18 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,11 @@ Before you proceed, also make sure you are familiar with FarmBeats REST APIs as
22
22
23
23
## Query ingested sensor telemetry data
24
24
25
-
Follow the below steps to query the ingested sensor telemetry data:
25
+
There are two ways to access and query telemetry data from FarmBeats: API and Time Series Insights (TSI).
26
+
27
+
### Query using REST API
28
+
29
+
Follow the below steps to query the ingested sensor telemetry data using FarmBeats REST APIs:
26
30
27
31
1. Identify the sensor you are interested in. You can do this by making a GET request on /Sensor API. Note the **id** and the **sensorModelId** of the interested sensor object.
28
32
@@ -91,6 +95,19 @@ Make a note of the response from the GET/{id} call for the Sensor Model.
91
95
```
92
96
In the above example response, the queried sensor telemetry gives data for two timestamps along with the measure name ("moist_soil_last") and values of the reported telemetry in the two timestamps. You will need to refer to the associated Sensor Model (as described in step 2) to interpret the type and unit of the reported values.
93
97
98
+
### Query using Azure Time Series Insights (TSI)
99
+
100
+
FarmBeats leverages [Azure Time Series Insights (TSI)](https://azure.microsoft.com/services/time-series-insights/) to ingest, store, query and visualize data at Internet of Things (IoT) scale--data that's highly contextualized and optimized for time series.
101
+
102
+
Telemetry data is received on an EventHub and then processed and pushed to a TSI environment within FarmBeats resource group. Data can then be directly queried from the TSI. For more information, refer [TSI documentation](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-explorer)
103
+
104
+
Follow the below steps to visualize data on TSI
105
+
106
+
1. Go to Azure Portal -> FarmBeats DataHub resource group -> click on Time Series Insights environment (tsi-xxxx) -> Data Access Policies. Add user with Reader or Contributor access.
107
+
2. Go to the Overview page of Time Series Insights environment (tsi-xxxx) and click on the “Time Series Insights Explorer URL”. You will now be able to visualize the ingested telemetry.
108
+
109
+
Apart from storing, querying and visualization of telemetry, TSI also enables integration to a Power BI dashboard. More details [here](https://docs.microsoft.com/azure/time-series-insights/how-to-connect-power-bi)
110
+
94
111
## Next steps
95
112
96
113
You now have queried sensor data from your Azure FarmBeats instance. Now, learn how to [generate maps](generate-maps-in-azure-farmbeats.md#generate-maps) for your farms.
0 commit comments