summaryrefslogtreecommitdiffstats
path: root/python/gui/templates
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-04 10:18:33 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-04 10:18:33 +0100
commitd5cbe10c0e2298b0e40161607a3da158249bdb82 (patch)
tree5f6a0ff40ce5b3dd39d0df1c348557b183b48a7e /python/gui/templates
parent594cb2691debaa7562fd7d76d3b224701ec087ea (diff)
downloaddabmod-d5cbe10c0e2298b0e40161607a3da158249bdb82.tar.gz
dabmod-d5cbe10c0e2298b0e40161607a3da158249bdb82.tar.bz2
dabmod-d5cbe10c0e2298b0e40161607a3da158249bdb82.zip
Move python stuff to folder
Diffstat (limited to 'python/gui/templates')
-rw-r--r--python/gui/templates/about.html65
-rw-r--r--python/gui/templates/body-nav.html39
-rw-r--r--python/gui/templates/head.html25
-rw-r--r--python/gui/templates/home.html35
-rw-r--r--python/gui/templates/modulator.html73
-rw-r--r--python/gui/templates/predistortion.html88
-rw-r--r--python/gui/templates/rcvalues.html48
7 files changed, 373 insertions, 0 deletions
diff --git a/python/gui/templates/about.html b/python/gui/templates/about.html
new file mode 100644
index 0000000..3a05230
--- /dev/null
+++ b/python/gui/templates/about.html
@@ -0,0 +1,65 @@
+<!--
+ Copyright (C) 2018
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+This file is part of ODR-DabMod.
+
+ODR-DabMod is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+ODR-DabMod is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
+-->
+
+
+<!DOCTYPE html>
+<html lang="en">
+
+{% include 'head.html' %}
+
+<body>
+ {% include 'body-nav.html' %}
+
+ <div class="container-fluid">
+ <div class="jumbotron">
+ <h2>About</h2>
+ <p>ODR-DabMod by <a href="http://opendigitalradio.org">Opendigitalradio</a></p>
+ <h2>Authors</h2>
+ <ul>
+ <li>Pascal Charest</li>
+ <li>Matthias P. Braendli</li>
+ <li>Jörgen Scott</li>
+ <li>Sergiy</li>
+ <li>Andreas Steger</li>
+ </ul>
+ <p>Web interface by Matthias P. Braendli and Yoann Queret.</p>
+ <p>Please see TODOs in the README.md</p>
+ </div>
+ <div class="container">
+ <h2>Contributions</h2>
+ <p>Please get in touch with the developers of this web interface
+ through the crc-mmbTools google group or through
+ <a href="https://github.com/Opendigitalradio/ODR-DabMod">the GitHub repository</a>.
+ </p>
+ <hr />
+ <h2>Licence</h2>
+ <p>
+ ODR-DabMod is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.<br />
+ <br />
+ ODR-DabMod is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<br />
+ <br />
+ You should have received a copy of the GNU General Public License along with ODR-DabMod. If not, see http://www.gnu.org/licenses/<br />
+ </p>
+ </div>
+ </div>
+</body>
+
+</html>
+
diff --git a/python/gui/templates/body-nav.html b/python/gui/templates/body-nav.html
new file mode 100644
index 0000000..f403619
--- /dev/null
+++ b/python/gui/templates/body-nav.html
@@ -0,0 +1,39 @@
+ <div class="container-fluid">
+ <nav class="navbar navbar-inverse">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <a class="navbar-brand" href="/">ODR-DabMod UI</a>
+ </div>
+ <div>
+ <ul class="nav navbar-nav">
+ <li{% if tab == 'home' %} class="active"{% endif %}><a href="/">Home</a></li>
+ <li{% if tab == 'rcvalues' %} class="active"{% endif %}><a href="/rcvalues">RC values</a></li>
+ <li{% if tab == 'modulator' %} class="active"{% endif %}><a href="/modulator">Modulator</a></li>
+ <li{% if tab == 'predistortion' %} class="active"{% endif %}><a href="/predistortion">Predistortion</a></li>
+ <li class="dropdown{% if tab == 'help' or tab == 'about' %} active"{% endif %}">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">Help
+ <span class="caret"></span></a>
+ <ul class="dropdown-menu">
+ <li class="dropdown-header">Open Digital Radio</li>
+ <li><a href="http://www.opendigitalradio.org/">Website</a></li>
+ <li><a href="http://wiki.opendigitalradio.org/">Documentation</a></li>
+ <li><a href="https://github.com/Opendigitalradio/">GitHub</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">ODR-DabMod</li>
+ <li><a href="/about">About</a></li>
+ </ul>
+ </li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <!--
+ {% if is_login is sameas true %}
+ <li><a href="/auth/logout"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>
+ {% else %}
+ <li><a href="/auth/login"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
+ {% endif %}
+ -->
+ </ul>
+ </div>
+ </div>
+ </nav>
+ </div>
diff --git a/python/gui/templates/head.html b/python/gui/templates/head.html
new file mode 100644
index 0000000..cdf1654
--- /dev/null
+++ b/python/gui/templates/head.html
@@ -0,0 +1,25 @@
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>ODR-DabMod</title>
+
+ <!-- jquery -->
+ <script type="text/javascript" src="/js/jquery.js"></script>
+
+ <!-- Bootstrap -->
+ <link href="/css/bootstrap.min.css" rel="stylesheet">
+ <script type="text/javascript" src="/js/bootstrap.min.js"></script>
+
+ <!-- ODR -->
+ {% for jsurl in js %}
+ <script type="text/javascript" src="{{ jsurl }}"></script>
+ {% endfor %}
+ {% for cssurl in css %}
+ <link href="{{ cssurl }}" rel="stylesheet">
+ {% endfor %}
+
+ <!-- gritter -->
+ <link rel="stylesheet" type="text/css" href="/css/jquery.gritter.css" />
+ <script type="text/javascript" src="/js/jquery.gritter.js"></script>
+</head>
diff --git a/python/gui/templates/home.html b/python/gui/templates/home.html
new file mode 100644
index 0000000..5cb29f8
--- /dev/null
+++ b/python/gui/templates/home.html
@@ -0,0 +1,35 @@
+<!--
+ Copyright (C) 2018
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+This file is part of ODR-DabMod.
+
+ODR-DabMod is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+ODR-DabMod is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+
+{% include 'head.html' %}
+
+<body>
+ {% include 'body-nav.html' %}
+
+ <div class="container-fluid">
+ <div class="jumbotron">
+ <h1>Opendigitalradio</h1><h2>ODR-DabMod Interface</h2>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/python/gui/templates/modulator.html b/python/gui/templates/modulator.html
new file mode 100644
index 0000000..6deffb1
--- /dev/null
+++ b/python/gui/templates/modulator.html
@@ -0,0 +1,73 @@
+<!--
+ Copyright (C) 2018
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+This file is part of ODR-DabMod.
+
+ODR-DabMod is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+ODR-DabMod is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+
+{% include 'head.html' %}
+
+<body>
+ {% include 'body-nav.html' %}
+
+ <div class="container-fluid">
+ <div class="panel-group">
+ <div class="panel panel-default">
+ <div class="panel-body">
+ <h3>Gain</h3>
+ <div class="form-group">
+ <label for="digitalgain">Digital Gain:</label>
+ <input type="text" class="form-control" id="digitalgain">
+ <button type="button" class="btn btn-sm btn-info" id="setdigitalgain">Set</button>
+ </div>
+ </div>
+ <div class="panel-body">
+ <h3>OFDM Windowing</h3>
+ <div class="form-group">
+ <label for="windowlength">Window length:</label>
+ <input type="text" class="form-control" id="windowlength">
+ <button type="button" class="btn btn-sm btn-info" id="setwindowlength">Set</button>
+ </div>
+ </div>
+ <div class="panel-body">
+ <h3>CFR</h3>
+ <div class="form-group">
+ <div class="checkbox">
+ <label><input type="checkbox" value="1" id="cfrenable">Enable</label>
+ </div>
+
+ <label for="cfrclip">clip:</label>
+ <input type="text" class="form-control" id="cfrclip">
+
+ <label for="errorclip">error clip:</label>
+ <input type="text" class="form-control" id="cfrerrorclip">
+ <input type="text" readonly class="form-control" id="cfrstats">
+ <input type="text" readonly class="form-control" id="paprstats">
+ <button type="button" class="btn btn-sm btn-info" id="setclip">
+ Set
+ </button>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ <button type="button" class="btn btn-sm btn-info" id="refresh">Refresh</button>
+ </div>
+</body>
+</html>
diff --git a/python/gui/templates/predistortion.html b/python/gui/templates/predistortion.html
new file mode 100644
index 0000000..2ebf7ea
--- /dev/null
+++ b/python/gui/templates/predistortion.html
@@ -0,0 +1,88 @@
+<!--
+ Copyright (C) 2018
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+This file is part of ODR-DabMod.
+
+ODR-DabMod is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+ODR-DabMod is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+
+{% include 'head.html' %}
+
+<body>
+ {% include 'body-nav.html' %}
+
+ <div class="container-fluid">
+ <div class="panel-group">
+ <div class="panel panel-default">
+ <div class="panel-heading">Calibration</div>
+ <div class="panel-body">
+ <div>Calibration needs to be done once before the PA model
+ can be trained. Every time calibration is changed, the predistortion
+ parameters are invalidated!</div>
+ <button type="button" class="btn btn-sm btn-info" id="calibratebtn">
+ Calibrate</button>
+ <button type="button" class="btn btn-sm btn-info" id="calibraterefreshbtn">
+ Refresh results</button>
+ <div>Calibration results:<span id="calibrationresults">N/A<span></div>
+ </div>
+ </div>
+ <div class="panel panel-default">
+ <div class="panel-heading">Capture TX and RX frames</div>
+ <div class="panel-body">
+ <div>
+ <img id="txframeimg" src="dpd/txframe.png" width="320" height="240" />
+ <img id="rxframeimg" src="dpd/rxframe.png" width="320" height="240" />
+ </div>
+ <div>
+ <button type="button" class="btn btn-sm btn-info" id="refreshframesbtn">
+ Refresh</button>
+ </div>
+ </div>
+ </div>
+
+ <!--
+ <div class="panel panel-default">
+ <div class="panel-heading">Capture</div>
+ <div class="panel-body">
+ <div>On pressing this button,
+ the DPDCE will trigger a capture and a quick data
+ analysis, without updating any DPD models.</div>
+ <button type="button" class="btn btn-sm btn-info" id="capturebutton">
+ Capture</button>
+ </div>
+ </div>
+ <div class="panel panel-default">
+ <div class="panel-heading">Status</div>
+ <div class="panel-body">
+ <button type="button" class="btn btn-sm btn-info" id="dpdstatusbutton">
+ Update</button>
+ <div>Histogram: <span id="histogram">N/A</span></div>
+ <div>Capture status
+ <span id="capturestatus">N/A</span></div>
+ <div>Number of samples captured:
+ <span id="capturelength">None</span></div>
+ <div>TX median: <span id="tx_median">N/A</span></div>
+ <div>RX median: <span id="rx_median">N/A</span></div>
+ <div>Point cloud: <img id="dpd_pointcloud" /></div>
+ </div>
+ </div>
+ -->
+ </div>
+ </div>
+</body>
+</html>
diff --git a/python/gui/templates/rcvalues.html b/python/gui/templates/rcvalues.html
new file mode 100644
index 0000000..c1786bc
--- /dev/null
+++ b/python/gui/templates/rcvalues.html
@@ -0,0 +1,48 @@
+<!--
+ Copyright (C) 2018
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+This file is part of ODR-DabMod.
+
+ODR-DabMod is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+ODR-DabMod is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
+-->
+
+<!DOCTYPE html>
+<html lang="en">
+
+{% include 'head.html' %}
+
+<body>
+ {% include 'body-nav.html' %}
+
+ <div class="container-fluid">
+ <div class="container">
+ <h1>RC Values</h1>
+ <table id="rctable" class="table">
+ <thead>
+ <tr>
+ <th scope="col">RC entry</th>
+ <th scope="col">Value</th>
+ <th scope="col">Help</th>
+ </tr>
+ </thead>
+ <tbody>
+ </tbody>
+ </table>
+ </div>
+
+ <button type="button" class="btn btn-sm btn-info" id="refresh">Refresh</button>
+ </div>
+</body>
+</html>