59 Commits

Author SHA1 Message Date
Patrick Gehrsitz
2e9ab4e126
fix: change ustreamer repo to own fork as workaround for #247 (#249)
Fixes #247

Signed-off-by: Patrick Gehrsitz <mryel00.github@gmail.com>
2024-03-03 23:27:37 +01:00
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
0b4cf6f0a1
chore: shallow clone camera-streamer submodules (#226)
This reduces the download size and disk usage for `camera-streamer`.
2024-01-07 17:30:12 +01:00
Patrick Gehrsitz
4feaab7249
fix: skip do_memory_split on bookworm (#223)
`do_memory_split` got removed on bookworm. Fixes #219
2024-01-07 17:27:53 +01:00
Patrick Gehrsitz
ccf93e3893
chore: update copyright (#214)
Signed-off-by: Patrick Gehrsitz <mryel00.github@gmail.com>
2023-11-23 22:20:05 +01:00
Patrick Gehrsitz
44e2d07a4f
chore: add check to disable webcamd (#211)
Signed-off-by: Patrick Gehrsitz <mryel00.github@gmail.com>
2023-11-22 20:53:49 +01:00
Patrick Gehrsitz
178b8ad24f
chore: fix env file check (#212)
Signed-off-by: Patrick Gehrsitz <58853838+mryel00@users.noreply.github.com>
2023-11-22 20:51:20 +01:00
Patrick Gehrsitz
5a67110c0f
chore: add better dietpi support to installer (#204) 2023-11-13 21:21:33 +01:00
Patrick Gehrsitz
2d53cc4922
chore: add startup workaround for SpeederPad (#203) 2023-11-13 21:20:59 +01:00
Patrick Gehrsitz
549f7d455a
chore: refactor camera-streamer build conditions (#201) 2023-11-09 21:53:26 +01:00
Patrick Gehrsitz
5c040f24c1
fix: add bookworm support (#195) 2023-11-01 22:43:17 +01:00
Patrick Gehrsitz
dacc0d9d3a
fix: fix wrong syntax in gpumem (#177)
Fix syntax error made in #176
Fixes #175
2023-09-12 20:23:19 +02:00
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
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
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
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
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
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
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
Stephan Wendel
05a971b259
fix: ensure device is raspberry if os is buster
To prevent Install error on Debian Buster based Images
if Hardware is not Raspberry.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-12-01 17:19:56 +01:00
Stephan Wendel
0e112711c7
fix: fixes install error on Linux Mint
This should fix #62 (fixes #62)

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-24 13:27:31 +01:00
Stephan Wendel
607bdda902
fix: fixes missing legacy cam stack in ubuntu
Ubuntu with kernel 5.15 moves its config.txt to
`/boot/firmware/config.txt`

This should fix #50 (fixes#50)

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-24 12:56:31 +01:00
Stephan Wendel
df8a6962ef
fix: fix syntax error in dev-helper.sh
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-18 18:57:04 +01:00
Stephan Wendel
d407c683c0
chore: changes install routine
This should fix https://github.com/mainsail-crew/crowsnest/issues/52

make config is now optional.

Now it uses $HOME/printer_data/ as default.

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-10 20:52:43 +01:00
Stephan Wendel
0eb04cf2a6
fix: error in func create_filestructure
If printer_data doesnt exist Installer creates structure

This error make structure as root!

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-05 18:23:58 +01:00
Stephan Wendel
e2b4cd8cd2
fix: fix error in install.sh
Fixes Error that leads to incomplete log_path in crowsnest.conf

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-05 16:27:39 +01:00
Stephan Wendel
046641af04
fix: fixes error in ustreamer install
Error in func build_apps and clone_ustreamer
leads to cloned repo and build ustreamer as root.

This leads to failing make buildclean and build

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-04 12:07:31 +01:00
Stephan Wendel
d4a2c08152
refactor: implements new install mechanism
This installer requires to be configured due
make config

Changes:

Add tools/configure.sh script and make config.

Refactor of uninstall.sh according to new installer

Add dev-helper.sh to provide various informations for developing
and also could check existing installation as kinda "unit-test"

This should also fix #46
and fix #41

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

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2022-11-04 09:37:40 +01:00
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
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
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
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
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
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
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
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
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