Переглянути джерело

Replaced server with recorder

Gamaliel Espinoza 7 роки тому
батько
коміт
c19af1526a
1 змінених файлів з 14 додано та 6 видалено
  1. 14 6
      fourier_install.sh

+ 14 - 6
fourier_install.sh

@@ -69,6 +69,10 @@ curl -X POST -F "key=$keycontent" \
 	 -H "Authorization: $BOX_ID $API_SECRET" \
 	 https://api.audiovalid.com/public-key
 
+# Give permissions to tune DVB devices
+# So it can use the devices in /dev/dvb/adapter*
+sudo usermod -a -G video fourier
+
 if [[ "$OSTYPE" == darwin* ]]; then
 	depend=( python gcc vim tmux autossh lame nodejs \
 			 ezstream libusb rtl-sdr portaudio )
@@ -98,14 +102,14 @@ else
 	sudo apt-get install -y rtl-sdr
 	sudo apt-get install -y sqlite3
 	sudo apt-get install -y portaudio19-dev
-	sudo apt install dvb-apps
+	sudo apt-get install dvb-apps
 	sudo pip install pyaudio pyusb pydub numpy requests \
-					 scipy python-firebase
+					 scipy python-firebase tornado mutagen
 	sudo apt-get install -y ffmpeg
 	sudo apt-get install -y gfortran libopenblas-dev liblapack-dev
 	sudo apt-get install -y python-matplotlib
 	sudo apt-get install -y curl
-	sudo pip install 
+	sudo apt-get install -y libshout3 libshout3-dev
 	sudo npm install -g http-server
 	cd tools
 	sudo python ./setup.py install
@@ -118,14 +122,14 @@ cd $programspath
 
 clonerepo fourier-module.git module
 clonerepo fourier-common.git common
-clonerepo fourier-server.git server
+clonerepo recorder.git recorder
 clonerepo fourier-fourier.git fourier
 clonerepo fourier-alt.git fourier-alt
 clonerepo fourier-monitor.git monitor
 clonerepo fourier-uploader.git uploader
 clonerepo fourier-ondemand.git ondemand
 
-cd $programspath/server
+cd $programspath/recorder
 npm install
 cd $programspath/monitor
 npm install
@@ -160,9 +164,13 @@ fi
 		   		-receivers $RECEIVERS_COUNT \
 		   		-api-secret $API_SECRET \
 		   		-box-id "$BOX_ID"
+
+	echo "** Downloading TV channels."
+	fourier tv update
+
 	if [ "$?" -eq 0 ]; then
 		cd "$programspath"
-		pm2 start server
+		pm2 start recorder
 		pm2 start monitor
 		pm2 start uploader
 		pm2 start ondemand/ondemand/service.py \