Allow setting remarkable with environment variable

This commit is contained in:
Rien Maertens 2022-02-13 13:26:34 +01:00
parent 9deee838c9
commit 3862d9c5c8
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF
2 changed files with 11 additions and 10 deletions

View File

@ -11,6 +11,7 @@
cargo-watch cargo-watch
cargo-limit cargo-limit
shellcheck shellcheck
shfmt
lz4 lz4
]; ];
CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf"; CARGO_BUILD_TARGET="armv7-unknown-linux-gnueabihf";

View File

@ -4,16 +4,16 @@
version="1.2.0" version="1.2.0"
# default values for arguments # default values for arguments
remarkable="10.11.99.1" # remarkable connected through USB remarkable="${REMARKABLE_IP:-10.11.99.1}" # remarkable IP address
landscape=true # rotate 90 degrees to the right landscape=true # rotate 90 degrees to the right
output_path=- # display output through ffplay output_path=- # display output through ffplay
format=- # automatic output format format=- # automatic output format
webcam=false # not to a webcam webcam=false # not to a webcam
hflip=false # horizontal flip webcam hflip=false # horizontal flip webcam
measure_throughput=false # measure how fast data is being transferred measure_throughput=false # measure how fast data is being transferred
window_title=reStream # stream window title is reStream window_title=reStream # stream window title is reStream
video_filters="" # list of ffmpeg filters to apply video_filters="" # list of ffmpeg filters to apply
unsecure_connection=false # Establish a unsecure connection that is faster unsecure_connection=false # Establish a unsecure connection that is faster
# loop through arguments and process them # loop through arguments and process them
while [ $# -gt 0 ]; do while [ $# -gt 0 ]; do