143 Commits

Author SHA1 Message Date
Stephan Wendel
ee59a12d59
feat(install): Adds ubuntu armv7l support
Credits to https://github.com/gdachs.
Unfortunatly he didnt respond to my message.
But to give credits to, whos credits deserve.

Tested on an Odroid C1 with Ubuntu 20.04 on armv7l by gdachs.

See https://github.com/mainsail-crew/crowsnest/pull/32

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-09-13 18:24:51 +02: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
946fad1fd6
fix: fixes typo in install.sh
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-08-16 19:22:56 +02:00
Stephan Wendel
8df5078b3d
refactor: refactor of User input during install
Show default answers in case of user only hits enter.

Includes fix: Install on rpi bullseye fails

This also should fix #24

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-08-16 19:09:14 +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
a3fba6105f
fix: fix error using installer on armbian
This should fix #28

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-08-12 19:24:18 +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
4b2532d495
fix: fixes error patching moonraker.conf
Patching fails if file in /tmp exists

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-07-28 14:57:22 +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
420b77fe5a
Merge pull request #22 from lixxbox/docs-lightmode-logo
feat: switch logo according to light or dark mode
2022-06-29 19:27:44 +02:00
lixxbox
a5a5df8069
feat: switch logo according to light or dark mode 2022-06-29 14:37:39 +02:00
Stefan Dej
d8ef49226a
docs: rename webcam.conf to crowsnest.conf in readme.md (#21) 2022-06-28 22:26:38 +02:00
Robnex
5391f754b1
Readme config file name update
Update the old webcam.conf to crowsnest.conf
2022-06-28 18:02:21 +02:00
Stephan Wendel
5a9c24593a
fix(install): fixes error in removing webcamd
Fixes function to remove existing webcamd

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-26 02:32:20 +02:00
Stephan Wendel
3a5f65b018
fix: libjpeg62-turbo has no install target
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-25 00:24:56 +02:00
Stephan Wendel
7af4ee85d3
fix: used wrong condition
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-25 00:19:14 +02:00
Stephan Wendel
9d9f07b5f9
fix: fixes install error on ubuntu aarch64
This should fix #20

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-25 00:07:06 +02:00
Stephan Wendel
f726bda796
fix(make build): clone ustreamer if not present
Fixes error that leads to abort of make build.
Now it clones ustreamer is not present.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-24 23:57:14 +02:00
Stephan Wendel
1af5d9c46f
fix: fixes install error if config.txt missing
This should fix install error if used OS has no config.txt,
like Raspberry PiOS has.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-20 21:52:54 +02:00
Stephan Wendel
3c4e4f8098
fix(uninstall): fixes error service not disabled.
This fixes error that target has leftover from enabled service.
Disable Service, before removing.
Thanks to Nestor-WW from Discord for mentioning.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-20 21:36:43 +02:00
Stephan Wendel
fac3667b0f
chore(docs): update discord url
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-16 10:43:30 +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
c52cf40a96
chore(docs): updates readme to latest changes.
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-16 10:39:36 +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
11172878eb
chore(rtsp): update rtsp config template
According to Version update rtsp config hast to be updated

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-12 11:07:02 +02:00
Stephan Wendel
18ab214d49
chore(rtsp): update rtsp-simple-server to latest release
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-06-11 19:13:39 +02:00
Stephan Wendel
6071c6fc76
refactor(installl): refactor install chain
This commit should cover the following:

Missing insatllation candidate of libjpeg8-dev in bullseye images,
fixes #16 and #15

Refactores installation of ustreamer.
This should cover #12

Dropped ustreamer as submodule and clone it via install script.
For buster based images it reset the repo to last commit of v4.13 (omx support)
All other will get master branch (latest commit at insatllation)

This enables posibility to write an app updater.

Fixes custompios module according to changes.
2022-06-11 18:59:19 +02:00
Stephan Wendel
dc710d0abe
chore(install): remove backup if unattended
This will remove the moonraker.conf.backup if running unattended

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-28 10:51:41 +02:00
Stephan Wendel
fab3772e10
fix(install): fixes error that leads to unusable moonraker.conf
This should fix #14

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-25 21:31:24 +02:00
Stephan Wendel
ee6598c292
refactor: refactor installer and custompios module
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-21 15:16:43 +02:00
Stephan Wendel
3a48d47f5a
fix(install): fix error using custopizer unattended
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-05 21:36:27 +02:00
Stephan Wendel
dcb55816d3
refactor(install): improve install if unattended
Output should be mor verbose if unattended to help debugging

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-05 20:10:20 +02:00
Stephan Wendel
36893bf9d4
refactor: improve detection of chroot jail
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-04 19:23:37 +02:00
Stephan Wendel
c4d4795089
feat(install): add unattended mode to installer
Unattended ignores to enable the service and
adds Crowsnest to moonraker.conf (update manager)

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-05-04 19:06:32 +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
Stephan Wendel
62ee73b6da
fix(updater): critical typo in func copy_logrotate
wrong path used for variable "logrotatefile"

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-03-07 21:13:47 +01:00