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: docs/operate/reference/advanced-modules/custom-components-remotes.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ To add a custom resource as a [remote part](/operate/reference/architecture/part
36
36
The new model must implement any functions of the built-in resource type marked as required in its [RDK API definition](/dev/reference/apis/).
37
37
2. Register the custom component on a new gRPC server instance and start the server.
38
38
3. Add the server as a [remote part](/operate/reference/architecture/parts/) of your machine.
39
-
4. (Optional) [Configure a process](/manage/reference/processes/) to launch this remote server to ensure the remote server is always running alongside the rest of your machine.
39
+
4. (Optional) Ensure the remote server automatically starts when the machine boots.
40
40
41
41
Each remote server can host one or many custom components.
42
42
@@ -53,7 +53,7 @@ For more detailed instructions, see the full example in the [Python SDK document
53
53
1. Register the custom component on a new gRPC server instance and start the server.
54
54
You can do this with the [`viam.rpc` library](https://python.viam.dev/autoapi/viam/rpc/index.html) by creating a new `rpc.server.Server` instance.
55
55
1. Add the server as a [remote part](/operate/reference/architecture/parts/) of your machine.
56
-
1. (Optional) [Configure a process](/manage/reference/processes/) to launch this remote server to ensure the remote server is always running alongside the rest of your machine.
56
+
1. (Optional) Ensure the remote server automatically starts when the machine boots.
57
57
58
58
Each remote server can host one or many custom components.
Copy file name to clipboardExpand all lines: docs/tutorials/custom/custom-base-dog.md
+5-47
Original file line number
Diff line number
Diff line change
@@ -423,59 +423,17 @@ Your local component configuration should look similar to the following:
423
423
## Start the Freenove server
424
424
425
425
To operate the dog, you need to start the Freenove robot dog server (which you saved as <file>/home/fido/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/main.py</file>).
426
+
You can do this manually by SSHing into the Pi and running the following command from the <file>home/fido/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server/</file> directory:
426
427
427
-
Configure a [_process_](/manage/reference/processes/) to automatically start the server on boot so it is ready to receive commands from `viam-server`.
428
-
429
-
Click the **+** (Create) button next to your main part in the left-hand menu and select **Process**.
430
-
431
-
In the process configuration panel that appears, click on the name in the top left corner and rename it to `freenove`.
432
-
Fill out the configuration panel as follows:
433
-
434
-
- **Executable**: The path to Python on your Pi, for example `/usr/bin/python`.
435
-
If you're not sure what this path should be, run `which python` on your Pi command line to find it.
436
-
- **Arguments**: Type in`main.py` and click **Add argument**.
437
-
Then type`-tn` and click **Add argument** again.
438
-
This flag starts the Freenove server without launching Freenove's GUI (which you don't need for this use case).
439
-
- **Working directory**: `/home/fido/Freenove_Robot_Dog_Kit_for_Raspberry_Pi/Code/Server` (changing "/home/fido" to the name of your home directory where you downloaded the Freenove code).
440
-
- **Logging**: Toggle to the **on** position so you can view logs for this server process.
441
-
- **Execute once**: Leave this **off** so that the Freenove server will continue to run, and will restart if it crashes.
442
-
443
-
Click **Save**.
444
-
445
-
{{<imgproc src="/tutorials/custom-base-dog/process-config.png" resize="400x" declaredimensions=true alt="Screenshot of the Processes subtab of the Config tab, showing a process configured as detailed above." class="shadow">}}
446
-
<br>
447
-
448
-
{{% expand "Click to see what the processes config looks like in JSON mode." %}}
0 commit comments