diff --git a/DASHBOARD.README b/DASHBOARD.README index b97e523..28240db 100644 --- a/DASHBOARD.README +++ b/DASHBOARD.README @@ -1,19 +1,22 @@ ##### DASHBOARD.README ##### A web-based dashboard can be enabled. You can supply your own index.php file, -or a functional dashboard can be provide. If no index.php file is in the -build directroy when try to install the dashboard, the installation will fail. -To get started, copy the "example.php" file to "index.php". +or a functional dashboard is available. If no index.php file is in the build +directroy when try to install the dashboard, the installation will fail. To +get started, copy the "example.php" file to "index.php": -The example.php file is a good place to start, if you want to create your own +cp example.php index.php + +The example.php file is a good place to start if you want to create your own by adding features to your dashboard. This dashboard include a
with a button to send any URCALL to your gateway. -To install, run the following command after you have created an index.php file: +To install the dashboard system, run the following command after you have +created an index.php file: sudo make installdash -Note that this will install a php web server and all necessary packaged needed +Note that this will install a php web server and all necessary packages needed for the server. To uninstall, run the following: sudo make uninstalldash @@ -32,3 +35,6 @@ address or at http://.local/ (on the same subnet). Please note that this is a very simple server and is not recommended for the world wide web. If you want a robust dashboard accessible from the web, you will want to use a robust server, like apache, and a different index.php file. + +Please note that if you are tryping in a URCALL when the webpage is refreshing, +the entry field will loose focus and you'll have to try again. diff --git a/example.php b/example.php index 69a98ca..1993a39 100644 --- a/example.php +++ b/example.php @@ -2,7 +2,7 @@ QnetGateway Dashboard - + QnetGateway Dashboard 2) { - echo 'Process:
', "\n"; + echo 'Processes:
', "\n"; echo str_replace(' ', ' ', 'USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
'), "\n"; $lines = explode("\n", `ps -aux | grep -e qngateway -e qnlink -e qndtmf -e qndvap -e qnitap -e qnrelay -e qndvrptr -e qnmodem -e MMDVMHost | grep -v grep`); foreach ($lines as $line) {