Overview
Now that you understand the different methods available for live-streaming data into Sift, let’s explore how to observe live-streamed data in Sift. For this tutorial, we’ll simulate live-streaming by running a Python script that sends robotic vehicle telemetry (such as velocity and internal temperature) to Sift via thesift_client. This data is generated every 0.5 seconds and is used to demonstrate how streaming data can be observed in Sift.
Live-streamed data
Follow the steps below to live-stream robotic vehicle telemetry data.- Clone the Sift repository and navigate to the ingestion tutorial directory:
- Create and activate a Python virtual environment, then install the required packages:
- Create a
.envfile and provide your Sift instance URLs and API key:To obtain your instance URLs and an API key:- In Sift, click your profile icon, which shows the first initial of your account name.
- Select Manage.
- In the Manage navigation menu, click API Keys.
- Click + Create API Key.
- In the Name box, enter a name for the API key.
- In the User list, select your email to link to the API key.
- Click Create.
- Click Copy.
- Click Close.
- In the REST API URL field, click Copy.
- In the gRPC API URL field, click Copy.
- Run the following command to live-stream data to Sift:
- Check the terminal for the generated Run name
- For example, robot_vehicle_…_run
- You will use this Run name to access the live-streamed data shortly
- Check the terminal for the generated Run name
Observe live-streamed data
Now that data is being streamed to Sift, let’s see how we can observe that data live.- Open the Run that the data is being streamed to. In particular, open the Run using Explore.
- In Explore, click Live.
- In the Channels tab, select the following Channels:
- temperature
- velocity
- Before concluding this step, stop the streaming with the following command: