Skip to content

Demo Viam features from the browser, running against a VM in the cloud

License

Notifications You must be signed in to change notification settings

viam-labs/browser-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Run npm run start and visit localhost:8000 in a browser.

The environment variables ROBOT_LOCATION, ROBOT_KEY and ROBOT_KEY_ID must be set. PLC_ROBOT_LOCATION, PLC_ROBOT_KEY and PLC_ROBOT_KEY_ID must be set for the PLC demo. You can set them separately or start like:

export ROBOT_LOCATION=mylocation;export ROBOT_KEY=mykey;export ROBOT_KEY_ID=mykeyid;export PLC_ROBOT_LOCATION=mylocation;export PLC_ROBOT_KEY=mykey;export PLC_ROBOT_KEY_ID=mykeyid;npm run start

The environment variable PORT can be set to change the port it is serving from (default is 8000).

Edit src/main.ts to change the robot logic being run. Edit static/index.html to change the layout of the app.

About

Demo Viam features from the browser, running against a VM in the cloud

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published