Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtkaszpir committed Mar 7, 2024
1 parent be8f3dd commit eea48da
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.10.12
37 changes: 37 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,40 @@
Linux shell script to send still camera images to Prusa Connect

See [docs here](https://nvtkaszpir.github.io/prusa-connect-camera-script)

## Quick start

RaspberryPi with CSI camera with libcamera:

```shell
# go to Prusa Connect site, add camera, copy token, turn on your 3D printer

cp csi.dist .env
# edit .env file, set token and fingerprint

set -o allexport; source .env; set +o allexport

./prusa-connect-camera.sh

```

## Docs

```shell
pip install -r requirements.txt
mkdocs serve

```

Auto-published by github action when pushed to master.

## Code commits

```shell
npm install -g markdown-link-check
pip install pre-commit

pre-commit install
git add .
pre-commit run --all
```
5 changes: 3 additions & 2 deletions docs/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Host or virtual machine or container:
- probably something like Raspberry Pi Zero W at least, can be without camera
- more cameras usually requires more compute power

Camera such as:
Camera such as:
<!-- markdown-link-check-disable -->
- Raspberry Pi CSI cameras such as [Raspberry Pi Cam](https://www.raspberrypi.com/documentation/accessories/camera.html)
<!-- markdown-link-check-enable -->
Expand All @@ -30,7 +30,8 @@ Operating system, Debian based preferred, for example Raspberry Pi OS Lite.
## Optional packages

- `v4l-utils` - to detect camera capabilities
- `libraspberrypi-bin` or `rpicam-apps-lite` for Rpi CSI cameras (should be already installed on Rpi OS)
- `libraspberrypi-bin` or `rpicam-apps-lite` for Rpi CSI cameras
(should be already installed on Rpi OS)
- `fswebcam` - for generic USB cameras
- `ffmpeg` - for custom commands for capturing remote streams
- you-name-it - for custom commands beyond my imagination
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,3 @@ nav:
- Configuration Tuning: configuration.tuning.md
- Performance: performance.md
- Streaming cameras with mediamtx: stream.mediamtx.md

0 comments on commit eea48da

Please sign in to comment.