dashboard_ to dash_

pull/14/head
Tom Early 6 years ago
parent 69ac52fe8b
commit a7d108963c

@ -261,3 +261,4 @@ uninstalldash :
/bin/rm -f $(SYSDIR)/qndash.service
systemctl daemon-reload
/bin/rm -f $(WWWDIR)/index.php
/bin/rm -f $(CFGDIR)/qn.db

@ -50,6 +50,10 @@
#include "QnetGateway.h"
#include "Utilities.h"
#ifndef CFG_DIR
#define CFG_DIR "/usr/local/etc"
#endif
const std::string GW_VERSION("QnetGateway-9.3");
extern void dstar_dv_init();
@ -351,7 +355,7 @@ bool CQnetGateway::ReadConfig(char *cfgFile)
// dashboard
path.assign("dash_");
cfg.GetValue(path+"enable_lastheard", estr, DASH_SHOW_LH);
cfg.GetValue(path+"show_lh", estr, DASH_SHOW_LH);
cfg.GetValue(path+"sql_filename", estr, DASH_SQL_NAME, 1, 32);
return false;
@ -2461,8 +2465,13 @@ bool CQnetGateway::Init(char *cfgfile)
}
// open database
if (DASH_SHOW_LH && qnDB.Open(DASH_SQL_NAME.c_str()))
if (DASH_SHOW_LH) {
std::string dbname(CFG_DIR);
dbname.append("/");
dbname.append(DASH_SQL_NAME);
if (qnDB.Open(dbname.c_str()))
return true;
}
playNotInCache = false;

@ -216,7 +216,7 @@ timing_play_delay_d=19 # milliseconds between frames playback, if echo so
#
# Dashboard - for the php/sqlite webpage
#
dash_sql_filename_d='/usr/local/etc/qn.db' # name for the sqlite database
dash_sql_filename_d='qn.db' # name for the sqlite database in the $CFGDIR directory
dash_refresh_d=20 # seconds for the webpage to reload
dash_lastheard_count_d=20 # maximum number of last heard entries to display
dash_show_lh_d=true # set to false if for no Last Heard section

Loading…
Cancel
Save

Powered by TurnKey Linux.