Server package for Edu-ROV hardware V4.0
Project description
EduROV server package
This package contains a companion computer code for use with the eduROV 4 hardware. The package is called pyedurov3. It is supposed to run on a Raspberry Pi 3 or 4.
Use
- To install, run
pip install pyedurov3
.- If you got the warning
The script normalizer is installed in * which is not on PATH.
, callsource ~/.profile
.
- If you got the warning
- To run the server, run
pyedurov3
. - To start the server at boot, run
sudo pyedurov3 --runatstartup
. - See
pyedurov3 --help
for more options.
Setting up Raspberry Pi for EduROV with a fresh image
-Install the official Raspberry Pi Imager tool
- Insert your SD card into a card reader
- Use the tool to install Raspberry PI OS (32-bit) onto the card
- Don't forget to configure the image to use SSH before writing it
- Insert sd card to Raspberry Pi
- Connect via ssh to raspberrypi.local
- Via raspi-config:
- Under Interface Options
- Enable camera
- Enable Serial Port:
- We do not want a login shell to be available.
- We do want the serial port hardware to obe enabled.
- Allow the raspberry pi to restart and reconnect the ssh session.
- Under Interface Options
- For pyedurov3 to run at startup, we'll need to install and run it as sudo.
- Install pyedurov3 with
sudo pip install pyedurov3
- Call
sudo pyedurov3 --runatstartup --name=yourname
to set server to start at boot with "yourname" as the advertising name.
Building package (and tips for developers)
For development, you will have to build modified versions of the package from source.
Make sure the newest version of pip is installed: pip install --upgrade build
Then navigate into the upper pyedurov3 folder and run python -m build
(you might have to use sudo for that).
In development it can be helpful to quickly reinstall the package without debendencies. A helpful command is this:
python3 -m pip install --upgrade --force-reinstall --no-deps dist/pyedurov3-0.0.0.tar.gz.
The source code can alos be run from the run.py file so you don't have to rebuild the package every time you change something. Just navigate into the upper pyedurov3 folder and type python3 -m run.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyedurov3-0.0.2.tar.gz
.
File metadata
- Download URL: pyedurov3-0.0.2.tar.gz
- Upload date:
- Size: 120.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bb07afc83384c1da868a65591af2bdc359a8e6df36fe8ce1949fa6ac7d17073 |
|
MD5 | baacb46f78b8a735461a25ffd025acd1 |
|
BLAKE2b-256 | df4ba971852ae25391f1d107b4d4bb96c4e8b95d6861362c3bf9c6a1beec674c |
File details
Details for the file pyedurov3-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pyedurov3-0.0.2-py3-none-any.whl
- Upload date:
- Size: 134.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 361755308e7e822862996076281e34048d5c9c260d32b986288631fd01d4ac0c |
|
MD5 | 70bac100e6394cb1a43f4323b76259ad |
|
BLAKE2b-256 | 1c0d771c0b68e68a40c401a7dbeb5c041c9e51f54c89e41cb67cd90fb4ce1dcc |