From 3862d9c5c85d09c58e985f01049989f15a3d2830 Mon Sep 17 00:00:00 2001 From: Rien Maertens Date: Sun, 13 Feb 2022 13:26:34 +0100 Subject: [PATCH] Allow setting remarkable with environment variable --- default.nix | 1 + reStream.sh | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/default.nix b/default.nix index 42d06de..59c78bf 100644 --- a/default.nix +++ b/default.nix @@ -11,6 +11,7 @@ cargo-watch cargo-limit shellcheck + shfmt lz4 ]; CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf"; diff --git a/reStream.sh b/reStream.sh index f750914..6da63f4 100755 --- a/reStream.sh +++ b/reStream.sh @@ -4,16 +4,16 @@ version="1.2.0" # default values for arguments -remarkable="10.11.99.1" # remarkable connected through USB -landscape=true # rotate 90 degrees to the right -output_path=- # display output through ffplay -format=- # automatic output format -webcam=false # not to a webcam -hflip=false # horizontal flip webcam -measure_throughput=false # measure how fast data is being transferred -window_title=reStream # stream window title is reStream -video_filters="" # list of ffmpeg filters to apply -unsecure_connection=false # Establish a unsecure connection that is faster +remarkable="${REMARKABLE_IP:-10.11.99.1}" # remarkable IP address +landscape=true # rotate 90 degrees to the right +output_path=- # display output through ffplay +format=- # automatic output format +webcam=false # not to a webcam +hflip=false # horizontal flip webcam +measure_throughput=false # measure how fast data is being transferred +window_title=reStream # stream window title is reStream +video_filters="" # list of ffmpeg filters to apply +unsecure_connection=false # Establish a unsecure connection that is faster # loop through arguments and process them while [ $# -gt 0 ]; do