modified scripts

pull/52/head
Alan Johnston 6 years ago
parent 8a5ff436cf
commit 79dfe5fc58

@ -110,6 +110,22 @@ sdrs = {
"ppm": 0,
"direct_sampling": 2,
"profiles": {
"6m": {
"name": "6m",
"center_freq": 51150000,
"rf_gain": 10,
"samp_rate": 2400000,
"start_freq": 51283000,
"start_mod": "usb",
},
"10m": {
"name": "10m",
"center_freq": 29150000,
"rf_gain": 10,
"samp_rate": 2400000,
"start_freq": 28283000,
"start_mod": "usb",
},
"20m": {
"name": "20m",
"center_freq": 14150000,
@ -150,6 +166,22 @@ sdrs = {
"start_freq": 1840000,
"start_mod": "lsb",
},
"160m2": {
"name": "160m2",
"center_freq": 1900000,
"rf_gain": 30,
"samp_rate": 2400000,
"start_freq": 1840000,
"start_mod": "lsb",
},
"160m3": {
"name": "160m3",
"center_freq": 1900000,
"rf_gain": "auto",
"samp_rate": 2400000,
"start_freq": 1840000,
"start_mod": "lsb",
},
"49m": {
"name": "49m Broadcast",
"center_freq": 6000000,

@ -0,0 +1,34 @@
#!/bin/bash
# script to run OpenWebRX SDR in HF
echo "Script to run Web SDR in HF for ARISS Radio Pi"
echo
ip=$(hostname -I|cut -f1 -d ' ')
echo "IP Address to use in web browsers is: $ip:8073"
echo
ssid=$(iwgetid -r)
echo "Note: you need to be on the Wifi network: $ssid"
echo
sudo killall -9 java &>/dev/null
sudo systemctl stop rtl_tcp
sudo killall -9 rtl_tcp &>/dev/null
sudo systemctl stop openwebrx
sudo cp /etc/openwebrx/config_webrx_hf.py /etc/openwebrx/config_webrx.py
sudo systemctl restart openwebrx
/usr/bin/chromium-browser --noerrdialogs --disable-infobars http://localhost:8073 &>/dev/null &
$SHELL

@ -1,18 +1,34 @@
#!/bin/bash
# script to run OpenWebRX SDR
echo -e "\nScript to run SDR for CubeSat Simulator\n"
echo "Script to run Web SDR for ARISS Radio Pi"
echo -e "IP Address to use in web browsers is: "
echo
hostname -I|cut -f1 -d ' '
ip=$(hostname -I|cut -f1 -d ' ')
# kill rtl if running
ps -ef | grep rtl | grep -v grep | awk '{print $2}' | sudo xargs kill
echo "IP Address to use in web browsers is: $ip:8073"
# kill openwebrx process if running
ps -ef | grep openwebrx | grep -v grep | awk '{print $2}' | sudo xargs kill
echo
cd ~/openwebrx
ssid=$(iwgetid -r)
sudo python openwebrx.py
echo "Note: you need to be on the Wifi network: $ssid"
echo
sudo killall -9 java &>/dev/null
sudo systemctl stop rtl_tcp
sudo killall -9 rtl_tcp &>/dev/null
sudo systemctl stop openwebrx
sudo cp /etc/openwebrx/config_webrx_vhf.py /etc/openwebrx/config_webrx.py
sudo systemctl restart openwebrx
/usr/bin/chromium-browser --noerrdialogs --disable-infobars http://localhost:8073 &>/dev/null &
$SHELL

Loading…
Cancel
Save

Powered by TurnKey Linux.