Commit Graph

222 Commits

Author SHA1 Message Date
Patrick Gehrsitz
e9f36c9c26 fix: fix wrong gpumem calculation (#176)
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
2023-09-12 19:59:44 +02:00
Patrick Gehrsitz
c9bc30414e fix(hwhandler.sh): fix error in device logging (#169) (#170)
* fix(hwhandler.sh): fix error in device logging

If device is a Raspberry Pi and does not have libcamera-hello, it does not log devices

Error occurs in Line 93 of logging.sh



* fix: remove unnecessary double function calls



---------

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
2023-09-01 21:07:09 +02:00
Stephan Wendel
f6e2156ab3 Merge develop branch (#163)
* Fix makefile flags on low memory devices (#124)

* Fix `makefile` flags on low memory devices

On devices with less than 512MB existing devices will use `-j2` due to wrong condition.

* docs: Update index with correct heading and link to backends (#131)

This is a follow-up to #108 and fixes heading and hyperlink to the list of backends

* Typo in `core.sh` (#138)

* Fix makefile flags on low memory devices (#124) (#125)

* Fix `makefile` flags on low memory devices

On devices with less than 512MB existing devices will use `-j2` due to wrong condition.

Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>

* Typo in `core.sh`

'Dependencys' --> dependencies

---------

Co-authored-by: Stephan Wendel <43513802+KwadFan@users.noreply.github.com>
Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>

* Fix makefile flags on low memory devices (#124) (#125) (#144)

* Fix `makefile` flags on low memory devices

On devices with less than 512MB existing devices will use `-j2` due to wrong condition.

Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>

* docs(messages.sh): fix typos, improve spelling (#145)

* feat: add legacy cam support (#146)

* feat: add legacy cam support

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* feat: add blockyfix

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: add ustreamer legacy cam workaround

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

---------

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* Fix makefile flags on low memory devices (#124) (#125) (#147)

* Fix `makefile` flags on low memory devices

On devices with less than 512MB existing devices will use `-j2` due to wrong condition.

Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>

* fix: fix make config empty path (#148)

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: fix default_path_msg function name (#149)

* fix: fix default_path_msg function name

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: fix message

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

---------

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: fix libcamera-apps-lite not getting updated (#160)

libcamera-apps-lite is needed for libcamera-hello.
Crowsnest uses libcamera-hello to detected raspicams

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: fix Shellcheck test error (#153)

* fix: fix Shellcheck test error

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* style: remove empty condition

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

---------

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

* fix: fix CustomPiOS docker build error (#158)

This should skip any check of `SUDO_USER`

Tested with Win & Linux host with Docker 

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>

---------

Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>
Co-authored-by: DeviousFusion <dj3tusk@gmail.com>
Co-authored-by: Sergei <67871383+slepiavka@users.noreply.github.com>
Co-authored-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
2023-08-11 18:04:33 +02:00
Stephan Wendel
8b54eae98d Fix makefile flags on low memory devices (#124) (#125)
* Fix `makefile` flags on low memory devices

On devices with less than 512MB existing devices will use `-j2` due to wrong condition.

Co-authored-by: Kamil Trzciński <ayufan@ayufan.eu>
2023-06-02 21:08:39 +02:00
Stephan Wendel
09f4cb1ed2 docs(readme): refactor readme.md
Moves more parts to official docs

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-05-28 13:10:32 +02:00
Stephan Wendel
b0c011b4ef fix(hwhandler.sh): fix error in device logging
If device is not on a Raspberry Pi, it does not log devices

Error occurs in Line 93 of logging.sh

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-05-23 13:21:32 +02:00
Stephan Wendel
308109323a fix: fix error in ustreamer.sh
Obviously start_param is missing device, this leads to not starting ustreamer

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-05-23 04:45:15 +02:00
John Northrup
4f69c9476f docs: fix clarity of backend packages (#108)
Make it clear that crowsnest uses these two packages instead of how it was written, implying that the packages used crowsnest.
2023-05-05 07:10:34 +02:00
Stephan Wendel
0c524b725d fix: fix func detect_libcamera
If libcamera of arducam is used, we need to get rid of its output,
compared to raspi foundations libcamera output

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-05-02 18:51:40 +02:00
Stephan Wendel
a07e42a1ac fix: fix error exit on failure
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-18 20:06:57 +02:00
Stephan Wendel
4124e65ec4 feat(logging): extend error trace in logging
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-18 19:22:42 +02:00
Stephan Wendel
42ce0ba297 fix: fix error not exiting script on error
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-18 19:22:42 +02:00
Stephan Wendel
e3bd2e2e57 fix: fix error causing cam list to fail
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-17 18:45:44 +02:00
Stephan Wendel
2bbe265e83 feat(install): set gpu_mem on rpi devices
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-16 13:29:45 +02:00
Stephan Wendel
2a4fbd9c77 fix: fix raspicam detection
if `start_x=1` is not set,
it messes up output of `vcgencmd get_camera`.

Which leads to not detected libcamera csi cams,
even if they are detected correctly

Therefor using libcamera-hello to determine if available

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-15 14:39:43 +02:00
Stephan Wendel
6c1aec18b4 refactor: refactor hwhandler.sh
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-15 13:55:22 +02:00
Stephan Wendel
f8ce308fa5 refactor: remove unnecessary ffmpeg version check
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-15 10:48:04 +02:00
Stephan Wendel
745631aed0 chore: update conf and readme to new params
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-13 20:41:27 +02:00
Stephan Wendel
952dac98a1 chore: add note to crowsnest.conf
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-13 20:26:32 +02:00
Stephan Wendel
3a1a9294ad chore: allow backend names as mode
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-13 20:18:49 +02:00
Stephan Wendel
0c49dc796f fix: fix startup error on ubuntu arm
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-13 20:06:56 +02:00
Stephan Wendel
48ab81a437 fix: disable debug output in make config
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-13 15:34:21 +02:00
Stephan Wendel
4444ea58fd refactor: refactor install chain
Includes:

* refactor of install.sh, splitting it to libs
* fix of custompios module according to install changes
* added test script to verify install
* refactor of `make config` script

    Signed-off-by: Stephan Wendel <me@stephanwe.de>

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-10 15:11:19 +02:00
Stephan Wendel
1df3f4377a docs: removed TODO.md
Using git projects for todos instead of file

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-02 12:11:56 +02:00
Stephan Wendel
f065b2952f chore: update TODO.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-02 11:17:26 +02:00
Stephan Wendel
9d6c46e2f8 chore: update TODO.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-02 11:14:04 +02:00
Stephan Wendel
42cd77dc96 chore: update TODO.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-02 10:57:17 +02:00
Stephan Wendel
f45897447f chore: add TODO.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-04-02 10:54:45 +02:00
Stephan Wendel
4c4e232ee5 docs: change test formation
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-03-12 12:31:08 +01:00
Stephan Wendel
f8c78c570c docs: add camera-streamer to README.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-03-12 12:28:59 +01:00
Stephan Wendel
f6b841e92f docs: update Readme.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-03-11 20:00:27 +01:00
Stephan Wendel
95c1dca13f feat!: adds camera-streamer to crowsnest
This introduces camera-streamer as streamer option
via `mode: multi`

camera-streamer is a feature packed stream service.
It is capable to deliver mjpg/snapshots/webrtc and rtsp

Limited to raspberry pi sbc's for now.

This should also resolv
Feature request #51
Feature request #37
Fixes #83
Closes #85
Fixes #89

BREAKING CHANGES:

Dropping support for Debian Buster based images and kernels older than
5.15y

Dropping RTSP support due aler9/simple-rtsp-server

Dropping usage of ffmpeg

No support anymore for Raspicam V1 (EOL)

Signed-off-by: Stephan Wendel <me@stephanwe.de>

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-03-11 18:57:19 +01:00
Stephan Wendel
20ed6a8b58 chore: add error message if v4l2-ctl errors out
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-02-24 17:47:58 +01:00
Stephan Wendel
a5a36e5c3d fix: fix add_update_entry condition
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-02-19 16:32:17 +01:00
Stephan Wendel
43b86a33d7 chore: add v4l2ctl logging prefix
According to PR #78

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-02-16 18:29:45 +01:00
Stephan Wendel
9a66358443 fix: store log_level in var instead in function
Instead of checking multiple times the log level store in Variable.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-02-16 18:07:48 +01:00
docgalaxyblock
541855054f docs: fix typo and rework layout (#80)
This also makes #77 obsolete.
2023-02-01 15:50:27 +01:00
Gil Levy
1e9fc005ef Update README.md (#72)
Fixing directory name to `v4l` instead of `4vl` in line 244
2023-01-06 21:06:00 +01:00
Stephan Wendel
00fe721bf3 docs: fix typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 19:38:47 +01:00
Stephan Wendel
bb38f36cb0 docs: fix typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 19:37:45 +01:00
Stephan Wendel
04f29cbb98 docs: improves layout
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 19:32:35 +01:00
Stephan Wendel
b6e2de2c25 docs: fixed typo
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 19:31:04 +01:00
Stephan Wendel
ad081e67d6 docs: changed layout
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 19:30:22 +01:00
Stephan Wendel
7d207e6d84 docs: updated Readme.md
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 19:28:10 +01:00
Stephan Wendel
efe4dfd189 fix(install): fixes error in unattended mode
In unattended mode it trys to set raspicamfix
even the desired Image isnt meant to be for a pi.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2023-01-03 18:58:30 +01:00
Stephan Wendel
e21467358e fix: disable SC2317
Disable SC2317 due usage of traps

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-12-27 07:24:26 +01:00
Stephan Wendel
5e95c0d3bd fix(install): wrong syntax in config.txt
This should be fix #69

I used the wrong regex to get rid of blanks introduced by crudini

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-12-15 16:38:22 +01:00
Stephan Wendel
722c7ca3f8 fix: fix error introduced by crudini
Used version of crudini puts spaces between values and parameters
This leads to an unusable config.txt

To fix that behavior simply remove blanks with sed.

This may fix #50

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-12-12 20:58:18 +01:00
Stefan Dej
d04478635b chore: add not-on-github bot (#68)
Signed-off-by: Stefan Dej <meteyou@gmail.com>

Signed-off-by: Stefan Dej <meteyou@gmail.com>
2022-12-11 11:33:56 +01:00
ZoZo
dc27e3f52a docs: updated documentation for device definition (#65)
Improved readability of device definition section and added text to resolve "Video capture not supported by the device" error when using /dev/video0 on non-RPi hardware.

Signed-off-by: Cor Ruiten <zozo@ruiten.com>

Signed-off-by: Cor Ruiten <zozo@ruiten.com>
2022-12-01 19:18:05 +01:00