Skip to content

Commit 7f46df3

Browse files
committed
Update pisetup.md
Simplify installation instructions by using the new installation script. Remove note to install updated packages, as this is now handled automatically in the update script.
1 parent 3a73c8e commit 7f46df3

File tree

1 file changed

+3
-59
lines changed

1 file changed

+3
-59
lines changed

docs/software/pisetup.md

Lines changed: 3 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -431,59 +431,10 @@ wake up the Raspberry Pi everyday at 9, 12, 15 and 18 o'clock (UTC+2). Activate
431431

432432
## Install Software
433433

434-
Install all required dependencies for RPi + OAK:
434+
Install all dependencies/packages and automatically run the required setup steps:
435435

436436
``` bash
437-
wget -qO- https://raw.githubusercontent.com/maxsitt/insect-detect/main/install_dependencies_oak.sh | sudo bash
438-
```
439-
440-
Clone the [`insect-detect`](https://github.com/maxsitt/insect-detect){target=_blank}
441-
GitHub repo:
442-
443-
``` bash
444-
git clone https://github.com/maxsitt/insect-detect
445-
```
446-
447-
Create a virtual environment with access to the system site-packages:
448-
449-
``` bash
450-
python3 -m venv --system-site-packages env_insdet
451-
```
452-
453-
Update pip in the virtual environment:
454-
455-
``` bash
456-
env_insdet/bin/python3 -m pip install --upgrade pip
457-
```
458-
459-
Install all required packages in the virtual environment:
460-
461-
``` bash
462-
env_insdet/bin/python3 -m pip install -r insect-detect/requirements.txt
463-
```
464-
465-
Generate self-signed SSL certificates to optionally enable HTTPS for the web app:
466-
467-
``` bash
468-
bash insect-detect/generate_ssl_certificates.sh
469-
```
470-
471-
To enable the `insect-detect-startup.service` at boot, copy it to the systemd directory:
472-
473-
``` bash
474-
sudo cp insect-detect/insect-detect-startup.service /etc/systemd/system/
475-
```
476-
477-
...reload the systemd daemon:
478-
479-
``` bash
480-
sudo systemctl daemon-reload
481-
```
482-
483-
...and enable the service:
484-
485-
``` bash
486-
sudo systemctl enable insect-detect-startup.service
437+
wget -qO- https://raw.githubusercontent.com/maxsitt/insect-detect/main/insect_detect_install.sh | bash
487438
```
488439

489440
**Optional**: Install and configure [Rclone](https://rclone.org/docs/){target=_blank}
@@ -522,15 +473,8 @@ development, it is recommended to update it regularly. The provided update
522473
script will create backups of all your config files, handle your local changes
523474
and give you instructions in the case of merge conflicts.
524475

525-
Update the `insect-detect` repo by running the update script:
476+
Update the `insect-detect` software by running:
526477

527478
``` bash
528479
bash insect-detect/insect_detect_update.sh
529480
```
530-
531-
If the `requirements.txt` file was included in the updates, make sure that you
532-
have the latest versions of the required packages installed by running:
533-
534-
``` bash
535-
env_insdet/bin/python3 -m pip install -r insect-detect/requirements.txt
536-
```

0 commit comments

Comments
 (0)