Patrick Gehrsitz
aa97f12a5d
fix: add pi5 support ( #225 )
...
Signed-off-by: Patrick Gehrsitz <mryel00.github@gmail.com >
2024-01-07 17:57:56 +01:00
Patrick Gehrsitz
fd22d11d9b
fix: fix crash with brokenfocus and camera-streamer ( #224 )
...
If one cam with `ustreamer` is defined it will run `brokenfocus` for every cam defined. This will lead to a crash with `brokenfocus` devices with mode `camera-streamer`.
This PR fixes this issue and will only run `brokenfocus` for devices with mode `ustreamer`.
2024-01-07 17:29:33 +01:00
Stephan Wendel
61421f5148
fix: fixes error in detect_legacy ( #217 )
...
This will fix issue on Raspberry Pi5, which doesnt generate cam list,
because 'vcgencmd get_camera' exits with an error.
If all conditions fail it will always return '0'
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2023-12-14 23:54:46 +01:00
Patrick Gehrsitz
e7d85dc2e6
fix: revert #197 ( #207 )
2023-11-13 22:32:23 +01:00
Patrick Gehrsitz
2d53cc4922
chore: add startup workaround for SpeederPad ( #203 )
2023-11-13 21:20:59 +01:00
Patrick Gehrsitz
293768fdca
fix(camera-streamer.sh): force camera to be always active ( #197 )
...
Potentially fixes #139
2023-11-03 12:06:44 +01:00
Patrick Gehrsitz
ae2bc21404
fix: fix wrong messages ( #183 )
...
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com >
2023-09-17 12:06:45 +02:00
Patrick Gehrsitz
5333a62498
fix(hwhandler.sh): fix error in device logging ( #169 )
...
* 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
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com >
* fix: remove unnecessary double funtion calls
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com >
---------
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com >
2023-08-30 19:39:59 +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
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
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
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
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
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
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
Stephan Wendel
957207b448
chore: refactor log output of rtsp-simple-server
...
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-11-24 17:24:47 +01:00
Stephan Wendel
c6dd973d33
fix: add new parameter for rtsp-simple-server
...
rtsp-simple-server now needs `-rtsp_transport tcp`
to determine tcp transport stack
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-11-24 15:01:02 +01:00
Stephan Wendel
cffea681af
fix: fixes wrong path to crowsnest-rtsp.yml
...
This should fix #63 (fixes #63 )
According to changes of Install routine, I simply forgot to change the
path to resources (which was file_templates before)
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-11-24 10:33:20 +01:00
Stephan Wendel
8fe11005e1
feat: add no_proxy parameter
...
This allows you to run crowsnest without any
proxy server needed.
This resolves #34
Signed-off-by: Stephan Wendel <me@stephanwe.de >
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-11-15 17:50:26 +01:00
Stephan Wendel
dabb66c992
fix: fixes blocky view after reboot
...
This should fix #33
By default a variable bitrate is set, this leads
to a "blocky" view.
blockyfix function sets constant bitrate and a moderate
bitrate if not set by user.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-09-04 17:11:21 +02:00
Stephan Wendel
aab54f8ab2
fix(ustreamer.sh): fixes duplicate format setting
...
mjpg detection adds format twice if device is a raspicam.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-09-04 11:30:32 +02:00
Stephan Wendel
e2680909ab
fix(messages): deprecated message shows wrong name
...
In function deprecated_msg_1, it used
webcam.conf instead of crowsnest.conf
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-09-04 09:32:28 +02:00
Stephan Wendel
2fb45c3283
fix: used wrong terminology for diskspace
...
This fixes error that available diskspace is shown as used diskspace.
In reallity it should show available and using available instead of
used.
Thanks to mallcop for reporting
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-08-12 20:12:32 +02:00
Stephan Wendel
3df7fedb4d
fix: fixes error in brokenfokus function
...
This fixes error as described in #27
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-08-09 20:37:49 +02:00
Stephan Wendel
ffba10350b
feat: allow mjpeg as valid parameter
...
This allows to use mjpg or mjpeg in mode: section of config
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-07-23 10:24:12 +02:00
Stephan Wendel
b6055cecff
fix(logging): fixes error in log output of host information
...
This fixes error thet leads to unwanted multiple output of
lines of used model if raspberry sbc.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-06-16 10:40:39 +02:00
Stephan Wendel
e42799bac6
fix(v4l2ctl): fixes error in broken_focus detection
...
This should fix #18
Error in detection leads to exiting crowsnest script.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-06-12 19:31:12 +02:00
Stephan Wendel
687be54de1
feat(logging): display host information in log file
...
Adds Information Distribution,Release,Kernel,Host model,Cpu Count,
Total Ram and Diskusage to log, if not set to log_level: quiet
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-06-12 18:55:51 +02:00
Stephan Wendel
5b8c072db3
refactor(logging): strips out comments in func print_cfg
...
This strips out any comments in crowsnest.conf
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-06-12 16:41:35 +02:00
Stephan Wendel
104536cd21
refactor!: renaming webcamd to crowsnest
...
BREAKING CHANGE: This will require a reinstall of crowsnest
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-06-12 15:42:28 +02:00
Stephan Wendel
b8a7046db8
fix: fixes uncomplete log if using bullseye
...
Due libcamera and extended output ouf vcgencmd,
output must be filtered.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-05-01 12:57:35 +02:00
Stephan Wendel
3c52447822
chore: enabled inherited ERR Trap
...
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-10 14:54:58 +02:00
Stephan Wendel
6f17019fb8
feat: added feature versioncontrol
...
If log_level is set at least to verbose it will
display versions of used 3rd Party tools like
ustreamer, rtsp-simple-server and ffmpeg
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-10 14:20:03 +02:00
Stephan Wendel
3692b310a5
fix: fixes logging empty value if not set or available
...
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-08 21:23:26 +02:00
Stephan Wendel
7c5188a7e0
refactor: refactored logging.sh
...
The design till now was slow and time consuming.
Now it exports the log destination once instead
in every call of 'log_msg'
Should be provide better start performance.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-08 20:27:46 +02:00
Stephan Wendel
3bfea5ad19
fix: fixes focus_absolute not correct after streamer started
...
Some devices tend to lose focus_absolut value
after the Streamer starts.
This will check for 'brokenfocus' devices and
set focus_absolute again after the stream services has started.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-08 20:25:21 +02:00
Stephan Wendel
2e3cf93568
feat: add debug logging for v4l2_control
...
If log_level: debug it logs settings after its done.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-08 20:25:21 +02:00
Stephan Wendel
acf9516058
refactor!: moved v4l2ctrls logging to log_level verbose
...
BREAKING CHANGE: option log_v4l2ctrls is obsolete!
Moved logging of capabilties to log_level: verbose
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-03 11:29:16 +02:00
Stephan Wendel
03d03f851e
feat: log available v4l2 controls
...
Needs new option in config file
log_v4l2ctrls: true
This spits out the equvivalent to v4l2-ctl -L in log.
See README for details.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-04-02 15:20:01 +02:00
Stephan Wendel
664d9b539b
feat: enable detection of csi adaptors
...
Added func detect_avail_csi.
refactored logging.sh accordingly.
Signed-off-by: Stephan Wendel <me@stephanwe.de >
2022-03-26 20:31:50 +01:00