TEST
This commit is contained in:
parent
0a3eff0de0
commit
32c7b111f3
|
@ -24,6 +24,11 @@ sudo apt-get install ca-certificates git-core binutils rsync alsa-utils bc espea
|
||||||
## CONFIG MPD
|
## CONFIG MPD
|
||||||
sudo cp -f $MY_PATH/templates/copylaradio/mpd.conf /etc/mpd.conf
|
sudo cp -f $MY_PATH/templates/copylaradio/mpd.conf /etc/mpd.conf
|
||||||
sudo sed -i "s/_USER_/$USER/g" /etc/mpd.conf || err=1
|
sudo sed -i "s/_USER_/$USER/g" /etc/mpd.conf || err=1
|
||||||
|
|
||||||
|
mkdir ~/.config/mpd
|
||||||
|
sudo cp -f /etc/mpd.conf ~/.config/mpd/mpd.conf
|
||||||
|
chown $USER ~/.config/mpd/mpd.conf
|
||||||
|
|
||||||
mkdir -p ~/.zen/music
|
mkdir -p ~/.zen/music
|
||||||
mkdir -p ~/.zen/playlists
|
mkdir -p ~/.zen/playlists
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
music_directory "/home/_USER_/.zen/music"
|
music_directory "/home/_USER_/.zen/music"
|
||||||
playlist_directory "/home/_USER_/.zen/playlists"
|
playlist_directory "/home/_USER_/.zen/playlists"
|
||||||
user "_USER_"
|
user "_USER_"
|
||||||
bind_to_address "any"
|
bind_to_address "localhost"
|
||||||
auto_update "yes"
|
auto_update "yes"
|
||||||
zeroconf_enabled "yes"
|
zeroconf_enabled "yes"
|
||||||
zeroconf_name "CopyLaRadio Music Recorder"
|
zeroconf_name "Astroport CopyLaRadio Jukebox"
|
||||||
connection_timeout "120"
|
connection_timeout "120"
|
||||||
filesystem_charset "UTF-8"
|
filesystem_charset "UTF-8"
|
||||||
id3v1_encoding "UTF-8"
|
id3v1_encoding "UTF-8"
|
||||||
|
log_file "syslog"
|
||||||
###############################
|
###############################
|
||||||
|
|
||||||
audio_output {
|
audio_output {
|
||||||
|
@ -25,3 +26,11 @@ id3v1_encoding "UTF-8"
|
||||||
# bitrate "128"
|
# bitrate "128"
|
||||||
format "44100:16:1"
|
format "44100:16:1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "fifo"
|
||||||
|
name "my pipe"
|
||||||
|
path "/tmp/snapfifo"
|
||||||
|
format "48000:16:2"
|
||||||
|
mixer_type "software"
|
||||||
|
}
|
||||||
|
|
|
@ -11,9 +11,6 @@ ME="${0##*/}"
|
||||||
|
|
||||||
source $MY_PATH/init.sh
|
source $MY_PATH/init.sh
|
||||||
source $MY_PATH/functions.sh
|
source $MY_PATH/functions.sh
|
||||||
STOP="RUN"
|
|
||||||
|
|
||||||
$MY_PATH/search TODO
|
|
||||||
|
|
||||||
echo "Lancez dans une console tail -f /tmp/g1sms.log pour suivre le déroulement (log)"
|
echo "Lancez dans une console tail -f /tmp/g1sms.log pour suivre le déroulement (log)"
|
||||||
echo
|
echo
|
||||||
|
@ -22,73 +19,17 @@ echo "Quel est le numéro de téléphone émetteur? "
|
||||||
read SMS_1_NUMBER
|
read SMS_1_NUMBER
|
||||||
|
|
||||||
if [[ "$SMS_1_NUMBER" == "" ]]; then SMS_1_NUMBER=$ADMINPHONE; fi
|
if [[ "$SMS_1_NUMBER" == "" ]]; then SMS_1_NUMBER=$ADMINPHONE; fi
|
||||||
if [[ $STOP == "RUN" ]]; then
|
echo "Saisissez votre commande?"
|
||||||
cat $MY_PATH/sms_received.sh
|
|
||||||
fi
|
|
||||||
echo "Lisez le code et saisissez votre commande?"
|
|
||||||
read SMS_1_TEXT
|
read SMS_1_TEXT
|
||||||
|
|
||||||
CMD=$(echo "$SMS_1_TEXT" | awk '{print toupper($1)}')
|
CMD=$(echo "$SMS_1_TEXT" | awk '{print toupper($1)}')
|
||||||
|
|
||||||
if [[ $STOP == "RUN" ]]; then
|
|
||||||
case "$CMD" in
|
|
||||||
DESTROY|DON)
|
|
||||||
cat $MY_PATH/sms_DESTROY.sh
|
|
||||||
;;
|
|
||||||
A|AIDE)
|
|
||||||
cat $MY_PATH/sms_AIDE.sh
|
|
||||||
;;
|
|
||||||
N|D|NOUV)
|
|
||||||
cat $MY_PATH/sms_NEW.sh
|
|
||||||
;;
|
|
||||||
P|PAY)
|
|
||||||
cat $MY_PATH/sms_PAY.sh
|
|
||||||
;;
|
|
||||||
VIR)
|
|
||||||
cat $MY_PATH/sms_VIR.sh
|
|
||||||
;;
|
|
||||||
C|S|SOLDE)
|
|
||||||
cat $MY_PATH/sms_COUNT.sh
|
|
||||||
;;
|
|
||||||
EMAIL)
|
|
||||||
cat $MY_PATH/sms_EMAIL.sh
|
|
||||||
;;
|
|
||||||
BILL)
|
|
||||||
cat $MY_PATH/sms_BILLET.sh
|
|
||||||
;;
|
|
||||||
CHK)
|
|
||||||
cat $MY_PATH/sms_BILLETCHK.sh
|
|
||||||
;;
|
|
||||||
TAG)
|
|
||||||
cat $MY_PATH/sms_TAG.sh
|
|
||||||
;;
|
|
||||||
REC)
|
|
||||||
cat $MY_PATH/sms_REC.sh
|
|
||||||
;;
|
|
||||||
U|UNIT)
|
|
||||||
cat $MY_PATH/sms_SETUNIT.sh
|
|
||||||
;;
|
|
||||||
NAME|NOM)
|
|
||||||
cat $MY_PATH/sms_SETUIDNA.sh
|
|
||||||
;;
|
|
||||||
ADMIN)
|
|
||||||
cat $MY_PATH/sms_ADMIN.sh
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Moi pas connaitre..."
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
echo "OK. ON LANCE CE CODE??? Ctrl+C pour stopper"
|
echo "OK. ON LANCE CE CODE??? Ctrl+C pour stopper"
|
||||||
read QUOI
|
read QUOI
|
||||||
SMS_1_TEXT=$SMS_1_TEXT $QUOI
|
SMS_1_TEXT=$SMS_1_TEXT $QUOI
|
||||||
fi
|
|
||||||
|
|
||||||
export SMS_1_NUMBER
|
export SMS_1_NUMBER
|
||||||
export SMS_1_TEXT
|
export SMS_1_TEXT
|
||||||
|
|
||||||
$MY_PATH/sms_received.sh
|
$MY_PATH/sms_received.sh
|
||||||
|
|
||||||
|
|
||||||
echo "ECRIVEZ STOP=\"STOP\" POUR NE PLUS LIRE LE CODE ET LANCER LA SIMULATION DIRECTEMENT"
|
|
||||||
read STOP
|
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,8 @@ server {
|
||||||
|
|
||||||
server_name _SERVERNAME_;
|
server_name _SERVERNAME_;
|
||||||
|
|
||||||
location / {
|
|
||||||
allow all;
|
|
||||||
index index.php index.html index.htm;
|
|
||||||
error_page 404 = /error/404.html;
|
|
||||||
}
|
|
||||||
|
|
||||||
# This section can be copied into an existing default setup
|
# This section can be copied into an existing default setup
|
||||||
location /jukebox {
|
location / {
|
||||||
allow all;
|
allow all;
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
location ~ \.php {
|
location ~ \.php {
|
||||||
|
@ -25,14 +19,14 @@ server {
|
||||||
include /etc/nginx/fastcgi_params;
|
include /etc/nginx/fastcgi_params;
|
||||||
fastcgi_read_timeout 1800;
|
fastcgi_read_timeout 1800;
|
||||||
}
|
}
|
||||||
error_page 404 = /error/404.php;
|
error_page 404 = /error/404.html;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
location ~ /albumart/* {
|
location ~ /albumart/* {
|
||||||
expires -1s;
|
expires -1s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# OASIS SSB
|
# OASIS SSB TODO: NOT WORKING (cor problem)
|
||||||
location /oasis {
|
location /oasis {
|
||||||
proxy_pass http://127.0.0.1:3000;
|
proxy_pass http://127.0.0.1:3000;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
Loading…
Reference in New Issue