Capture and query sensor data
You can use the data management service to capture tabular data from a connected component on your machine and sync that data to the cloud. Once you have synced that data, you can query it using SQL or MQL to obtain actionable insights.
For example, you might configure data capture for several sensors on your machine, or across sensors on multiple machines, to report the ambient operating temperature. You can then run queries against that data to search for outliers or edge cases, to analyze how the ambient temperature affects your machines’ operation.
|1. Configure the data management service
First, create a machine if you haven't yet.
|2. Capture data
Next, capture tabular data from a component on your machine, such as a sensor. With cloud sync enabled, captured data is automatically uploaded to the Viam app after a short delay.
|3. Query data in the Viam app
Once your data has synced, you can query your data from within the Viam app using SQL or MQL.
For example, this query limits returned results to show data captured by the
|4. Query data from a compatible client
If you prefer, you can also query your data directly from an MQL-compatible client, such as
Query tabular data that you have synced to the Viam app using the data management service with SQL or MQL.
Download data from and upload data to the Viam app from your local computer using the data client API, Viam CLI, or Viam mobile app.
Have questions, or want to meet other people working on robots? Join our Community Discord.
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better: