Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS-3438: Update module environment variables #3993

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JessamyT
Copy link
Collaborator

@JessamyT JessamyT commented Feb 11, 2025

Staging: https://deploy-preview-3993--viam-docs.netlify.app/operate/reference/module-configuration/#environment-variables

@cheukt I could use confirmation of which vars are available on local modules vs not

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Feb 11, 2025
Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit c5efb9c
🔍 Latest deploy log https://app.netlify.com/sites/viam-docs/deploys/67abbc2d0f7f2a000890db07
😎 Deploy Preview https://deploy-preview-3993--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 26 (🔴 down 9 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@JessamyT JessamyT requested a review from cheukt February 11, 2025 20:25
| `VIAM_HOME` | The root of the `viam-server` configuration.<br>Default: `$HOME/.viam` | <p class="center-text"><i class="fas fa-check" title="yes"></i></p> |
| `VIAM_MODULE_ROOT` | The root of the module install directory. The module process uses this directory as its current working directory (`cwd`). This variable is useful for file navigation that is relative to the root of the module.<br>Example: `/opt/my-module/verxxxx-my-module/` | <p class="center-text"><i class="fas fa-check" title="yes"></i></p> |
| `VIAM_MODULE_DATA` | A persistent folder location a module can use to store data across reboots and versions. This location is a good place to store [python virtual environments](/dev/reference/sdks/python/python-venv/).<br>Example: `$VIAM_HOME/module-data/cloud-machine-id/my-module-name/` | |
| `VIAM_MODULE_ID` | The module ID of the module.<br>Example: `viam:realsense` | |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not available on local modules

Comment on lines +247 to +252
| `VIAM_API_KEY` | An API key with access to the machine where this instance of the module is running. | <p class="center-text"><i class="fas fa-check" title="yes"></i></p> |
| `VIAM_API_KEY_ID` | The ID of the API key with access to the machine where this instance of the module is running. | <p class="center-text"><i class="fas fa-check" title="yes"></i></p> |
| `VIAM_MACHINE_PART_ID` | The ID of the part where this instance of the module is running. | |
| `VIAM_MACHINE_ID` | The ID of the machine where this instance of the module is running. | |
| `VIAM_LOCATION_ID` | The ID of the {{< glossary_tooltip term_id="location" text="location" >}} that owns the machine where this instance of the module is running. | |
| `VIAM_PRIMARY_ORG_ID` | The ID of the {{< glossary_tooltip term_id="organization" text="organization" >}} that owns the machine where this instance of the module is running. | |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these will only be available on app.viam connected robots

@JessamyT JessamyT requested a review from npentrel February 14, 2025 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to build This pull request is marked safe to build from a trusted zone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants