Added LoRa web control page for 5GHz link
73
web-interface/5ghz.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PE1RXF APRS server</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="refresh" content="600">
|
||||
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
<link rel="stylesheet" href="css/popup.css">
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
#Data format:
|
||||
#0,1,2,3,4,5,6,7,8,9
|
||||
|
||||
# 0 = acces point off/on (0/1)
|
||||
# 1 = station stal off/on (0/1)
|
||||
# 2 = station tiny house off/on (0/1)
|
||||
$status = array_map('str_getcsv', file("/home/marcel/ham/aprs_utils/5ghz/5ghz-status.dat"));
|
||||
?>
|
||||
<div class="header">
|
||||
<a href="index.php" >
|
||||
<h1><i class="fa fa-home" aria-hidden="true"></i> PE1RXF 5 GHz access point manager</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 col-s-3 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-s-9" id="main_page">
|
||||
|
||||
<div class="col-6 col-s-12">
|
||||
<a href="toggle_ap.php"><img src="images/power.svg" /></a>
|
||||
<h1>Access Point</h1>
|
||||
|
||||
|
||||
<a href="toggle_stal.php"><img src="images/power.svg" /></a>
|
||||
<h1>Station Stal</h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-s-12">
|
||||
<a href="power_on_tinyhouse.php"><img src="images/power.svg" /></a>
|
||||
<h1>Station Tiny house ON</h1>
|
||||
|
||||
<a href="power_off_tinyhouse.php"><img src="images/power.svg" /></a>
|
||||
<h1>Station Tiny house OFF</h1>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3 col-s-12 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
110
web-interface/images/power.svg
Normal file
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="19.146343"
|
||||
height="21.320263"
|
||||
id="svg4256"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.3.1 r9886"
|
||||
sodipodi:docname="joede-power-symbol.svg"
|
||||
inkscape:export-filename="/home/jd/archive/art-collection/Cliparts/Symbols_and_Signs/power.png"
|
||||
inkscape:export-xdpi="2820.75"
|
||||
inkscape:export-ydpi="2820.75">
|
||||
<title
|
||||
id="title2986">Power Symbol</title>
|
||||
<defs
|
||||
id="defs4258" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="28.23605"
|
||||
inkscape:cx="-1.1577911"
|
||||
inkscape:cy="10.660131"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:window-width="1154"
|
||||
inkscape:window-height="800"
|
||||
inkscape:window-x="122"
|
||||
inkscape:window-y="56"
|
||||
inkscape:window-maximized="0" />
|
||||
<metadata
|
||||
id="metadata4261">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title>Power Symbol</dc:title>
|
||||
<dc:description>A simple "Power" symbol for designing keypad buttons</dc:description>
|
||||
<dc:source>https://openclipart.org/user-detail/joede</dc:source>
|
||||
<cc:license
|
||||
rdf:resource="http://creativecommons.org/licenses/by-sa/3.0/" />
|
||||
</cc:Work>
|
||||
<cc:License
|
||||
rdf:about="http://creativecommons.org/licenses/by-sa/3.0/">
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#Notice" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#Attribution" />
|
||||
<cc:permits
|
||||
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
||||
<cc:requires
|
||||
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Ebene 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(-340.42683,-521.70206)">
|
||||
<g
|
||||
id="g4275">
|
||||
<g
|
||||
transform="matrix(0.5356663,0,0,0.5356663,222.83059,456.02625)"
|
||||
id="g4144-2-1-0"
|
||||
style="display:inline">
|
||||
<path
|
||||
sodipodi:type="arc"
|
||||
style="color:#000000;fill:none;stroke:#000000;stroke-width:3.89763784;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
|
||||
id="path4140-6-4-1"
|
||||
sodipodi:cx="182.48032"
|
||||
sodipodi:cy="1093.1102"
|
||||
sodipodi:rx="12.401575"
|
||||
sodipodi:ry="12.401577"
|
||||
d="m 194.88189,1093.1102 c 0,6.8492 -5.55237,12.4016 -12.40157,12.4016 -6.8492,0 -12.40158,-5.5524 -12.40158,-12.4016 0,-6.8492 5.55238,-12.4015 12.40158,-12.4015 2.32816,0 4.6093,0.6553 6.58245,1.891"
|
||||
transform="matrix(0.6081779,-1.0865451,1.0865451,0.6081779,-1061.2899,-321.9967)"
|
||||
sodipodi:start="0"
|
||||
sodipodi:end="5.2719043"
|
||||
sodipodi:open="true" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:4.85324097;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="m 237.40416,125.03244 0,17.64812"
|
||||
id="path4142-4-0-7"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 4.2 KiB |
55
web-interface/power_off_tinyhouse.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PE1RXF APRS server</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="refresh" content="600">
|
||||
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
<link rel="stylesheet" href="css/popup.css">
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
|
||||
<meta http-equiv="refresh" content="3; url='./5ghz.php" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
$execuatable_string = sprintf("/home/marcel/ham/aprs_utils/power-off-hamnet-link.sh > /dev/null 2>&1 &");
|
||||
exec("$execuatable_string");
|
||||
?>
|
||||
|
||||
<div class="header">
|
||||
<a href="index.php" >
|
||||
<h1><i class="fa fa-home" aria-hidden="true"></i> PE1RXF 5 GHz access point manager</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 col-s-3 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-s-9" id="main_page">
|
||||
|
||||
<h1>Powering off station tiny house</h1>
|
||||
<h1>This may take a while</h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3 col-s-12 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
55
web-interface/power_on_tinyhouse.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PE1RXF APRS server</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="refresh" content="600">
|
||||
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
<link rel="stylesheet" href="css/popup.css">
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
|
||||
<meta http-equiv="refresh" content="3; url='./5ghz.php" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
$execuatable_string = sprintf("/home/marcel/ham/aprs_utils/power-on-hamnet-link.sh > /dev/null 2>&1 &");
|
||||
exec("$execuatable_string");
|
||||
?>
|
||||
|
||||
<div class="header">
|
||||
<a href="index.php" >
|
||||
<h1><i class="fa fa-home" aria-hidden="true"></i> PE1RXF 5 GHz access point manager</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 col-s-3 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-s-9" id="main_page">
|
||||
|
||||
<h1>Powering on station tiny house</h1>
|
||||
<h1>This may take a while</h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3 col-s-12 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 8.1 KiB |
68
web-interface/toggle_tinyhouse.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>PE1RXF APRS server</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="refresh" content="600">
|
||||
|
||||
<link rel="stylesheet" href="css/styles.css">
|
||||
<link rel="stylesheet" href="css/popup.css">
|
||||
<link rel="stylesheet" href="css/font-awesome.min.css">
|
||||
|
||||
<meta http-equiv="refresh" content="3; url='./5ghz.php" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
#Data format:
|
||||
#0,1,2,3,4,5,6,7,8,9
|
||||
|
||||
# 0 = acces point off/on (0/1)
|
||||
# 1 = station stal off/on (0/1)
|
||||
# 2 = station tiny house off/on (0/1)
|
||||
$status = array_map('str_getcsv', file("/home/marcel/ham/aprs_utils/5ghz/5ghz-status.dat"));
|
||||
|
||||
if ($status[0][0] == 0)
|
||||
$execuatable_string = sprintf("/home/marcel/ham/aprs_utils/power-on-hamnet-link.sh > /dev/null 2>&1 &");
|
||||
else
|
||||
$execuatable_string = sprintf("/home/marcel/ham/aprs_utils/power-off-hamnet-link.sh > /dev/null 2>&1 &");
|
||||
|
||||
exec("$execuatable_string");
|
||||
|
||||
?>
|
||||
|
||||
<div class="header">
|
||||
<a href="index.php" >
|
||||
<h1><i class="fa fa-home" aria-hidden="true"></i> PE1RXF 5 GHz access point manager</h1>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-3 col-s-3 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="col-6 col-s-9" id="main_page">
|
||||
|
||||
<h1>Toggle state of Access Point</h1>
|
||||
<h1>This may take a while</h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-3 col-s-12 menu">
|
||||
<ul>
|
||||
<li><h3>Access point: <?php if ($status[0][0] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station stal: <?php if ($status[0][1] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
<li><h3>Station tiny house: <?php if ($status[0][2] == 0) echo "OFF";else echo "ON" ?></h3></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|