diff --git a/scripts/dashboard/dashboard.py b/scripts/dashboard/dashboard.py index b963441..a40adc5 100644 --- a/scripts/dashboard/dashboard.py +++ b/scripts/dashboard/dashboard.py @@ -114,9 +114,16 @@ def dash_bb(): def dash_loc(): return get_loc_data() #return render_template('index.html', data = str(get_data())) -@app.route('//') -def render_static(page_name): - return render_template('%s.html' % page_name, title = dashboard_title, logo = logo, description = description) - +##@app.route('//') +##def render_static(page_name): +## return render_template('%s.html' % page_name, title = dashboard_title, logo = logo, description = description) +@app.route('/help') +def help(): + #return get_data() + return render_template('help.html', title = dashboard_title, logo = logo, description = description, data_call_type = data_call_type, data_call_id = data_call_id) +@app.route('/about') +def about(): + #return get_data() + return render_template('about.html', title = dashboard_title, logo = logo, contact_name, contact_call = contact_call, contact_email = contact_email, contact_website = contact_website) if __name__ == '__main__': app.run(debug = True, port=dash_port, host=dash_host) diff --git a/scripts/dashboard/dashboard_settings-SAMPLE.py b/scripts/dashboard/dashboard_settings-SAMPLE.py index 856c9c9..ee10bb8 100644 --- a/scripts/dashboard/dashboard_settings-SAMPLE.py +++ b/scripts/dashboard/dashboard_settings-SAMPLE.py @@ -33,3 +33,15 @@ dash_host = '127.0.0.1' description = ''' Welcome to the ''' + dashboard_title + '''. ''' +# The following will generate a help page for your users. + +# Data call type +data_call_type = 'Private Call' +# DMR ID of GPS/Data application +data_call_id = '9099' + +# Gateway contact info displayed on about page. +contact_name = 'your name' +contact_call = 'N0CALL' +contact_email = 'email@example.org' +contact_website = 'https://hbl.ink' diff --git a/scripts/dashboard/templates/about.html b/scripts/dashboard/templates/about.html index d1b92e4..895b6e8 100644 --- a/scripts/dashboard/templates/about.html +++ b/scripts/dashboard/templates/about.html @@ -16,5 +16,28 @@ p { {% include 'header.html' %} {{description}} +

 

+

Contact information for this gateway.

+ + + + + + + + + + + + + + + + + + + +
Name{{contact_name}}
Callsign {{contact_call}}
E-Mail {{contact_email}}
Website {{contact_website}}
+

 

{% include 'footer.html' %} diff --git a/scripts/dashboard/templates/header.html b/scripts/dashboard/templates/header.html index 79cfa10..f76936a 100644 --- a/scripts/dashboard/templates/header.html +++ b/scripts/dashboard/templates/header.html @@ -1,24 +1,12 @@

Logo

{{title}}


- +
- - - + + +
- - - - - -
diff --git a/scripts/dashboard/templates/help.html b/scripts/dashboard/templates/help.html index d677333..16a8022 100644 --- a/scripts/dashboard/templates/help.html +++ b/scripts/dashboard/templates/help.html @@ -15,5 +15,67 @@ p { {% include 'header.html' %} -Help info here. +

{{description}}

+

Configure your radio to send GPS positions with the following settings:

+ + + + + + + + + + + +
Data Call TypeDMR ID
 {{data_call_type}} {{data_call_id}}
+

 

+

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 RadioID.net. 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."

+

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 RadioID.net database for DMR ID 1234567. The result will be an APRS location packet with APRS SSID {{aprs_ssid}}.

+

You can change the default APRS settings for your radio via SMS.

+

Commands

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Command

+
+

Description

+
+

Example

+
@COMChange the comment of the APRS.@COM This is a test comment.
@ICONChange the icon of the APRS position. *See http://aprs.net/vm/DOS/SYMBOLS.HTM for icon list.@icon /p
@SSIDChange SSID of your callsign.@SSID 7
@MHSet you location by maidenhead grid square. Designed for radios with no GPS or that are not compatable yet.@MH DN97uk
@BBPost a bulliten to the web dashboard.@BB This is a test bulletin.
+

 

+

Send an SMS to {{data_call_id}} as a {{data_call_type}} with the desired command followed by the value. For example, to change your icon to a dog, the command would be @ICON /p (see the icon table for values). Changing your SSID is as simple as @SSID 7, and @COM Testing 123 will change the comment.

+

Sending @BB Test will result in a post to the bulletin board with the messaage of "Test".

+

To remove any of the stored values, just send the appropriate command without any input. @COM will remove the stored comment, @ICON will remove the stored icon, and @COM will remove the strored comment. Any position now reports sent will have the default settings.

{% include 'footer.html' %} diff --git a/scripts/dashboard/templates/index.html b/scripts/dashboard/templates/index.html index b07d291..54d1127 100644 --- a/scripts/dashboard/templates/index.html +++ b/scripts/dashboard/templates/index.html @@ -27,5 +27,5 @@ p { - {% include 'header.html' %} + {% include 'footer.html' %}