fix missing templates
This commit is contained in:
parent
674f9102d1
commit
a943748c94
43
scripts/dashboard/templates/about.html
Normal file
43
scripts/dashboard/templates/about.html
Normal file
@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{title}}</title>
|
||||
<style>
|
||||
body {background-color: D3D3D3;}
|
||||
h1 {color: green;}
|
||||
p {
|
||||
padding: 10px;
|
||||
margin: 20px;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.html' %}
|
||||
{{description}}
|
||||
<p> </p>
|
||||
<p>Contact information for this gateway.</p>
|
||||
<table style="margin-left: auto; margin-right: auto;" border="black">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><strong>Name</strong></td>
|
||||
<td>{{contact_name}} </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Callsign</strong></td>
|
||||
<td> {{contact_call}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>E-Mail</strong></td>
|
||||
<td> {{contact_email}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Website</strong></td>
|
||||
<td> {{contact_website}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
{% include 'footer.html' %}
|
||||
|
4
scripts/dashboard/templates/footer.html
Normal file
4
scripts/dashboard/templates/footer.html
Normal file
@ -0,0 +1,4 @@
|
||||
<hr />
|
||||
<div style="text-align: center;">Dashboard created by KF7EEL - <a href="https://github.com/kf7eel/hblink3">https://github.com/kf7eel/hblink3</a><br />HBLink created by N0MJS.<br /><a href="https://github.com/HBLink-org">HBLink GitHub page</a></div>
|
||||
</body>
|
||||
</html>
|
13
scripts/dashboard/templates/header.html
Normal file
13
scripts/dashboard/templates/header.html
Normal file
@ -0,0 +1,13 @@
|
||||
<p><img style="display: block; margin-left: auto; margin-right: auto;" src="{{logo}}" alt="Logo" width="300" height="144" /></p>
|
||||
<h1 style="text-align: center;">{{title}}</h1>
|
||||
<hr />
|
||||
<table style="width: 500px; margin-left: auto; margin-right: auto;" border="black" cellspacing="3" cellpadding="3">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;"><button onclick="window.location.href='/';"> D-APRS Dashboard </button></td>
|
||||
<td style="text-align: center;"><button onclick="window.location.href='/help';"> D-APRS Help </button></td>
|
||||
<td style="text-align: center;"><button onclick="window.location.href='/about';"> Gateway Contact </button></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<hr />
|
84
scripts/dashboard/templates/help.html
Normal file
84
scripts/dashboard/templates/help.html
Normal file
@ -0,0 +1,84 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{title}}</title>
|
||||
<style>
|
||||
body {background-color: D3D3D3;}
|
||||
h1 {color: green;}
|
||||
p {
|
||||
padding: 10px;
|
||||
margin: 20px;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.html' %}
|
||||
<h2 style="text-align: center;">Attention:</h2>
|
||||
<p><span style="color: #ff0000;"><strong>Please be aware that many (if not all) DMR radios DO NOT transmit your callsign when sending a GPS position. It is your responsibility to identify your station per the regulations of your country.</strong></span></p>
|
||||
<p> </p>
|
||||
<p>{{description}}</p>
|
||||
<p>Configure your radio to send GPS positions with the following settings:</p>
|
||||
<table style="margin-left: auto; margin-right: auto;" border="black">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;"><strong>Data Call Type</strong></td>
|
||||
<td style="text-align: center;"><strong>DMR ID</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align: center;"> {{data_call_type}}</td>
|
||||
<td style="text-align: center;"> {{data_call_id}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
<p>When a position is received by this gateway, it will extract the coordinates and create an APRS position packet. The this gateway will find your callsign based your radio's DMR ID. It is essential to have your information up to date with <a href="https://radioid.net/">RadioID.net</a>. A predefined APRS SSID of {{aprs_ssid}} is appended your callsign. The APRS location packet is then uploaded to APRS-IS. No setup or account creation is required beforehand. This is pretty much "plug and play."</p>
|
||||
<p>For example, N0CALL has a DMR ID of 1234567. N0CALL's radio sends a position to this gateway with the settings above. This gateway will query the <a href="https://radioid.net/">RadioID.net</a> database for DMR ID 1234567. The result will be an APRS location packet with APRS SSID {{aprs_ssid}}. </p>
|
||||
<p>You can change the default APRS settings for your radio via SMS.</p>
|
||||
<h2 style="text-align: center;">Commands</h2>
|
||||
<table style="margin-left: auto; margin-right: auto;" border="black">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center;">
|
||||
<h4><strong>Command</strong></h4>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<h4><strong>Description</strong></h4>
|
||||
</td>
|
||||
<td style="text-align: center;">
|
||||
<h4><strong>Example</strong></h4>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>@COM</strong></td>
|
||||
<td>Change the comment of the APRS.</td>
|
||||
<td><em><code>@COM This is a test comment.</code></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>@ICON</strong></td>
|
||||
<td>Change the icon of the APRS position. *See <a href="http://aprs.net/vm/DOS/SYMBOLS.HTM" rel="nofollow">http://aprs.net/vm/DOS/SYMBOLS.HTM</a> for icon list.</td>
|
||||
<td><em><code>@icon /p</code></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>@SSID</strong></td>
|
||||
<td>Change SSID of your callsign.</td>
|
||||
<td><em><code>@SSID 7</code></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>@MH</strong></td>
|
||||
<td>Set you location by maidenhead grid square. Designed for radios with no GPS or that are not compatable yet.</td>
|
||||
<td><em><code>@MH DN97uk</code></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>@BB</strong></td>
|
||||
<td>Post a bulliten to the web dashboard.</td>
|
||||
<td><em><code>@BB This is a test bulletin.</code></em></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p> </p>
|
||||
<p>Send an SMS to <strong>{{data_call_id}}</strong> as a <strong>{{data_call_type}}</strong> with the desired command followed by the value. For example, to change your icon to a dog, the command would be <code>@ICON /p</code> (see the icon table for values). Changing your SSID is as simple as <code>@SSID 7</code>, and <code>@COM Testing 123</code> will change the comment.</p>
|
||||
<p>Sending <code>@BB Test</code> will result in a post to the bulletin board with the messaage of "Test".</p>
|
||||
<p><strong>To remove any of the stored values, just send the appropriate command without any input.</strong> <code>@COM</code> will remove the stored comment, <code>@ICON</code> will remove the stored icon, and <code>@COM</code> will remove the strored comment. Any position now reports sent will have the default settings.</p>
|
||||
{% include 'footer.html' %}
|
31
scripts/dashboard/templates/index.html
Normal file
31
scripts/dashboard/templates/index.html
Normal file
@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="refresh" content="120" >
|
||||
<title>{{title}}</title>
|
||||
<style>
|
||||
body {background-color: D3D3D3;}
|
||||
h1 {color: green;}
|
||||
p {
|
||||
padding: 10px;
|
||||
margin: 20px;
|
||||
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% include 'header.html' %}
|
||||
<p style="text-align: center;"><em>Page automatically reloads every 2 minutes.</em></p>
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><div><p align="center"><iframe style="border: none;" title="Bulletin Board" src="bulletin_board" width="480" height="950"></iframe></p></div></td>
|
||||
<td><div>
|
||||
<p align="center"><iframe style="border: none;" title="Positions Received" src="positions" width="620" height="950"></iframe></p>
|
||||
</div></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% include 'footer.html' %}
|
||||
|
Loading…
Reference in New Issue
Block a user