-
Notifications
You must be signed in to change notification settings - Fork 0
/
Full_Installer_Rahul
74 lines (57 loc) · 1.71 KB
/
Full_Installer_Rahul
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
67
68
69
70
71
72
73
74
clear
echo "Starting HAPNodeJS ,Motion Eye & Dependency Installation"
cd /home/pi
sudo mkdir -p rmrz
cd rmrz
sudo wget https://goo.gl/eLBrCK -O HAPInstaller_rmrz
sudo sh HAPInstaller_rmrz
sudo wget https://goo.gl/Q1gEQh -O duckdns.js
sudo chown -R $USER:$USER $HOME
cd HAP-NodeJS
sudo wget https://goo.gl/USl1nv -O CameraCore.js
cd accessories
sudo wget https://goo.gl/S2EGFE -O RGBLight_MRz_accessory.js
sudo wget https://goo.gl/kYXUVp -O MotionSensor_MRz_accessory.js
sudo wget https://goo.gl/UZfcIu -O HumiditySensor_MRz_accessory.js
sudo wget https://goo.gl/UZfcIu -O HumiditySensor_MRz_accessory.js
sudo wget https://goo.gl/7XdQso -O Outlet_MRz_accessory.js
sudo wget https://goo.gl/j66JR5 -O TemperatureSensor_MRz_accessory.js
cd /home/pi/rmrz/HAP-NodeJS/lib/
sudo mv Camera.js Camera.js.bak
sudo mv Accessory.js Accessory.js.bak
sudo wget https://goo.gl/qZVmB4 -O Camera.js
sudo wget https://goo.gl/WwCHtS -O Accessory.js
echo "HAP Completed"
sleep 1
sudo wget https://goo.gl/qooJVQ -O motioneyePlugin_Rahul
sudo sh motioneyePlugin_Rahul
echo "Motion Eye installtion completed"
sleep 3
echo "forever Begins"
sudo npm install forever -g
echo "forever install End"
echo "mosca mqtt Begin"
sudo npm install mosca --save
echo "mosca mqtt Ends"
echo "pi-gpio Begins"
wget abyz.co.uk/rpi/pigpio/pigpio.zip
unzip pigpio.zip
cd PIGPIO
make
sudo make install
sudo npm install pigpio
echo "pi-gpio Ends"
echo "node cmd starts"
sudo npm install node-cmd
echo "node cmd ends"
echo "onpff Begins"
sudo npm install onoff
echo "onoff Ends"
echo "mqt Begins"
sudo npm install mqtt --save
echo "mqtt Ends"
echo "npm rebuild Starts"
sudo apt-get install libavahi-compat-libdnssd-dev
sudo npm install mdns
sudo npm rebuild
echo "npm rebuild Ends"