From 7cbe4fe96bf1073b2931518f733e964654101a49 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 7 Mar 2020 22:13:04 -0700 Subject: [PATCH] dashboard qnconfg menu --- DASHBOARD.README | 7 +++++-- index.php | 12 +++++------ qnconfig | 54 +++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 64 insertions(+), 9 deletions(-) diff --git a/DASHBOARD.README b/DASHBOARD.README index cd10959..075b10e 100644 --- a/DASHBOARD.README +++ b/DASHBOARD.README @@ -1,7 +1,10 @@ ##### DASHBOARD.README ##### -A web-based dashboard can be enabled. You can supply your own index.php file, -or a functional dashboard is available. +A web-based dashboard can be enabled. The dashboard has several sections +that you can disable if you want. You can also control the refresh rate and +how many rows you want in the Last Heard section. You can configure these +features with the ./qnconfig menu. Don't set the refresh time faster than about +10 seconds. If you do, it will become difficult to use the Send URCall button. To install the dashboard system, run the following command: diff --git a/index.php b/index.php index a4abb39..447ecab 100644 --- a/index.php +++ b/index.php @@ -1,10 +1,4 @@ - - -QnetGateway Dashboard - - - + + +QnetGateway Dashboard + + +

QnetGateway Dashboard

> $outFile [ -z "${timing_play_wait+x}" ] || echo "timing_play_wait=${timing_play_wait}" >> $outFile [ -z "${timing_play_delay+x}" ] || echo "timing_play_delay=${timing_play_delay}" >> $outFile + # dash_ section + [ -z "${dash_sql_filename+x}" ] || echo "dash_sql_filename='${dash_sql_filename}'" >> $outFile + [ -z "${dash_refresh+x}" ] || echo "dash_refresh=${dash_refresh}" >> $outFile + [ -z "${dash_lastheard_count+x}" ] || echo "dash_lastheard_count=${dash_lastheard_count}" >> $outFile + [ -z "${dash_show_ip+x}" ] || echo "dash_show_ip=${dash_show_ip}" >> $outFile + [ -z "${dash_show_lh+x}" ] || echo "dash_show_lh=${dash_show_lh}" >> $outFile + [ -z "${dash_show_ip+x}" ] || echo "dash_show_ip=${dash_show_ip}" >> $outFile + [ -z "${dash_show_mo+x}" ] || echo "dash_show_mo=${dash_show_mo}" >> $outFile + [ -z "${dash_show_ur+x}" ] || echo "dash_show_ur=${dash_show_ur}" >> $outFile clear cat $outFile echo @@ -683,7 +733,7 @@ while [[ "$ans" != q* ]] do clear echo - echo " QnConfig Main Menu V#190424" + echo " QnConfig Main Menu V#200307" echo echo -n "a : Module A - "; if [ -z $module_a ]; then echo ""; else echo "${module_a^^}"; fi echo -n "b : Module B - "; if [ -z $module_b ]; then echo ""; else echo "${module_b^^}"; fi @@ -691,6 +741,7 @@ do echo "i : IRCDDB Menu - login = '${ircddb_login}'" echo "g : Gateway/APRS Menu - location info and route cache" echo "l : Link/D-Plus Menu - linking access" + echo "D : Dashboard Menu - Dashboard customization" if [ -n "$em" ]; then echo "d : Debugging/Files/Timings - miscellaneous parameters" else @@ -706,6 +757,7 @@ do if [[ "$ans" == a* ]]; then ModuleMenu a elif [[ "$ans" == b* ]]; then ModuleMenu b elif [[ "$ans" == c* ]]; then ModuleMenu c + elif [[ "$ans" == D* ]]; then DashboardMenu elif [[ "$ans" == i* ]]; then IrcddbMenu elif [[ "$ans" == g* ]]; then GateMenu elif [[ "$ans" == l* ]]; then LinkMenu