Browse Source

Use port from ENV

master
Justin Forsyth 1 month ago
parent
commit
f71def14e3
Signed by: justin GPG Key ID: 86AE5A8E7F21CDF7
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      .env.example
  2. +1
    -1
      ingest.sh
  3. +1
    -1
      pi.sh

+ 2
- 2
.env.example View File

@ -1,3 +1,3 @@
export SERVER_URL=192.168.1.2
export SERVER_PORT=8000
export SERVER_ADDRESS=192.168.1.2
export SERVER_PORT=2222
export READTHEDOCS=True

+ 1
- 1
ingest.sh View File

@ -1 +1 @@
nc -l 2222 > video/in.h264
nc -l "$SERVER_PORT" > video/in.h264

+ 1
- 1
pi.sh View File

@ -1 +1 @@
raspivid -t 0 -w 1920 -h 1080 -hf -fps 30 -o - | nc "$SERVER_URL" 2222
raspivid -t 0 -w 1920 -h 1080 -hf -fps 30 -o - | nc "$SERVER_ADDRESS" "$SERVER_PORT"

Loading…
Cancel
Save