-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
67 lines (49 loc) · 2.13 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
echo "motrack2 Install written by Claude Pageau"
echo "INFO : Create motrack2 Folders ..."
cd ~
mkdir -p motrack2
cd motrack2
mkdir -p media
echo "INFO : Download Project Files ..."
wget -O motrack2.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/motrack2.py
wget -O webserver.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/webserver.py
wget -O webserver.sh -q --show-progress https://raw.github.com/pageauc/motrack2/master/webserver.sh
wget -O strmcam.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/strmcam.py
wget -O strmpilegcam.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/strmpilegcam.py
wget -O strmusbipcam.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/strmusbipcam.py
wget -O strmpilibcam.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/strmpilibcam.py
wget -O Readme.md -q --show-progress https://raw.github.com/pageauc/motrack2/master/Readme.md
wget -O media/webserver.txt -q --show-progress https://raw.github.com/pageauc/motrack2/master/webserver.txt
if [ -f config.py ]; then # check if local file exists.
wget -O config.py.new -q --show-progress https://raw.github.com/pageauc/motrack2/master/config.py
else
wget -O config.py -q --show-progress https://raw.github.com/pageauc/motrack2/master/config.py
fi
chmod +x motrack2.py webserver.py webserver.sh
echo "INFO : Install Dependencies ...."
sudo apt install -yq python3-opencv
echo "
INSTRUCTIONS
============
How to Run
==========
In SSH or Terminal session
Edit config.py CAMERA and related settings
for RPI Legacy, Libcam or RTSP IP Camera per comments
cd ~/motrack2
./motrack2.py
EDIT SETTINGS
=============
nano config.py
To exit and save settings. In nano press
ctrl-x then y
RUN WEBSERVER
=============
Run Web in Foreground open a new terminal (Displays browser URL)
./webserver.py
Run in Background in existing terminal
./webserver.sh start
Access webserver with a web browser at URL per Foreground command.
Form More Info See https://github.com/pageauc/motrack2
"