diff --git a/var/www/html/axcall.php b/var/www/html/axcall.php new file mode 100755 index 0000000..8bfc39d --- /dev/null +++ b/var/www/html/axcall.php @@ -0,0 +1,111 @@ + + + + +

AX.25 Utilities

+ +
+

+ Enter callsign to connect (via optional digipeater) +

+ axcall -r radio via +
+

+

+ +
+ +


+ Connect to your node +
+
+ telnet localhost 4444 +
+
+ +
+ + Keyboard-to-Keyboard over AX.25 +
+
+ linpac +
+
+ +
+ +

+
+ + + /dev/null 2> /dev/null &" ); + echo "Connecting..."; + time.sleep(3); + $IP = $_SERVER['SERVER_ADDR']; + echo ""; +} + +if (isset($_POST["linpac"])) { +# exec("export HOME=/home/pi/; sudo /usr/local/bin/ttyd -p 7687 -t fontSize=20 -o -s SIGTERM linpac > /dev/null 2> /dev/null &" ); +# exec("export HOME=/home/pi/; sudo su -c \"/usr/local/bin/ttyd -p 7687 -t fontSize=20 -o -s SIGTERM linpac > /dev/null 2> /dev/null &\" pi " ); + exec("export HOME=/home/pi/; sudo su -c \"/usr/local/bin/ttyd -p 7687 -t fontSize=20 -o -s SIGTERM /home/pi/linpac.sh > /dev/null 2> /dev/null &\" pi " ); + echo "Starting linpac..."; + time.sleep(3); + $IP = $_SERVER['SERVER_ADDR']; + echo ""; +} + + +if (isset($_POST["connect"])) { + $submit = $_POST["connect"]; + if ( $submit == 'Connect' ) { + + $target = $_POST["target"]; + $via = $_POST["via"]; + + echo "target: $target"; + echo "via: $via"; + + if(!isset($via) || trim($via) == '') + { + #exec("/usr/local/bin/ttyd -p 7686 -t fontSize=20 -o -s SIGTERM axcall -r radio $target > /dev/null 2> /dev/null &" ); + exec("/usr/local/bin/ttyd -p 7686 -t fontSize=20 -o -s SIGTERM /home/pi/axcall.sh -r radio $target > /dev/null 2> /dev/null &" ); + } + else + { + #exec("/usr/local/bin/ttyd -p 7686 -t fontSize=20 -o -s SIGTERM axcall -r radio $target via $via > /dev/null 2> /dev/null &" ); + exec("/usr/local/bin/ttyd -p 7686 -t fontSize=20 -o -s SIGTERM /home/pi/axcall.sh -r radio $target via $via > /dev/null 2> /dev/null &" ); + } + echo "Connecting..."; + time.sleep(3); + $IP = $_SERVER['SERVER_ADDR']; + echo ""; + exit(); + } +} + +?> + +
+ + + + + diff --git a/var/www/html/dot/dragon.png b/var/www/html/dot/dragon.png new file mode 100644 index 0000000..6e19d1f Binary files /dev/null and b/var/www/html/dot/dragon.png differ diff --git a/var/www/html/dot/index.php b/var/www/html/dot/index.php new file mode 100755 index 0000000..815b51a --- /dev/null +++ b/var/www/html/dot/index.php @@ -0,0 +1,242 @@ + + + +

Brought to you by...

+ +
+

+

+ +Thank you for playing! + + +

+ + +
+ + + + + + diff --git a/var/www/html/fld/index.html.orig b/var/www/html/fld/index.html.orig new file mode 100644 index 0000000..e8cdf79 --- /dev/null +++ b/var/www/html/fld/index.html.orig @@ -0,0 +1,31 @@ + + + + DigiPi FLDigi redirect + + +

Please wait, FLDigi starting up... +
+ Click here to redirect now +

+ + + + + + + + + diff --git a/var/www/html/fld/index.php b/var/www/html/fld/index.php new file mode 100644 index 0000000..08910f3 --- /dev/null +++ b/var/www/html/fld/index.php @@ -0,0 +1,35 @@ + + + + + + DigiPi FLDigi redirect + + +

Please wait, FLDigi starting up... +
+ Click here to redirect now +

+ + + + + diff --git a/var/www/html/ft8/index.php b/var/www/html/ft8/index.php new file mode 100644 index 0000000..922bb2a --- /dev/null +++ b/var/www/html/ft8/index.php @@ -0,0 +1,35 @@ + + + + + + DigiPi WSJTX FT8 redirect + + +

Please wait, FT8 starting up... +
+ Click here to redirect now +

+ + + + + diff --git a/var/www/html/header.php b/var/www/html/header.php new file mode 100644 index 0000000..2391b8e --- /dev/null +++ b/var/www/html/header.php @@ -0,0 +1,24 @@ + + + + + +DigiPi + + + + + + + + + +
+ DigiPi + + + + +
+
+ diff --git a/var/www/html/help.php b/var/www/html/help.php new file mode 100755 index 0000000..b04a6db --- /dev/null +++ b/var/www/html/help.php @@ -0,0 +1,77 @@ + + +Full documentation: http://craiger.org/digipi +
+
+ + +

APRSDroid or WOAD, KISS TNC

+ + + + + +
 TNC & APRS igate
 TNC & APRS igate (HF)
 APRS Digipeater
 Linux Node AX.25
 Winlink Email Server
 Pat Winlink Email Client
 ARDOP Modem
 Rig Control Daemon
 WSJTX FT8
 Slow Scan TV
 FLDigi
+ +
+ +

APRS Digipeater & APRSDroid

+ + + + + +
 TNC & APRS igate
 TNC & APRS igate (HF)
 APRS Digipeater
 Linux Node AX.25
 Winlink Email Server
 Pat Winlink Email Client
 ARDOP Modem
 Rig Control Daemon
 WSJTX FT8
 Slow Scan TV
 FLDigi
+ +
+ + +

Send email over VHF

+ + + + + +
 TNC & APRS igate
 TNC & APRS igate (HF)
 APRS Digipeater
 Linux Node AX.25
 Winlink Email Server
 Pat Winlink Email Client
 ARDOP Modem
 Rig Control Daemon
 WSJTX FT8
 Slow Scan TV
 FLDigi
+ +
+ +

Send email over HF

+ + + + + + +
 TNC & APRS igate
 TNC & APRS igate (HF)
 APRS Digipeater
 Linux Node AX.25
 Winlink Email Server
 Pat Winlink Email Client
 ARDOP Modem
 Rig Control Daemon
 WSJTX FT8
 Slow Scan TV
 FLDigi
+
+ +

Winlink VHF gateway

+ + + + + +
 TNC & APRS igate
 TNC & APRS igate (HF)
 APRS Digipeater
 Linux Node AX.25
 Winlink Email Server
 Pat Winlink Email Client
 ARDOP Modem
 Rig Control Daemon
 WSJTX FT8
 Slow Scan TV
 FLDigi
+ +advertised on 145.730
+
+ +

+
+

Notes...

+ +

+ + + +
+
+Back + + + + + diff --git a/var/www/html/ic705.png b/var/www/html/ic705.png new file mode 100644 index 0000000..7173843 Binary files /dev/null and b/var/www/html/ic705.png differ diff --git a/var/www/html/index.php b/var/www/html/index.php new file mode 100755 index 0000000..1e95aa4 --- /dev/null +++ b/var/www/html/index.php @@ -0,0 +1,679 @@ + + + + + +
+ + + + + + + + + +"; +$output = shell_exec('systemctl is-active tnc'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + +#-- tnc300b ---------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active tnc300b'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + +#-- digipeater ------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active digipeater'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- Linux NODE AX.25 ------------------------------------ + +echo ""; +$output = shell_exec('systemctl is-active node'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- Winlink Server ------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active winlinkrms'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- Pat Email Client ----------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active pat'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- ARDOP --------------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active ardop'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- RIGCTLD --------------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active rigctld'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- WSJTX FT8 ------------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active wsjtx'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- SSTV -------------------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active sstv'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- FLDIGI -------------------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active fldigi'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#-- JS8CALL ------------------------------------------------- + +echo ""; +$output = shell_exec('systemctl is-active js8call'); +#$output = str_replace("failed", "inactive", $output); +$output = chop($output); + if ($output == "active") + { + echo '"; +echo '"; + + +#craiger systemd thinks a sigkill is a failure, so reset failed service status +#This will turn red/failed service into grey/stopped +$output = shell_exec('sudo systemctl reset-failed fldigi 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed sstv 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed wsjtx 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed ardop 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed tnc300b 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed digipeater 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed tnc 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed node 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed winlinkrms 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed pat 2> /dev/null'); +$output = shell_exec('sudo systemctl reset-failed js8call 2> /dev/null'); + +?> + +
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "TNC & APRS igate'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "TNC & APRS igate (HF)'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "APRS Digipeater'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "Linux Node AX.25'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "Winlink Email Server'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "Pat Winlink Email Client'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "ARDOP Modem'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "Rig Control Daemon'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "WSJTX FT8'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "Slow Scan TV'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "FLDigi'; +echo ' '; +echo ''; +echo ""; +echo "
'; + } + elseif ($output == "failed") + { + echo ''; + } + else + { + echo ''; + } +echo " "; +echo ""; +echo "JS8Call'; +echo ' '; +echo ''; +echo ""; +echo "
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +'; + } +?> + +
+ + + AXCall + + JS8Call +
+ WSJTX FT8 + + SSTV + + FLDigi +
+ Wifi + + Shell + + PktLog +
+ SysLog + + Refresh + + Help +
Initialize
+ + + + +

+ +   + +   + +   +

+ 1.6-2 KM6LYW ©2022 + +

+ + +
Restarting DigiPi...
"; +# if (isset($_SERVER['SERVER_ADDR'])) { +# $IP = $_SERVER['SERVER_ADDR']; +# } +# else { +# $IP = "0.0.0.0"; +# } + $output = shell_exec("sudo killall direwatch.py"); + $output = shell_exec("sudo /home/pi/digibanner.py -b DigiPi -s Rebooting..."); + $output = shell_exec("sudo /sbin/shutdown -r 0"); + echo $output; + } +} + +if (isset($_POST["shutdown"])) { + $submit = $_POST["shutdown"]; + if ( $submit == 'Shutdown' ) { + echo "

Shutting down DigiPi...
"; + $output = shell_exec("sudo killall direwatch.py"); + $output = shell_exec("sudo /home/pi/digibanner.py -b Digipi -s Shutdown..."); + $output = shell_exec("sudo /sbin/shutdown -h 0"); + echo $output; + } +} + +if (isset($_POST["save"])) { + $submit = $_POST["save"]; + if ( $submit == 'Save Configs' ) { + echo "

Saving configuration...
"; + $output = shell_exec("sudo -i -u pi /home/pi/saveconfigs.sh"); + #echo $output; + echo "

Please reboot or shutdown gracefully.
"; + } +} + +?> + +
+
+            . + +
+ + + + diff --git a/var/www/html/index.service.php b/var/www/html/index.service.php new file mode 100755 index 0000000..0ce75bb --- /dev/null +++ b/var/www/html/index.service.php @@ -0,0 +1,257 @@ + + + +DigiPi + + + + + + + + + + + + +
+ DigiPi             + + + 
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ TNC 1200baud/VHF + + + +
+ APRS Digipeater + + + +
+ TNC 300baud/HF + + + +
+ VHF Winlink Gateway + + + +
+ Pat Winlink Client + + + +
+ ARDOP Modem + + + +
+ Rig Control Daemon   + + + +
+
+ + + + + +

System status:

+ + + +"; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +echo ""; + +?> + +
"; +$output = shell_exec('systemctl is-active tnc'); +echo "TNC 1200baud/VHF $output
"; +$output = shell_exec('systemctl is-active digipeater'); +echo "APRS Digipeater $output
"; +$output = shell_exec('systemctl is-active tnc300b'); +echo "TNC 300b/HF $output
"; +$output = shell_exec('systemctl is-active winlinkrms'); +echo "VHF Winlink Gateway $output
"; +$output = shell_exec('systemctl is-active pat'); +echo "Pat client $output
"; +$output = shell_exec('systemctl is-active ardop'); +echo "ARDOP modem $output
"; +$output = shell_exec('systemctl is-active rigctld'); +echo "Rig control daemon    $output
+
+Refresh +   + +   +Help + + +
+ + diff --git a/var/www/html/js8/index.php b/var/www/html/js8/index.php new file mode 100644 index 0000000..df4d557 --- /dev/null +++ b/var/www/html/js8/index.php @@ -0,0 +1,35 @@ + + + + + + DigiPi JS8Call redirect + + +

Please wait, JS8Call starting up... +
+ Click here to redirect now +

+ + + + + diff --git a/var/www/html/km6lyw.png b/var/www/html/km6lyw.png new file mode 100644 index 0000000..628694f Binary files /dev/null and b/var/www/html/km6lyw.png differ diff --git a/var/www/html/log.php b/var/www/html/log.php new file mode 100755 index 0000000..b8155d5 --- /dev/null +++ b/var/www/html/log.php @@ -0,0 +1,29 @@ + + + +DigiPi + + + + + + + /dev/null 2> /dev/null &" ); +# exec("/usr/local/bin/ttyd -t font=Arial -t fontSize=20 -o -s SIGTERM tail -f /run/direwolf.log > /dev/null 2> /dev/null &" ); + echo "Opening direwolf log..."; + time.sleep(2); + $IP = $_SERVER['SERVER_ADDR']; + echo ""; + exit(); + +?> + +
+ + +
+ + + diff --git a/var/www/html/radio.jpg b/var/www/html/radio.jpg new file mode 100644 index 0000000..112c591 Binary files /dev/null and b/var/www/html/radio.jpg differ diff --git a/var/www/html/radio.png b/var/www/html/radio.png new file mode 100644 index 0000000..628694f Binary files /dev/null and b/var/www/html/radio.png differ diff --git a/var/www/html/riglist.txt b/var/www/html/riglist.txt new file mode 100644 index 0000000..76760f6 --- /dev/null +++ b/var/www/html/riglist.txt @@ -0,0 +1,257 @@ + Rig # Mfg Model Version Status Macro + 1 Hamlib Dummy 20200606.0 Stable RIG_MODEL_DUMMY + 2 Hamlib NET rigctl 20210108.0 Stable RIG_MODEL_NETRIGCTL + 4 FLRig FLRig 20201217.0 Stable RIG_MODEL_FLRIG + 5 TRXManager 5.7.630+ 20200329.0 Stable RIG_MODEL_TRXMANAGER_RIG + 6 Hamlib Dummy No VFO 20200606.0 Stable RIG_MODEL_DUMMY_NOVFO + 1001 Yaesu FT-847 20200509.0 Stable RIG_MODEL_FT847 + 1003 Yaesu FT-1000D 20201009.0 Stable RIG_MODEL_FT1000D + 1004 Yaesu MARK-V FT-1000MP 20200731.0 Stable RIG_MODEL_FT1000MPMKV + 1005 Yaesu FT-747GX 20200323.0 Beta RIG_MODEL_FT747 + 1006 Yaesu FT-757GX 20200325.0 Beta RIG_MODEL_FT757 + 1007 Yaesu FT-757GXII 20200325.0 Stable RIG_MODEL_FT757GXII + 1009 Yaesu FT-767GX 20200325.0 Stable RIG_MODEL_FT767 + 1010 Yaesu FT-736R 20200113.0 Stable RIG_MODEL_FT736R + 1011 Yaesu FT-840 20200323.0 Stable RIG_MODEL_FT840 + 1013 Yaesu FT-900 20200323.0 Stable RIG_MODEL_FT900 + 1014 Yaesu FT-920 20100823.0 Stable RIG_MODEL_FT920 + 1015 Yaesu FT-890 20200323.0 Stable RIG_MODEL_FT890 + 1016 Yaesu FT-990 20201009.0 Alpha RIG_MODEL_FT990 + 1017 Yaesu FRG-100 20160409.0 Beta RIG_MODEL_FRG100 + 1018 Yaesu FRG-9600 20160409.0 Untested RIG_MODEL_FRG9600 + 1019 Yaesu FRG-8800 20160409.0 Untested RIG_MODEL_FRG8800 + 1020 Yaesu FT-817 20201015.0 Stable RIG_MODEL_FT817 + 1021 Yaesu FT-100 20201009.0 Stable RIG_MODEL_FT100 + 1022 Yaesu FT-857 20201215.0 Stable RIG_MODEL_FT857 + 1023 Yaesu FT-897 20201215.0 Stable RIG_MODEL_FT897 + 1024 Yaesu FT-1000MP 20200731.0 Stable RIG_MODEL_FT1000MP + 1025 Yaesu MARK-V Field FT-1000MP 20200731.0 Stable RIG_MODEL_FT1000MPMKVFLD + 1026 Yaesu VR-5000 20200505.0 Alpha RIG_MODEL_VR5000 + 1027 Yaesu FT-450 20201222.0 Stable RIG_MODEL_FT450 + 1028 Yaesu FT-950 20201222.1 Stable RIG_MODEL_FT950 + 1029 Yaesu FT-2000 20201222.0 Stable RIG_MODEL_FT2000 + 1030 Yaesu FTDX-9000 20201222.0 Untested RIG_MODEL_FT9000 + 1031 Yaesu FT-980 20200114.0 Alpha RIG_MODEL_FT980 + 1032 Yaesu FTDX 5000 20201222.0 Stable RIG_MODEL_FTDX5000 + 1033 Vertex Standard VX-1700 20200320.0 Alpha RIG_MODEL_VX1700 + 1034 Yaesu FTDX 1200 20201222.0 Stable RIG_MODEL_FTDX1200 + 1035 Yaesu FT-991 20201222.2 Stable RIG_MODEL_FT991 + 1036 Yaesu FT-891 20201222.3 Stable RIG_MODEL_FT891 + 1037 Yaesu FTDX 3000 20201222.2 Stable RIG_MODEL_FTDX3000 + 1038 Yaesu FT-847UNI 20200509.0 Stable RIG_MODEL_FT847UNI + 1039 Yaesu FT-600 20201009.0 Beta RIG_MODEL_FT600 + 1040 Yaesu FTDX101D 20201222.7 Stable RIG_MODEL_FTDX101D + 1041 Yaesu FT-818 20200710.0 Stable RIG_MODEL_FT818 + 2001 Kenwood TS-50S 20201214.0 Alpha RIG_MODEL_TS50 + 2002 Kenwood TS-440S 20200407.0 Stable RIG_MODEL_TS440 + 2003 Kenwood TS-450S 20201214.0 Beta RIG_MODEL_TS450S + 2004 Kenwood TS-570D 20201214.0 Stable RIG_MODEL_TS570D + 2005 Kenwood TS-690S 20201214.0 Stable RIG_MODEL_TS690S + 2006 Kenwood TS-711 20201214.0 Untested RIG_MODEL_TS711 + 2007 Kenwood TS-790 20201214.0 Stable RIG_MODEL_TS790 + 2008 Kenwood TS-811 20201214.0 Untested RIG_MODEL_TS811 + 2009 Kenwood TS-850 20201214.0 Beta RIG_MODEL_TS850 + 2010 Kenwood TS-870S 20201214.0 Stable RIG_MODEL_TS870S + 2011 Kenwood TS-940S 20201214.0 Stable RIG_MODEL_TS940 + 2012 Kenwood TS-950S 20201214.0 Stable RIG_MODEL_TS950S + 2013 Kenwood TS-950SDX 20201214.0 Stable RIG_MODEL_TS950SDX + 2014 Kenwood TS-2000 20201214.0 Stable RIG_MODEL_TS2000 + 2015 Kenwood R-5000 20200407.0 Alpha RIG_MODEL_R5000 + 2016 Kenwood TS-570S 20201214.0 Stable RIG_MODEL_TS570S + 2017 Kenwood TH-D7A 20200701.0 Beta RIG_MODEL_THD7A + 2019 Kenwood TH-F6A 20200701.0 Beta RIG_MODEL_THF6A + 2020 Kenwood TH-F7E 20200701.0 Beta RIG_MODEL_THF7E + 2021 Elecraft K2 20201214.0 Beta RIG_MODEL_K2 + 2022 Kenwood TS-930 20201214.0 Untested RIG_MODEL_TS930 + 2023 Kenwood TH-G71 20200701.0 Beta RIG_MODEL_THG71 + 2024 Kenwood TS-680S 20201214.0 Beta RIG_MODEL_TS680S + 2025 Kenwood TS-140S 20201214.0 Beta RIG_MODEL_TS140S + 2026 Kenwood TM-D700 20200701.0 Beta RIG_MODEL_TMD700 + 2027 Kenwood TM-V7 20200701.0 Beta RIG_MODEL_TMV7 + 2028 Kenwood TS-480 20201214.0 Stable RIG_MODEL_TS480 + 2029 Elecraft K3 20201214.2 Stable RIG_MODEL_K3 + 2030 Kenwood TRC-80 20201214.0 Alpha RIG_MODEL_TRC80 + 2031 Kenwood TS-590S 20201214.0 Stable RIG_MODEL_TS590S + 2032 SigFox Transfox 20111223.0 Alpha RIG_MODEL_TRANSFOX + 2033 Kenwood TH-D72A 20200701.0 Beta RIG_MODEL_THD72A + 2034 Kenwood TM-D710(G) 20201214.0 Beta RIG_MODEL_TMD710 + 2036 FlexRadio 6xxx 20201217.0 Stable RIG_MODEL_F6K + 2037 Kenwood TS-590SG 20201214.0 Beta RIG_MODEL_TS590SG + 2038 Elecraft XG3 20200613.0 Stable RIG_MODEL_XG3 + 2039 Kenwood TS-990s 20201214.0 Beta RIG_MODEL_TS990S + 2040 OpenHPSDR PiHPSDR 20201214.0 Stable RIG_MODEL_HPSDR + 2041 Kenwood TS-890S 20201214.0 Stable RIG_MODEL_TS890S + 2042 Kenwood TH-D74 20201214.0 Alpha RIG_MODEL_THD74 + 2043 Elecraft K3S 20201214.2 Stable RIG_MODEL_K3S + 2044 Elecraft KX2 20201214.2 Beta RIG_MODEL_KX2 + 2045 Elecraft KX3 20201214.2 Beta RIG_MODEL_KX3 + 2046 Hilberling PT-8000A 20201214.0 Beta RIG_MODEL_PT8000A + 2047 Elecraft K4 20201214.2 Alpha RIG_MODEL_K4 + 2048 FlexRadio/ANAN PowerSDR/Thetis 2020161217 Stable RIG_MODEL_POWERSDR + 3002 Icom IC-1275 20210107.0 Beta RIG_MODEL_IC1275 + 3003 Icom IC-271 20210107.0 Untested RIG_MODEL_IC271 + 3004 Icom IC-275 20210107.0 Beta RIG_MODEL_IC275 + 3006 Icom IC-471 20210107.0 Untested RIG_MODEL_IC471 + 3007 Icom IC-475 20210107.0 Beta RIG_MODEL_IC475 + 3009 Icom IC-706 20210107.0 Stable RIG_MODEL_IC706 + 3010 Icom IC-706MkII 20210107.0 Stable RIG_MODEL_IC706MKII + 3011 Icom IC-706MkIIG 20210107.0 Stable RIG_MODEL_IC706MKIIG + 3012 Icom IC-707 20210107.0 Untested RIG_MODEL_IC707 + 3013 Icom IC-718 20210107.0 Stable RIG_MODEL_IC718 + 3014 Icom IC-725 20210107.0 Stable RIG_MODEL_IC725 + 3015 Icom IC-726 20210107.0 Stable RIG_MODEL_IC726 + 3016 Icom IC-728 20210107.0 Untested RIG_MODEL_IC728 + 3017 Icom IC-729 20210107.0 Stable RIG_MODEL_IC729 + 3019 Icom IC-735 20210107.0 Beta RIG_MODEL_IC735 + 3020 Icom IC-736 20210107.0 Untested RIG_MODEL_IC736 + 3021 Icom IC-737 20210107.0 Untested RIG_MODEL_IC737 + 3022 Icom IC-738 20210107.0 Untested RIG_MODEL_IC738 + 3023 Icom IC-746 20210107.0 Stable RIG_MODEL_IC746 + 3024 Icom IC-751 20210107.0 Beta RIG_MODEL_IC751 + 3026 Icom IC-756 20210107.0 Stable RIG_MODEL_IC756 + 3027 Icom IC-756PRO 20210107.0 Stable RIG_MODEL_IC756PRO + 3028 Icom IC-761 20210107.0 Stable RIG_MODEL_IC761 + 3029 Icom IC-765 20210107.0 Stable RIG_MODEL_IC765 + 3030 Icom IC-775 20210107.0 Untested RIG_MODEL_IC775 + 3031 Icom IC-781 20210107.0 Untested RIG_MODEL_IC781 + 3032 Icom IC-820H 20210107.0 Alpha RIG_MODEL_IC820 + 3034 Icom IC-821H 20210107.0 Beta RIG_MODEL_IC821H + 3035 Icom IC-970 20210107.0 Untested RIG_MODEL_IC970 + 3036 Icom IC-R10 20210107.0 Beta RIG_MODEL_ICR10 + 3037 Icom IC-R71 20210107.0 Untested RIG_MODEL_ICR71 + 3038 Icom IC-R72 20210107.0 Untested RIG_MODEL_ICR72 + 3039 Icom IC-R75 20210107.0 Beta RIG_MODEL_ICR75 + 3040 Icom IC-R7000 20210107.0 Alpha RIG_MODEL_ICR7000 + 3041 Icom IC-R7100 20210107.0 Untested RIG_MODEL_ICR7100 + 3042 Icom ICR-8500 20210107.0 Beta RIG_MODEL_ICR8500 + 3043 Icom IC-R9000 20210107.0 Alpha RIG_MODEL_ICR9000 + 3044 Icom IC-910 20210107.0 Stable RIG_MODEL_IC910 + 3045 Icom IC-78 20210107.0 Untested RIG_MODEL_IC78 + 3046 Icom IC-746PRO 20210107.0 Stable RIG_MODEL_IC746PRO + 3047 Icom IC-756PROII 20210107.0 Stable RIG_MODEL_IC756PROII + 3051 Ten-Tec Omni VI Plus 20210107.0 Beta RIG_MODEL_OMNIVIP + 3052 Optoelectronics OptoScan535 20210107.0 Beta RIG_MODEL_OS535 + 3053 Optoelectronics OptoScan456 20210107.0 Beta RIG_MODEL_OS456 + 3054 Icom IC ID-1 20210107.0 Untested RIG_MODEL_ICID1 + 3055 Icom IC-703 20210107.0 Stable RIG_MODEL_IC703 + 3056 Icom IC-7800 20210107.0 Untested RIG_MODEL_IC7800 + 3057 Icom IC-756PROIII 20210107.0 Stable RIG_MODEL_IC756PROIII + 3058 Icom IC-R20 20210107.0 Beta RIG_MODEL_ICR20 + 3060 Icom IC-7000 20210107.1 Stable RIG_MODEL_IC7000 + 3061 Icom IC-7200 20210107.0 Beta RIG_MODEL_IC7200 + 3062 Icom IC-7700 20210107.0 Stable RIG_MODEL_IC7700 + 3063 Icom IC-7600 20210107.0 Stable RIG_MODEL_IC7600 + 3064 Ten-Tec Delta II 20210107.0 Untested RIG_MODEL_DELTAII + 3065 Icom IC-92D 20210107.0 Untested RIG_MODEL_IC92D + 3066 Icom IC-R9500 20210107.0 Beta RIG_MODEL_ICR9500 + 3067 Icom IC-7410 20210107.0 Untested RIG_MODEL_IC7410 + 3068 Icom IC-9100 20210107.0 Stable RIG_MODEL_IC9100 + 3069 Icom IC-RX7 20210107.0 Untested RIG_MODEL_ICRX7 + 3070 Icom IC-7100 20210107.0 Stable RIG_MODEL_IC7100 + 3071 Icom ID-5100 20210107.0 Untested RIG_MODEL_ID5100 + 3072 Icom IC-2730 20210107.0 Untested RIG_MODEL_IC2730 + 3073 Icom IC-7300 20210107.1 Stable RIG_MODEL_IC7300 + 3074 Microtelecom Perseus 20210107.0 Alpha RIG_MODEL_PERSEUS + 3075 Icom IC-785x 20210107.0 Beta RIG_MODEL_IC785x + 3076 Xeigu X108G 20210107.0 Alpha RIG_MODEL_X108G + 3077 Icom IC-R6 20210107.0 Beta RIG_MODEL_ICR6 + 3078 Icom IC-7610 20210107.0 Stable RIG_MODEL_IC7610 + 3079 Icom IC-R8600 20210107.0 Alpha RIG_MODEL_ICR8600 + 3080 Icom IC-R30 20210107.0 Alpha RIG_MODEL_ICR30 + 3081 Icom IC-9700 20210107.1 Stable RIG_MODEL_IC9700 + 3082 Icom ID-4100 20210107.0 Untested RIG_MODEL_ID4100 + 3083 Icom ID-31 20210107.0 Untested RIG_MODEL_ID31 + 3084 Icom ID-51 20210107.0 Untested RIG_MODEL_ID51 + 3085 Icom IC-705 20210107.0 Stable RIG_MODEL_IC705 + 4001 Icom IC-PCR1000 20200323.0 Beta RIG_MODEL_PCR1000 + 4002 Icom IC-PCR100 20200323.0 Beta RIG_MODEL_PCR100 + 4003 Icom IC-PCR1500 20200323.0 Beta RIG_MODEL_PCR1500 + 4004 Icom IC-PCR2500 20200323.0 Beta RIG_MODEL_PCR2500 + 5001 AOR AR8200 20200404.0 Alpha RIG_MODEL_AR8200 + 5002 AOR AR8000 20200404.0 Beta RIG_MODEL_AR8000 + 5003 AOR AR7030 20200324.0 Beta RIG_MODEL_AR7030 + 5004 AOR AR5000 20200404.0 Beta RIG_MODEL_AR5000 + 5005 AOR AR3030 20200113.0 Stable RIG_MODEL_AR3030 + 5006 AOR AR3000A 20061007.0 Beta RIG_MODEL_AR3000A + 5008 AOR AR2700 20200404.0 Untested RIG_MODEL_AR2700 + 5013 AOR AR8600 20200404.0 Beta RIG_MODEL_AR8600 + 5014 AOR AR5000A 20200404.0 Alpha RIG_MODEL_AR5000A + 5015 AOR AR7030 Plus 20200319.0 Beta RIG_MODEL_AR7030P + 5016 AOR SR2200 20200404.0 Beta RIG_MODEL_SR2200 + 6005 JRC NRD-525 20200320.0 Alpha RIG_MODEL_NRD525 + 6006 JRC NRD-535D 20200320.0 Stable RIG_MODEL_NRD535 + 6007 JRC NRD-545 DSP 20200320.0 Beta RIG_MODEL_NRD545 + 8001 Uniden BC780xlt 20200621.0 Stable RIG_MODEL_BC780 + 8002 Uniden BC245xlt 20200621.0 Untested RIG_MODEL_BC245 + 8003 Uniden BC895xlt 20200621.0 Untested RIG_MODEL_BC895 + 8004 Radio Shack PRO-2052 20200621.0 Untested RIG_MODEL_PRO2052 + 8006 Uniden BC250D 20200621.0 Untested RIG_MODEL_BC250 + 8010 Uniden BCD-396T 20170808.0 Alpha RIG_MODEL_BCD396T + 8011 Uniden BCD-996T 20170808.0 Alpha RIG_MODEL_BCD996T + 8012 Uniden BC898T 20200621.0 Untested RIG_MODEL_BC898 + 9002 Drake R-8A 20200319.0 Beta RIG_MODEL_DKR8A + 9003 Drake R-8B 20200319.0 Untested RIG_MODEL_DKR8B + 10004 Lowe HF-235 20200112.0 Alpha RIG_MODEL_HF235 + 11003 Racal RA6790/GM 20200113.0 Untested RIG_MODEL_RA6790 + 11005 Racal RA3702 20200114.0 Alpha RIG_MODEL_RA3702 + 12004 Watkins-Johnson WJ-8888 20040912.0 Untested RIG_MODEL_WJ8888 + 14002 Skanti TRP8000 20191208.0 Untested RIG_MODEL_TRP8000 + 14004 Skanti TRP 8255 S R 20200323.0 Untested RIG_MODEL_TRP8255 + 15001 Winradio WR-1000 20110822.0 Untested RIG_MODEL_WR1000 + 15002 Winradio WR-1500 20110822.0 Untested RIG_MODEL_WR1500 + 15003 Winradio WR-1550 20110822.0 Untested RIG_MODEL_WR1550 + 15004 Winradio WR-3100 20110822.0 Untested RIG_MODEL_WR3100 + 15005 Winradio WR-3150 20110822.0 Untested RIG_MODEL_WR3150 + 15006 Winradio WR-3500 20110822.0 Untested RIG_MODEL_WR3500 + 15007 Winradio WR-3700 20110822.0 Untested RIG_MODEL_WR3700 + 15009 Winradio WR-G313 20191224.0 Alpha RIG_MODEL_G313 + 16001 Ten-Tec TT-550 20190817.0 Stable RIG_MODEL_TT550 + 16002 Ten-Tec TT-538 Jupiter 20191209.0 Stable RIG_MODEL_TT538 + 16003 Ten-Tec RX-320 20200113.0 Stable RIG_MODEL_RX320 + 16004 Ten-Tec RX-340 20160409.0 Untested RIG_MODEL_RX340 + 16005 Ten-Tec RX-350 20191208.0 Untested RIG_MODEL_RX350 + 16007 Ten-Tec TT-516 Argonaut V 20191208.0 Stable RIG_MODEL_TT516 + 16008 Ten-Tec TT-565 Orion 20200324.0 Beta RIG_MODEL_TT565 + 16009 Ten-Tec TT-585 Paragon 20200305.0 Beta RIG_MODEL_TT585 + 16011 Ten-Tec TT-588 Omni VII 20200113.0 Stable RIG_MODEL_TT588 + 16012 Ten-Tec RX-331 20200323.0 Beta RIG_MODEL_RX331 + 16013 Ten-Tec TT-599 Eagle 20200324.0 Untested RIG_MODEL_TT599 + 17001 Alinco DX-77 20200323.0 Beta RIG_MODEL_DX77 + 17002 Alinco DX-SR8 20200323.0 Beta RIG_MODEL_DXSR8 + 18001 Kachina 505DSP 20061007.0 Alpha RIG_MODEL_505DSP + 22001 TAPR DSP-10 20061007.0 Alpha RIG_MODEL_DSP10 + 23001 Flex-radio SDR-1000 20200323.0 Untested RIG_MODEL_SDR1000 + 23003 DTTS Microwave Society DttSP IPC 20200319.0 Alpha RIG_MODEL_DTTSP + 23004 DTTS Microwave Society DttSP UDP 20200319.0 Alpha RIG_MODEL_DTTSP_UDP + 24001 RFT EKD-500 20031007.0 Alpha RIG_MODEL_EKD500 + 25001 Elektor Elektor 3/04 20200112.0 Stable RIG_MODEL_ELEKTOR304 + 25002 SAT-Schneider DRT1 20200112.0 Beta RIG_MODEL_DRT1 + 25003 Coding Technologies Digital World Traveller 20200112.0 Untested RIG_MODEL_DWT + 25006 AmQRP DDS-60 20200112.0 Alpha RIG_MODEL_DDS60 + 25007 Elektor Elektor SDR-USB 20200112.0 Stable RIG_MODEL_ELEKTOR507 + 25008 mRS miniVNA 20190817.0 Alpha RIG_MODEL_MINIVNA + 25009 SoftRock Si570 AVR-USB 20200112.0 Beta RIG_MODEL_SI570AVRUSB + 25011 KTH-SDR kit Si570 PIC-USB 20200112.0 Beta RIG_MODEL_SI570PICUSB + 25012 FiFi FiFi-SDR 20200112.0 Beta RIG_MODEL_FIFISDR + 25013 AMSAT-UK FUNcube Dongle 20200112.0 Stable RIG_MODEL_FUNCUBEDONGLE + 25014 N2ADR HiQSDR 20200323.0 Untested RIG_MODEL_HIQSDR + 25015 Funkamateur FA-SDR 20200112.0 Alpha RIG_MODEL_FASDR + 25016 AE9RB Si570 Peaberry V1 20200112.0 Beta RIG_MODEL_SI570PEABERRY1 + 25017 AE9RB Si570 Peaberry V2 20200112.0 Beta RIG_MODEL_SI570PEABERRY2 + 25018 AMSAT-UK FUNcube Dongle Pro+ 20200112.0 Stable RIG_MODEL_FUNCUBEDONGLEPLUS + 25019 HobbyPCB RS-HFIQ 20191209.0 Beta RIG_MODEL_RSHFIQ + 26001 Video4Linux SW/FM radio 20120107.0 Beta RIG_MODEL_V4L + 26002 Video4Linux2 SW/FM radio 20191223.0 Alpha RIG_MODEL_V4L2 + 27001 Rohde&Schwarz ESMC 20090803.0 Alpha RIG_MODEL_ESMC + 27002 Rohde&Schwarz EB200 20090803.0 Untested RIG_MODEL_EB200 + 27003 Rohde&Schwarz XK2100 20180307.0 Beta RIG_MODEL_XK2100 + 28001 Philips/Simoco PRM8060 20101027.0 Alpha RIG_MODEL_PRM8060 + 29001 ADAT www.adat.ch ADT-200A 20191206.0 Beta RIG_MODEL_ADT_200A + 30001 Icom IC-M700PRO 20181007.0 Alpha RIG_MODEL_IC_M700PRO + 30002 Icom IC-M802 20181007.0 Stable RIG_MODEL_IC_M802 + 30003 Icom IC-M710 20181007.0 Stable RIG_MODEL_IC_M710 + 30004 Icom IC-M803 20181007.0 Stable RIG_MODEL_IC_M803 + 31001 Dorji DRA818V 20191209.0 Untested RIG_MODEL_DORJI_DRA818V + 31002 Dorji DRA818U 20191209.0 Untested RIG_MODEL_DORJI_DRA818U + 32001 Barrett 2050 20181111.0 Beta RIG_MODEL_BARRETT_2050 + 33001 ELAD FDM-DUO 20200117.0 Untested RIG_MODEL_ELAD_FDM_DUO diff --git a/var/www/html/setup.php b/var/www/html/setup.php new file mode 100755 index 0000000..1c7d163 --- /dev/null +++ b/var/www/html/setup.php @@ -0,0 +1,171 @@ + + + + + + +DigiPi + + + + + + + + + +
+ DigiPi + + + + +
+
+ + +

DigiPi Initialization

+
+

+Please try to fill out this form completely the first time, as you cannot currently come +back and make changes here later. If you need to make subsequent edits, see +/home/pi/localize.sh for a list of files you can tweak manually. You can +always reflash your SD card and start over if not sure. +

+

+ + +

+ +

+ + + + + + + + + + +
Callsign Base callsign, no sid/suffix
Winlink Password Create Account
APRS Password Generate
Grid Square Find
Lattitude Locate
Longitude Locate
AX.25 Node Pass any alpha-numeric string
Enable FLRig Use FLRig for CAT control
Large Display Check if using PC or large tablet
+
+
+ + + + + +
USB-connected radios only
  Rig number See rig list
  Device file ys991,ic7300=ttyUSB0   ic705=ttyACM0
  Baud rate ys991=38400, ic7300=19200, ic705=115200
+
+
+'; + } + } + else { + echo '
'; + echo 'This Digipi was already initialized.

+ To make changes, please edit the config files manually. Please read /home/pi/localize.sh as a guide.

+ Remove /var/cache/digipi/localized.txt if you know what you\'re doing and would like to see + the submit button here again.'; + echo '
'; + } +} +?> +
+

+
+ +Restarting device.
"; + $IP = $_SERVER['SERVER_ADDR']; + echo "DigiPi will be available at http://$IP/ in approximately one minute.
"; + $output = shell_exec("sudo /sbin/shutdown -r 0"); + echo $output; + } +} + + +if (isset($_POST["submit"])) { + if (strlen($_POST["call"]) > 0) { + $call = addslashes($_POST["call"]); + $output = shell_exec("sudo sed -i 's/NEWCALL=.*/NEWCALL=$call/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["wlpass"]) > 0) { + $wlpass = addslashes($_POST["wlpass"]); + $output = shell_exec("sudo sed -i 's/NEWWLPASS=.*/NEWWLPASS=$wlpass/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["aprspass"]) > 0) { + $aprspass = addslashes($_POST["aprspass"]); + $output = shell_exec("sudo sed -i 's/NEWAPRSPASS=.*/NEWAPRSPASS=$aprspass/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["grid"]) > 0) { + $grid = addslashes($_POST["grid"]); + $output = shell_exec("sudo sed -i 's/NEWGRID=.*/NEWGRID=$grid/gi' /home/pi/localize.sh"); + } + if (strlen($_POST["lat"]) > 0) { + $lat = addslashes($_POST["lat"]); + $output = shell_exec("sudo sed -i 's/NEWLAT=.*/NEWLAT=$lat/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["lon"]) > 0) { + $lon = addslashes($_POST["lon"]); + $output = shell_exec("sudo sed -i 's/NEWLON=.*/NEWLON=$lon/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["nodepass"]) > 0) { + $nodepass = addslashes($_POST["nodepass"]); + $output = shell_exec("sudo sed -i 's/NEWNODEPASS=.*/NEWNODEPASS=$nodepass/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["rignumber"]) > 0) { + $rignumber = addslashes($_POST["rignumber"]); + $output = shell_exec("sudo sed -i 's/NEWRIGNUMBER=.*/NEWRIGNUMBER=$rignumber/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["devicefile"]) > 0) { + $devicefile = addslashes($_POST["devicefile"]); + $output = shell_exec("sudo sed -i 's/NEWDEVICEFILE=.*/NEWDEVICEFILE=$devicefile/gi' /home/pi/localize.sh "); + } + if (strlen($_POST["baudrate"]) > 0) { + $baudrate = addslashes($_POST["baudrate"]); + $output = shell_exec("sudo sed -i 's/NEWBAUDRATE=.*/NEWBAUDRATE=$baudrate/gi' /home/pi/localize.sh "); + } + if (isset($_POST["flrig"])) { + $output = shell_exec("sudo sed -i 's/NEWFLRIG=.*/NEWFLRIG=1/gi' /home/pi/localize.sh "); + } + if (isset($_POST["bigvnc"])) { + $output = shell_exec("sudo sed -i 's/NEWBIGVNC=.*/NEWBIGVNC=1/gi' /home/pi/localize.sh "); + } + + echo 'Changes applied.

'; + echo'
'; + echo ' for changes to take effect.'; + echo'
'; + echo "
"; + echo "
"; + echo "
"; + $output = shell_exec('head -17 /home/pi/localize.sh | tail -13 '); + + $output = shell_exec('sudo /home/pi/localize.sh'); + +} + +?> + +
+ + + +
+ + diff --git a/var/www/html/shell.php b/var/www/html/shell.php new file mode 100755 index 0000000..24c5562 --- /dev/null +++ b/var/www/html/shell.php @@ -0,0 +1,28 @@ + + + +DigiPi Shell + + + + + + + /dev/null 2> /dev/null &" ); + echo "Shell access..."; + time.sleep(2); + $IP = $_SERVER['SERVER_ADDR']; + echo ""; + exit(); + +?> + +
+ + +
+ + + diff --git a/var/www/html/styles/simple.css b/var/www/html/styles/simple.css new file mode 100644 index 0000000..58a06eb --- /dev/null +++ b/var/www/html/styles/simple.css @@ -0,0 +1,290 @@ +/* ----------------------- +Base styles +------------------------*/ + +body +{ + margin: 0; + padding: 5; + color: #333; + background-color: #fdfdfd; +/* font: 1em/1.2 "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; */ + font: 1em/1.2 "Arial", Arial, Helvetica, Geneva, sans-serif; + + overflow:initial !important; +} + +h1,h2,h3,h4,h5,h6 +{ + margin: 0 0 .5em; + font-weight: 500; + line-height: 1.1; + font: 1em/1.2 "Arial", Arial, Helvetica, Geneva, sans-serif; +} + +h1 { font-size: 2.25em; } /* 36px */ +h2 { font-size: 1.75em; } /* 28px */ +h3 { font-size: 1.375em; } /* 22px */ +h4 { font-size: 1.125em; } /* 18px */ +h5 { font-size: 1em; } /* 16px */ +h6 { font-size: .875em; } /* 14px */ + +p +{ + margin: 0 0 1.5em; + line-height: 1.5; + font: 1em/1.2 "Arial", Arial, Helvetica, Geneva, sans-serif; +} + +div +{ + margin: 0 0 1.5em; + line-height: 1.5; + font: 1em/1.2 "Arial", Arial, Helvetica, Geneva, sans-serif; +} + + +blockquote +{ + padding: 1em 2em; + margin: 0 0 2em; + border-left: 5px solid #eee; +} + +hr +{ + height: 0; + margin-top: 1em; + margin-bottom: 2em; + border: 0; + border-top: 1px solid #ddd; +} + +table +{ + background-color: transparent; + border-spacing: 0; + border-collapse: collapse; + border-top: 1px solid #ddd; +} + +th, td +{ + padding: .2em 1em; + vertical-align: top; + text-align: left; + border-bottom: 1px solid #ddd; + font: 1em/1.2 "Arial", Arial, Helvetica, Geneva, sans-serif; +} + +a { text-decoration:none; } +a:link { color: royalblue; } +a:visited { color: royalblue; } +a:focus { color: black; } +a:hover { color: green; } +a:active { color: red; } + + + +/* ----------------------- +Layout styles +------------------------*/ + +.container +{ + max-width: 70em; + margin: 0 auto; +} + +.header +{ + color: #fff; + background: #999; + padding: 1em 1.25em; +} + +.header-heading { margin: 0; } + +.nav-bar +{ + background: #000; + padding: 0; +} + +.content +{ + /* overflow: hidden; --*/ + overflow: scroll; + padding: 1em 1.25em; + background-color: #fff; +} + +.main, .aside +{ + margin-bottom: 1em; +} + +.footer +{ + color: #fff; + background: #000; + padding: 1em 1.25em; +} + +/* ----------------------- +Nav +------------------------*/ + +.nav +{ + margin: 0; + padding: 0; + list-style: none; +} + +.nav li +{ + display: inline; + margin: 0; +} + +.nav a +{ + display: block; + padding: .7em 1.25em; + color: #fff; + text-decoration: none; + border-bottom: 1px solid gray; +} + +.nav a:link { color: white; } +.nav a:visited { color: white; } + +.nav a:focus +{ + color: black; + background-color: white; +} + +.nav a:hover +{ + color: white; + background-color: green; +} + +.nav a:active +{ + color: white; + background-color: red; +} + +/* ----------------------- +Single styles +------------------------*/ + +.img-responsive { max-width: 100%; } + +.btn +{ + color: #fff !important; + background-color: royalblue; + border-color: #222; + display: inline-block; + padding: .5em 1em; + margin-bottom: 0; + font-weight: 400; + line-height: 1.2; + text-align: center; + white-space: nowrap; + vertical-align: middle; + cursor: pointer; + border: 1px solid transparent; + border-radius: .2em; + text-decoration: none; +} + +.btn:hover +{ + color: #fff !important; + background-color: green; +} + +.btn:focus +{ + color: #fff !important; + background-color: black; +} + +.btn:active +{ + color: #fff !important; + background-color: red; +} + +.table +{ + width: 100%; + max-width: 100%; + margin-bottom: 20px; +} + +.list-unstyled +{ + padding-left: 0; + list-style: none; +} + +.list-inline +{ + padding-left: 0; + margin-left: -5px; + list-style: none; +} + +.list-inline > li +{ + display: inline-block; + padding-right: 5px; + padding-left: 5px; +} + +/* ----------------------- +Wide styles +------------------------*/ + +@media (min-width: 55em) +{ + .header { padding: 1.5em 3em; } + .nav-bar { padding: 1em 3em; } + .content { padding: 2em 3em; } + + .main + { + float: left; + width: 65%; + margin-right: 5%; + margin-bottom: 1em; + } + + .aside + { + float: left; + width: 30%; + margin-bottom: 1em; + } + + .footer { padding: 2em 3em; } + + .nav li + { + display: inline; + margin: 0 1em 0 0; + } + + .nav a + { + display: inline; + padding: 0; + border-bottom: 0; + } +} diff --git a/var/www/html/syslog.php b/var/www/html/syslog.php new file mode 100755 index 0000000..1c1901d --- /dev/null +++ b/var/www/html/syslog.php @@ -0,0 +1,29 @@ + + + +DigiPi + + + + + + + /dev/null 2> /dev/null &" ); +# exec("/usr/local/bin/ttyd -t font=Arial -t fontSize=20 -o -s SIGTERM tail -f /run/direwolf.log > /dev/null 2> /dev/null &" ); + echo "Opening direwolf log..."; + time.sleep(2); + $IP = $_SERVER['SERVER_ADDR']; + echo ""; + exit(); + +?> + +
+ + +
+ + + diff --git a/var/www/html/tv/index.html.orig b/var/www/html/tv/index.html.orig new file mode 100644 index 0000000..ff27276 --- /dev/null +++ b/var/www/html/tv/index.html.orig @@ -0,0 +1,29 @@ + + + + SSTV redirect + + +

Please wait, SSTV starting up... +
+ Click here to redirect now +

+ + + + + + + diff --git a/var/www/html/tv/index.php b/var/www/html/tv/index.php new file mode 100644 index 0000000..f717b35 --- /dev/null +++ b/var/www/html/tv/index.php @@ -0,0 +1,34 @@ + + + + + + DigiPi SSTV redirect + + +

Please wait, SSTV starting up... +
+ Click here to redirect now +

+ + + + + + diff --git a/var/www/html/wifi.php b/var/www/html/wifi.php new file mode 100755 index 0000000..d1ef6ad --- /dev/null +++ b/var/www/html/wifi.php @@ -0,0 +1,81 @@ + + + + +

Wifi Setup

+ + +
+

+ SSID:
+

+

+ PASS:
+

+

+         + +

+
+ + + + "; + echo "Try http://digipi/ in a couple of minutes.
"; + echo "Check your router/firewall DHCP assignments if that doesn't work."; + $output = shell_exec("sudo /home/pi/digibanner.py -b DigiPi -s Rebooting..."); + $output = shell_exec("sudo /sbin/shutdown -r 0"); + echo $output; + } +} + + +?> + +
+ + + + + +