-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOCS-1664/1666/1712/1677: Rework manage machines R2D2 (#2576)
- Loading branch information
1 parent
1048abe
commit f703cbb
Showing
8 changed files
with
58 additions
and
49 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,63 +26,57 @@ Click the name of a machine to go to that machine's page, where you'll find a va | |
|
||
## Navigating the machine page | ||
|
||
The banner at the top of the machine page displays the machine's location, name, and a dropdown list of all {{< glossary_tooltip term_id="part" text="parts" >}} of that machine. | ||
Next to the machine name, there is an indicator of the machine's status. | ||
Click on the **status** dropdown to open a menu with information about each {{< glossary_tooltip term_id="part" text="part" >}} of your machine. | ||
Once you connect to the `viam-server` instance on a part, this display includes its OS, Host, `viam-server` version, IP addresses, and what time it was last online or remote address (if live): | ||
|
||
If you've connected your physical machine running `viam-server` to its instance in the Viam app, the banner also displays when the machine was last online, which version of `viam-server` it is running, the host name, the IP address or addresses, and its operating system. | ||
![The machine page with part menu expanded](/fleet/app-usage/machine-page.png) | ||
|
||
![The machine page with menu tabs](/fleet/app-usage/machine-page.png) | ||
### Set up a new machine | ||
|
||
For each machine in your fleet, you start by setting up the machine on the **Setup** tab: | ||
<!-- TODO R2D2: might need screenshot and needs to be revisited once setup construction is finished --> | ||
|
||
### Setup | ||
To connect to the `viam-server` instance on a part, follow the setup instructions. | ||
Click **View setup instructions** on the part status dropdown menu in the top left corner. | ||
|
||
The **Setup** tab contains information for starting an instance of `viam-server` on your machine's computer. | ||
|
||
Once you select the correct **Architecture** for your system in the upper left of the tab, follow the instructions on the page to connect and set up your machine. | ||
Select your system's architecture and select the version of the {{< glossary_tooltip term_id="RDK" text="RDK" >}} to use. | ||
Then, follow the instructions on the page to connect and set up your machine. | ||
|
||
{{% alert title="Tip" color="tip" %}} | ||
The **Micro-RDK** is for [microcontrollers](/get-started/installation/prepare/microcontrollers/). | ||
|
||
More in-depth information on installing `viam-server` can be found in our [Install Guide](/get-started/installation/#install-viam-server). | ||
{{% /alert %}} | ||
|
||
### Configuration | ||
Once all parts of your machine are set up and connected to the app, the part status display at the top left corner of the page turns green. | ||
Now, you can manage your machine with one of four tabs: **CONFIGURE**, **CONTROL**, **LOGS**, and **CONNECT**: | ||
|
||
{{<imgproc src="/fleet/app-usage/parts-live.png" resize="400x" declaredimensions=true alt="The machine page with all parts live">}} | ||
|
||
### CONFIGURE | ||
|
||
When a machine or a {{< glossary_tooltip term_id="part" text="machine part" >}} that is managed with the Viam app first comes online, it requests its configuration from the [Viam app](https://app.viam.com). | ||
The configuration of a machine describes the {{< glossary_tooltip term_id="resource" text="resources" >}} that it has access to. | ||
When a {{< glossary_tooltip term_id="part" text="machine part" >}} that is managed with the Viam app first comes online, it requests its configuration from the [Viam app](https://app.viam.com). | ||
Once the machine has a configuration, it caches it locally and can use the configuration for up to 60 days. | ||
The machine checks for new configurations every 15 seconds and changes its configuration automatically when a new configuration is available. | ||
|
||
After connecting your machine, go to the **Config** tab, and start adding {{< glossary_tooltip term_id="component" text="components" >}}, {{< glossary_tooltip term_id="service" text="services" >}}, and other {{< glossary_tooltip term_id="resource" text="resources" >}}. | ||
After connecting your machine, go to the **CONFIGURE** tab, and start adding {{< glossary_tooltip term_id="component" text="components" >}}, {{< glossary_tooltip term_id="service" text="services" >}}, and other {{< glossary_tooltip term_id="resource" text="resources" >}}. | ||
|
||
<!-- TODO R2D2: need to check that this works once page is set up --> | ||
|
||
To see the history of the configuration of a machine part, click on **History** on the right side of its card on the **CONFIGURE** tab. | ||
|
||
For more information, see the [configuration documentation](/build/configure/#the-config-tab). | ||
|
||
{{< alert title="Tip" color="tip" >}} | ||
If you are managing a large fleet, you can use {{< glossary_tooltip term_id="fragment" text="fragments" >}} when [configuring your machine](/build/configure/). | ||
{{< /alert >}} | ||
|
||
### History | ||
|
||
The configuration of your machine and the code it runs are kept separate to make debugging easier. | ||
The **History** tab shows timestamped changes to your machine's configuration. | ||
|
||
If you want to revert changes that you made, you can load a previous configuration by clicking the **Load config** button next to the respective configuration. | ||
|
||
{{<gif webm_src="/manage/load-prev-config.webm" mp4_src="/manage/load-prev-config.mp4" alt="Load a previous config from the UI" max-width="800px">}} | ||
|
||
You can also change your timestamp format to ISO or Local depending on your preference. | ||
|
||
### Logs | ||
|
||
To make debugging issues with your machines easier, each machine automatically sends its logs to the cloud. | ||
You can access your logs from the **Logs** tab in the [Viam app](https://app.viam.com) and filter your logs for specific keywords or log levels: | ||
|
||
{{<gif webm_src="/manage/log-filtering.webm" mp4_src="/manage/log-filtering.mp4" alt="Filter logs by term of log level in the UI" max-width="800px">}} | ||
|
||
You can also change your timestamp format to ISO or Local depending on your preference. | ||
|
||
### Control | ||
### CONTROL | ||
|
||
Once you have configured components and services for your machine, you can visually test and remotely operate them from the **Control** tab in the [Viam app](https://app.viam.com). | ||
Once you have configured components and services for your machine, you can visually test and remotely operate them from the **CONTROL** tab in the [Viam app](https://app.viam.com). | ||
For example, if you have configured a base with wheels, you can control your machine's movement with an arrow pad and fields to change base’s speed. | ||
If you have configured a camera component, a window in the **Control** tab displays the camera output. | ||
If you have configured a camera component, a window in the **CONTROL** tab displays the camera output. | ||
|
||
If you use remote control in the [Viam app](https://app.viam.com) UI, all communication to the machine uses [WebRTC](https://pkg.go.dev/go.viam.com/[email protected]/rpc#hdr-Connection). | ||
For local communication between [parts](/build/configure/parts-and-remotes/#machine-parts) Viam uses gRPC or WebRTC. | ||
|
@@ -93,30 +87,45 @@ For local communication between [parts](/build/configure/parts-and-remotes/#mach | |
|
||
You can also access the control interface using the [Viam mobile app](/fleet/#the-viam-mobile-app), which you can find on the [App Store](https://apps.apple.com/vn/app/viam-robotics/id6451424162) and on [Google Play](https://play.google.com/store/apps/details?id=com.viam.viammobile&hl=en&gl=US). | ||
|
||
### Code Sample | ||
### LOGS | ||
|
||
To start programming your machine, go to the **Code sample** tab which contains boilerplate code snippets you can copy and paste into your SDK code to connect to your machine. | ||
To make debugging issues with your machines easier, each machine automatically sends its logs to the cloud. | ||
You can access your logs from the **LOGS** tab in the [Viam app](https://app.viam.com) and filter your logs for specific keywords or log levels: | ||
|
||
{{<gif webm_src="/manage/log-filtering.webm" mp4_src="/manage/log-filtering.mp4" alt="Filter logs by term of log level in the UI" max-width="800px">}} | ||
|
||
You can click on the part names in the left-hand menu to switch logs between parts. You can also change your timestamp format to ISO or Local depending on your preference. | ||
|
||
### CONNECT | ||
|
||
#### Code sample | ||
|
||
To start programming your machine, go to the **CONNECT** tab and select the **Code sample** page. | ||
This has boilerplate code snippets you can copy and paste into your SDK code to connect to your machine. | ||
|
||
{{% snippet "show-secret.md" %}} | ||
|
||
For more information on the SDKs, see [Program your Machine with Viam's SDKs](/build/program/apis/). | ||
|
||
There is also a JSON stub you can copy if you wish to have your machine communicate with another machine as a [remote](/build/configure/parts-and-remotes/). | ||
#### Configure as remote part | ||
|
||
### Security | ||
On the **CONNECT** tab, there is also a page called **Configure as remote part**. | ||
This page has instructions for how to configure a {{< glossary_tooltip term_id="part" text="part" >}} of your machine as a [remote part](/build/configure/parts-and-remotes/) of another machine. | ||
|
||
Your machine and the Viam app communicate securely using [WebRTC](https://pkg.go.dev/go.viam.com/[email protected]/rpc#hdr-Connection) with unique secrets. | ||
#### API keys | ||
|
||
The **Security** tab allows you to access, generate, and delete the **Machine part secret keys** and the **Machine part API keys** of your machine. | ||
Your machine and the Viam app communicate securely using [WebRTC](https://pkg.go.dev/go.viam.com/[email protected]/rpc#hdr-Connection) with unique secrets. | ||
The **API keys** page of the **CONNECT** tab allows you to access, generate, and delete your [API keys](/fleet/rbac/#api-keys), which grant access to organizations, locations, and machines. | ||
|
||
![The Security tab of a machine's page noting the Machine part API keys dropdown menu, with the clipboard icon on the far right and the Generate Key button underneath the dropdown.](/fleet/app-usage/machine-secrets.png) | ||
|
||
You can copy a secret by clicking on the clipboard icon. | ||
Copy an API key or API key ID by clicking on the clipboard icon. | ||
Click **Show details** and **Access settings** to go to your organization settings page, where you can modify the access your API keys provide. | ||
|
||
{{% snippet "secret-share.md" %}} | ||
|
||
## Delete a machine | ||
|
||
You can delete a machine by navigating to its page in [the Viam app](https://app.viam.com) and selecting **Sure?** and **Delete machine** in the lower left corner of the page. | ||
Delete a machine by clicking on the **...** menu in the top right hand corner of its page, selecting **Delete machine**, and confirming that you're sure. | ||
|
||
{{< imgproc alt="The delete machine button and the confirmation checkbox (Sure?) next to it." src="/fleet/app-usage/delete.png" resize="300x" >}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters