Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions controller/camera/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# controller.camera

The PlanktoScope's hardware controller for the camera

## Usage

### Development

Install all dependencies including development tooling:

```sh
cd camera
just
```

Start controller for development:

```sh
cd camera
just dev
# make changes and restart
```
File renamed without changes.
8 changes: 8 additions & 0 deletions controller/camera/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
setup:
sudo cp planktoscope-org.controller.camera.service /etc/systemd/system/
sudo systemctl reenable planktoscope-org.controller.camera
sudo systemctl restart planktoscope-org.controller.camera

dev:
-sudo systemctl stop planktoscope-org.controller.camera
cd .. && uv run python -m camera.main
File renamed without changes.
17 changes: 17 additions & 0 deletions controller/camera/planktoscope-org.controller.camera.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Wants=mosquitto.service
After=mosquitto.service
After=nodered.service
After=mediamtx.service

[Service]
Type=simple
Environment=HOME=/home/pi
WorkingDirectory=/home/pi/PlanktoScope/controller
ExecStart=/usr/local/bin/uv run python -m camera.main
User=pi
Group=pi
Restart=on-failure

[Install]
WantedBy=multi-user.target
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Wants=mosquitto.service
After=mosquitto.service
After=nodered.service
After=mediamtx.service

[Service]
Type=simple
Expand Down
Loading