rien / reStream

Stream your reMarkable screen over SSH.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Set Source IP via Environment Variable

cloudsftp opened this issue · comments

What do you think about adding support to set arguments of the script via environment variables?

I sketched a solution for the source IP, since I currently have to type it every time I want to stream:

diff --git a/reStream.sh b/reStream.sh
index f750914..4cc6fc7 100755
--- a/reStream.sh
+++ b/reStream.sh
@@ -15,6 +15,9 @@ 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
 
+# values from environment
+[ -n "$REMARKABLE_IP" ] && remarkable="$REMARKABLE_IP"
+
 # loop through arguments and process them
 while [ $# -gt 0 ]; do
     case "$1" in

or here: https://github.com/cloudsftp/reStream/tree/feature/environment_variables

commented

I have added the option to set the remarkable IP with commit 3862d9c
Do you need a release for this?

Thank you! It's fine if you release it with your next planned release.