Remote Labs
Final Steps
Your test instance is nearly working. Please do the following to verify everything is working.
- If you haven't already, shutdown the pi with
sudo shutdown now
and connect all of your cameras. Then come back to this webpage. - If your cameras were already connected, so you skipped step 1, and you haven't restarted since the install, restart you pi. You can do this with
sudo reboot
. Then come back to this webpage. - If all of the above is done you should see a video feed below. If you don't you might have an issue with your installation. You could try:
- Running
libcamera-hello --list
to make sure that your camera(s) is detected. - Verifying that your camera is totally connected correctly. If you are using an Arducam multiplexer you could verify at the Arducam quickstart guide.
- Run
i2cdetect -y 1
if you are using a Arducam multiplexer to make sure it is detected. It should look like this if working correctly.
- Checking /home/<user>/remoteLabs/logs/mediamtx.log
- Once you have a video below, it is time to set up a lab. If you are at UCSB you just need to run
remla setup <labName>.yml
, simply replacing <labName> with one of name of one of the .yml files within the git repository. If you are not a at UCSB you can still try this or use one of our files for inspiration. Note that the .yml file must be located in the remoteLabs folder within your home directory.
Install Information
- We put a folder called {{ remoteLabsDirectory }} in your home directory. Here is where you will put your lab configuration files and your websites for interacting with equipment.
- We created a remla folder in {{ settingsDirectory }}. This is mostly for remla's use, and you won't need to interact with it much. You will be able to find logs for mediamtx and nginx there if you should need to look at those.
-
We turned on i2c for you. This is necessary if you are using an Arducam hat. If you'd like to turn it off,
run
sudo rasp-config
and turn it off through the interface options menu. If you are using an Arudcam Multicamera Adapter Board you will need to leave on i2c. - We made sure you had the dependent programs installed. Namely: {{ packagesToCheck }}
-
We then downloaded MediaMTX {{ mediamtxVersion }}
and moved the binary file to {{ mediamtxBinaryLocation }} and the settings file to
{{ mediamtxSettingsLocation }} which you shouldn't need to touch. This program
allows us to share the Raspberry Pi Camera feed to the browser via WebRTC. (If you want to change
the camera settings, you can do that by editing the camera.conf file in ~/remla and then
run
remla camera update
This is currently not implemented)