Crafting dashboards – unleashing potential via the Node.js SDK
Dashboards are the most important ingredient in the Arduino IoT Cloud pertaining to data visualization. In the SDK, we have dashboard-specific methods to perform CRUD operations on dashboards, as well as other operations such as sharing, requesting access, and so on, but here we will only focus on the CRUD operations.
Creating a dashboard
Let’s start first with dashboard creation. The relevant documentation can be found at https://www.arduino.cc/reference/en/iot/api/#api-DashboardsV2-dashboardsV2Create. Open the create-dashboard.js
file under the dashboard
folder in VSCode.
There are two methods in this code: one is getToken()
, which is the same method as in all our coding exercises to fetch the authentication token for our requests. The second method is CreateDashboard()
, which is responsible for dashboard creation. Referring to the documentation, we can see we need to initiate the api
variable...