17 Commits

Author SHA1 Message Date
Stephan Wendel
b96c2bd86a
BUGFIX: Typo in shellcheck directive
* 'requires' instead of 'require'

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-17 22:02:00 +01:00
Stephan Wendel
70898550fe
SHELLCHECK: Enabled 'requires-variable-braces' in webcamd
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-17 20:47:36 +01:00
Stephan Wendel
a186b4e09e
REFACTOR: Ensure shellcheck compatibility
* Modified install.sh
* Added libs/ustreamer.sh
* Added libs/v4l2rtspserver.sh
* Modified uninstall.sh
* Modified webcamd

REFACTOR: Split run_rtsp to libs/v4l2rtspserver.sh

* Modified webcamd accordingly

REFACTOR: Split run_ustreamer to libs/ustreamer.sh

* Updated webcamd accordingly

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-13 22:08:36 +01:00
Stephan Wendel
856c28d55d
REFACTOR: Renamed develop_log option.
* Renamed develop_log to mor intuitive delete_log

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-12 12:12:15 +01:00
Stephan Wendel
351703cc60
Add Feature V4L2 Control
* This feature allows you to setup v4l2-ctl parameters before stream starts.
* Modified webcamd accordingly.
* Modified libs/configparser.sh.
* Changed functions get_param configured_cams and check_section

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-11 20:19:10 +01:00
Stephan Wendel
2a2bff5b31
Moved construct_streamer function
* Moved function to init_streams.sh

* Prepared v4l2-ctl device control feature

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-09 19:55:30 +01:00
Stephan Wendel
490f3f2842
FIX: Fixed SC2034 in webcamd
Fixed typo in getopts

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-08 21:42:55 +01:00
Stephan Wendel
bcefa9886b
IMPROVE: Split webcamd with 'libs'
This should improve maintainability.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-08 20:02:09 +01:00
Stephan Wendel
ec3157a794
Dropped mjpg-streamer
* Updated README.md accordingly
* Ustreamer now compiles without omx flag and
* webcamd does not use --encoder omx.
* Added new install and uninstall script,
* both prepared for later implementing webrtc
* Updated and tested custompios Module
* Removed mjpg-streamer from webcamd

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-11-23 19:45:20 +01:00
Stephan Wendel
9ef05e586a FEATURE: Added loggin to systemd
* webcamd logs now also to systemd.
* viewable via journalctl and systemctl status webcamd.
* Logs always in debug Style to systemd

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-11-04 19:15:08 +01:00
Stephan Wendel
6891584990 Rewritten Log Handling
* Now you can set log_level to your needs.
See README.md for Details.
* Added Option to delete log file on restarts
* develop_log: true
*
* Updated README.md accordingly

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-11-02 21:09:34 +01:00
Stephan Wendel
7e278cde4b Changed PATH for 'lost-' Files
* To delete files on reboot using /tmp for Files

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-11-01 13:08:21 +01:00
Stephan Wendel
2d1888b439 Changed WATCHDOG behavior.
* If a Device is lost, log file gets spammed over time.
* Now WATCHDOG logs once if device lost and if device returns

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-11-01 12:21:58 +01:00
Stephan Wendel
943f78f5b5 Rebuild WATCHDOG.
* Watchdog now only send message to log if Device is lost

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-10-31 13:47:05 +01:00
Stephan Wendel
a63288a805 Changed custom_flag behavior
* run_ustreamer and run_rtsp functions modified to add custom_flags
at the end of regular/preset Parameters

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-10-29 18:07:01 +02:00
Stephan Wendel
fb19085592 Changed function run_mjpg.
* Changed custom_flags behavior.
* If custom_flags available they are added to the 'input' section.
* This should be easier for the User to add own flags.
* Therefore the User 'lose' full control over mjpg_streamer.
* Output section Parameters are fixed now.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-10-29 18:07:01 +02:00
Stephan Wendel
b55ff454fc Initial Commit
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-10-27 18:07:39 +02:00