kopia lustrzana https://github.com/jprochazka/adsb-receiver
Merge remote-tracking branch 'refs/remotes/origin/master' into template
# Conflicts: # build/portal/html/admin/index.php # build/portal/html/templates/default/graphs.tplpull/100/head
commit
c447bafe27
|
@ -1,9 +1,11 @@
|
|||
# The ADS-B Feeder Project :airplane:
|
||||
|
||||
This repository contains a set of bash scripts and files which can be used to setup an ADS-B
|
||||
feeder on a clean installation of a Debian derived operating system. The scripts are executed
|
||||
receiver on a clean installation of a Debian derived operating system. The scripts are executed
|
||||
in order by the main install script depending on the installation options choosen by the user.
|
||||
|
||||
The project website is located at https://www.adsbreceiver.net.
|
||||
|
||||
### Obtaining And Using This Software
|
||||
|
||||
#### For new installations...
|
||||
|
|
|
@ -72,7 +72,6 @@ cpu_graph_dump1090() {
|
|||
--title "$3 CPU Utilization" \
|
||||
--vertical-label "CPU %" \
|
||||
--lower-limit 0 \
|
||||
--upper-limit 100 \
|
||||
--rigid \
|
||||
"DEF:demod=$2/dump1090_cpu-demod.rrd:value:AVERAGE" \
|
||||
"CDEF:demodp=demod,10,/" \
|
||||
|
@ -81,8 +80,8 @@ cpu_graph_dump1090() {
|
|||
"DEF:background=$2/dump1090_cpu-background.rrd:value:AVERAGE" \
|
||||
"CDEF:backgroundp=background,10,/" \
|
||||
"AREA:readerp#008000:USB" \
|
||||
"AREA:backgroundp#00C000:other:STACK" \
|
||||
"AREA:demodp#00FF00:demodulator\c:STACK" \
|
||||
"AREA:backgroundp#00C000:Other:STACK" \
|
||||
"AREA:demodp#00FF00:Demodulator\c:STACK" \
|
||||
"COMMENT: \n" \
|
||||
--watermark "Drawn: $nowlit";
|
||||
}
|
||||
|
@ -118,9 +117,8 @@ cpu_graph() {
|
|||
--height 200 \
|
||||
--step "$5" \
|
||||
--title "Overall CPU Utilization" \
|
||||
--vertical-label "CPU / %" \
|
||||
--vertical-label "CPU %" \
|
||||
--lower-limit 0 \
|
||||
--upper-limit 100 \
|
||||
--rigid \
|
||||
--units-exponent 0 \
|
||||
"DEF:idle=$2/cpu-idle.rrd:value:AVERAGE" \
|
||||
|
@ -141,7 +139,7 @@ cpu_graph() {
|
|||
"CDEF:pwait=100,wait,*,all,/" \
|
||||
"AREA:pinterrupt#000080:irq" \
|
||||
"AREA:psoftirq#0000C0:softirq:STACK" \
|
||||
"AREA:psteal#0000FF::STACK" \
|
||||
"AREA:psteal#0000FF:steal:STACK" \
|
||||
"AREA:pwait#C00000:io:STACK" \
|
||||
"AREA:psystem#FF0000:sys:STACK" \
|
||||
"AREA:puser#40FF40:user:STACK" \
|
||||
|
@ -164,8 +162,8 @@ df_root_graph() {
|
|||
"DEF:reserved=$2/df_complex-reserved.rrd:value:AVERAGE" \
|
||||
"DEF:free=$2/df_complex-free.rrd:value:AVERAGE" \
|
||||
"CDEF:totalused=used,reserved,+" \
|
||||
"AREA:totalused#4169E1:used:STACK" \
|
||||
"AREA:free#32C734:free\c:STACK" \
|
||||
"AREA:totalused#4169E1:Used:STACK" \
|
||||
"AREA:free#32C734:Free\c:STACK" \
|
||||
"COMMENT: \n" \
|
||||
--watermark "Drawn: $nowlit";
|
||||
}
|
||||
|
@ -205,7 +203,7 @@ disk_io_octets_graph() {
|
|||
--height 200 \
|
||||
--step "$5" \
|
||||
--title "Disk I/O - Bandwidth" \
|
||||
--vertical-label "Bytes/s" \
|
||||
--vertical-label "Bytes/Sec" \
|
||||
"TEXTALIGN:center" \
|
||||
"DEF:read=$2/disk_octets.rrd:read:AVERAGE" \
|
||||
"DEF:write=$2/disk_octets.rrd:write:AVERAGE" \
|
||||
|
@ -232,7 +230,7 @@ eth0_graph() {
|
|||
--height 200 \
|
||||
--step "$5" \
|
||||
--title "Bandwidth Usage (eth0)" \
|
||||
--vertical-label "bytes/sec" \
|
||||
--vertical-label "Bytes/Sec" \
|
||||
"TEXTALIGN:center" \
|
||||
"DEF:rx=$2/if_octets.rrd:rx:AVERAGE" \
|
||||
"DEF:tx=$2/if_octets.rrd:tx:AVERAGE" \
|
||||
|
@ -257,6 +255,7 @@ memory_graph() {
|
|||
--width 496 \
|
||||
--height 200 \
|
||||
--step "$5" \
|
||||
--lower-limit 0 \
|
||||
--title "Memory Utilization" \
|
||||
--vertical-label "" \
|
||||
"TEXTALIGN:center" \
|
||||
|
@ -264,10 +263,10 @@ memory_graph() {
|
|||
"DEF:cached=$2/memory-cached.rrd:value:AVERAGE" \
|
||||
"DEF:free=$2/memory-free.rrd:value:AVERAGE" \
|
||||
"DEF:used=$2/memory-used.rrd:value:AVERAGE" \
|
||||
"AREA:used#4169E1:used:STACK" \
|
||||
"AREA:buffered#32C734:buffered:STACK" \
|
||||
"AREA:cached#00FF00:cached:STACK" \
|
||||
"AREA:free#FFFFFF:free\c:STACK" \
|
||||
"AREA:used#4169E1:Used:STACK" \
|
||||
"AREA:buffered#32C734:Buffered:STACK" \
|
||||
"AREA:cached#00FF00:Cached:STACK" \
|
||||
"AREA:free#FFFFFF:Free\c:STACK" \
|
||||
"COMMENT: \n" \
|
||||
--watermark "Drawn: $nowlit";
|
||||
}
|
||||
|
@ -324,7 +323,7 @@ wlan0_graph() {
|
|||
--height 200 \
|
||||
--step "$5" \
|
||||
--title "Bandwidth Usage (wlan0)" \
|
||||
--vertical-label "bytes/sec" \
|
||||
--vertical-label "Bytes/Sec" \
|
||||
"TEXTALIGN:center" \
|
||||
"DEF:rx=$2/if_octets.rrd:rx:AVERAGE" \
|
||||
"DEF:tx=$2/if_octets.rrd:tx:AVERAGE" \
|
||||
|
@ -352,7 +351,7 @@ local_rate_graph() {
|
|||
--height 200 \
|
||||
--step "$5" \
|
||||
--title "$3 Message Rate" \
|
||||
--vertical-label "messages/second" \
|
||||
--vertical-label "Messages/Second" \
|
||||
--lower-limit 0 \
|
||||
--units-exponent 0 \
|
||||
--right-axis 360:0 \
|
||||
|
@ -361,9 +360,9 @@ local_rate_graph() {
|
|||
"DEF:positions=$2/dump1090_messages-positions.rrd:value:AVERAGE" \
|
||||
"CDEF:y2strong=strong,10,*" \
|
||||
"CDEF:y2positions=positions,10,*" \
|
||||
"LINE1:messages#0000FF:messages received" \
|
||||
"AREA:y2strong#FF0000:messages >-3dBFS / hr (RHS)" \
|
||||
"LINE1:y2positions#00c0FF:positions / hr (RHS)\c" \
|
||||
"LINE1:messages#0000FF:Messages Received" \
|
||||
"AREA:y2strong#FF0000:Messages > -3dBFS / Hr (RHS)" \
|
||||
"LINE1:y2positions#00c0FF:Positions / Hr (RHS)\c" \
|
||||
"COMMENT: \n" \
|
||||
--watermark "Drawn: $nowlit";
|
||||
}
|
||||
|
@ -520,8 +519,7 @@ range_graph_metric() {
|
|||
"VDEF:peakrange=range,MAXIMUM" \
|
||||
"GPRINT:avgrange:%1.1lf km" \
|
||||
"LINE1:peakrange#FF0000:Peak Range\\:" \
|
||||
"GPRINT:peakrange:%1.1lf km" \
|
||||
"LINE1:463#000000:250 NM\c" \
|
||||
"GPRINT:peakrange:%1.1lf km\c" \
|
||||
"COMMENT: \n" \
|
||||
--watermark "Drawn: $nowlit";
|
||||
}
|
||||
|
@ -621,4 +619,4 @@ step="$2"
|
|||
nowlit=`date '+%m/%d/%y %H:%M %Z'`;
|
||||
|
||||
dump1090_receiver_graphs localhost localhost "ADS-B" "$period" "$step"
|
||||
#hub_graphs localhost rpi "ADS-B" "$period" "$step"
|
||||
#hub_graphs localhost rpi "ADS-B" "$period" "$step"
|
||||
|
|
|
@ -82,7 +82,8 @@
|
|||
$common->updateSetting("enableDump1090", $enableDump1090);
|
||||
$common->updateSetting("enableDump978", $enableDump978);
|
||||
$common->updateSetting("enablePfclient", $enablePfclient);
|
||||
$common->updateSetting("measurement", $_POST['measurement']);
|
||||
$common->updateSetting("measurementRange", $_POST['measurementRange']);
|
||||
$common->updateSetting("measurementTemperature", $_POST['measurementTemperature']);
|
||||
$common->updateSetting("networkInterface", $_POST['networkInterface']);
|
||||
|
||||
// Set updated to TRUE since settings were updated.
|
||||
|
@ -102,8 +103,9 @@
|
|||
$enableDump978 = $common->getSetting("enableDump978");
|
||||
$enablePfclient = $common->getSetting("enablePfclient");
|
||||
|
||||
// Get unit of measurement setting from settings.xml.
|
||||
$measurement = $common->getSetting("measurement");
|
||||
// Get units of measurement setting from settings.xml.
|
||||
$measurementRange = $common->getSetting("measurementRange");
|
||||
$measurementTemperature = $common->getSetting("measurementTemperature");
|
||||
|
||||
// Get the network interface from settings.xml.
|
||||
$networkInterface = $common->getSetting("networkInterface");
|
||||
|
@ -204,14 +206,27 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Unit of Measurement</div>
|
||||
<div class="panel-heading">Unit of Measurement (Range)</div>
|
||||
<div class="panel-body">
|
||||
<div class="btn-group" data-toggle="buttons">
|
||||
<label class="btn btn-default<?php ($measurement == "imperial" ? print ' active' : ''); ?>">
|
||||
<input type="radio" name="measurement" id="imperial" value="imperial" autocomplete="off"<?php ($measurement == "imperial" ? print ' checked' : ''); ?>> Imperial
|
||||
<label class="btn btn-default<?php ($measurementRange == "imperial" ? print ' active' : ''); ?>">
|
||||
<input type="radio" name="measurementRange" id="imperial" value="imperial" autocomplete="off"<?php ($measurementRange == "imperial" ? print ' checked' : ''); ?>> Imperial
|
||||
</label>
|
||||
<label class="btn btn-default<?php ($measurement == "metric" ? print ' active' : ''); ?>">
|
||||
<input type="radio" name="measurement" id="metric" value="metric" autocomplete="off"<?php ($measurement == "metric" ? print ' checked' : ''); ?>> Metric
|
||||
<label class="btn btn-default<?php ($measurementRange == "metric" ? print ' active' : ''); ?>">
|
||||
<input type="radio" name="measurementRange" id="metric" value="metric" autocomplete="off"<?php ($measurementRange == "metric" ? print ' checked' : ''); ?>> Metric
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Unit of Measurement (Temperature)</div>
|
||||
<div class="panel-body">
|
||||
<div class="btn-group" data-toggle="buttons">
|
||||
<label class="btn btn-default<?php ($measurementTemperature == "imperial" ? print ' active' : ''); ?>">
|
||||
<input type="radio" name="measurementTemperature" id="imperial" value="imperial" autocomplete="off"<?php ($measurementTemperature == "imperial" ? print ' checked' : ''); ?>> Imperial
|
||||
</label>
|
||||
<label class="btn btn-default<?php ($measurementTemperature == "metric" ? print ' active' : ''); ?>">
|
||||
<input type="radio" name="measurementTemperature" id="metric" value="metric" autocomplete="off"<?php ($measurementTemperature == "metric" ? print ' checked' : ''); ?>> Metric
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -37,7 +37,11 @@
|
|||
<value/>
|
||||
</setting>
|
||||
<setting>
|
||||
<name>measurement</name>
|
||||
<name>measurementRange</name>
|
||||
<value>imperial</value>
|
||||
</setting>
|
||||
<setting>
|
||||
<name>measurementTemperature</name>
|
||||
<value>imperial</value>
|
||||
</setting>
|
||||
<setting>
|
||||
|
|
|
@ -33,34 +33,15 @@
|
|||
|
||||
// Load the common PHP classes.
|
||||
require_once('classes/common.class.php');
|
||||
$common = new common();
|
||||
require_once('classes/template.class.php');
|
||||
|
||||
// The title and navigation link ID of this page.
|
||||
$common = new common();
|
||||
$template = new template();
|
||||
|
||||
$pageData = array();
|
||||
|
||||
// The title of this page.
|
||||
$pageTitle = "Performance Graphs";
|
||||
|
||||
// Get the name of the template to use from the settings.
|
||||
$siteName = $common->getSetting("siteName");
|
||||
$template = $common->getSetting("template");
|
||||
|
||||
// Enable/disable navigation links.
|
||||
$enableBlog = $common->getSetting("enableBlog");
|
||||
$enableInfo = $common->getSetting("enableInfo");
|
||||
$enableGraphs = $common->getSetting("enableGraphs");
|
||||
$enableDump1090 = $common->getSetting("enableDump1090");
|
||||
$enableDump978 = $common->getSetting("enableDump978");
|
||||
$enablePfclient = $common->getSetting("enablePfclient");
|
||||
|
||||
// Measurement type to use.
|
||||
$measurement = $common->getSetting("measurement");
|
||||
|
||||
// Get the network interface being used.
|
||||
$networkInterface = $common->getSetting("networkInterface");
|
||||
|
||||
$linkId = $common->removeExtension($_SERVER["SCRIPT_NAME"])."-link";
|
||||
|
||||
// Include the index template.
|
||||
require_once('templates/'.$template.'/graphs.tpl.php');
|
||||
|
||||
// Include the master template.
|
||||
require_once('templates/'.$template.'/master.tpl.php');
|
||||
$template->display($pageData);
|
||||
?>
|
||||
|
|
|
@ -33,38 +33,62 @@ function switchView(newTimeFrame) {
|
|||
$timestamp = new Date().getTime() / 1000
|
||||
|
||||
// Display images for the requested time frame.
|
||||
$("#dump1090-local_trailing_rate-image").attr("src", "dump1090-" + $hostName + "-local_trailing_rate-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-local_rate-image").attr("src", "dump1090-" + $hostName + "-local_rate-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-aircraft-image").attr("src", "dump1090-" + $hostName + "-aircraft-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-tracks-image").attr("src", "dump1090-" + $hostName + "-tracks-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-range-image").attr("src", "dump1090-" + $hostName + "-range-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-signal-image").attr("src", "dump1090-" + $hostName + "-signal-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-cpu-image").attr("src", "dump1090-" + $hostName + "-cpu-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-cpu-image").attr("src", "system-" + $hostName + "-cpu-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-eth0_bandwidth-image").attr("src", "system-" + $hostName + "-eth0_bandwidth-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
//$("#system-wlan0_bandwidth-image").attr("src", "system-" + $hostName + "-wlan0_bandwidth-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-memory-image").attr("src", "system-" + $hostName + "-memory-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-temperature-image").attr("src", "system-" + $hostName + "-temperature-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-df_root-image").attr("src", "system-" + $hostName + "-df_root-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-disk_io_iops-image").attr("src", "system-" + $hostName + "-disk_io_iops-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-disk_io_octets-image").attr("src", "system-" + $hostName + "-disk_io_octets-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-local_trailing_rate-image").attr("src", "graphs/dump1090-" + $hostName + "-local_trailing_rate-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-local_rate-image").attr("src", "graphs/dump1090-" + $hostName + "-local_rate-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-aircraft_message_rate-image").attr("src", "graphs/dump1090-" + $hostName + "-aircraft_message_rate-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-aircraft-image").attr("src", "graphs/dump1090-" + $hostName + "-aircraft-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-tracks-image").attr("src", "graphs/dump1090-" + $hostName + "-tracks-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php if ($measurementRange == "imperial") { ?>
|
||||
$("#dump1090-range-image").attr("src", "graphs/dump1090-" + $hostName + "-range-imperial-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php } else { ?>
|
||||
$("#dump1090-range-image").attr("src", "graphs/dump1090-" + $hostName + "-range-metric-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php } ?>
|
||||
$("#dump1090-signal-image").attr("src", "graphs/dump1090-" + $hostName + "-signal-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#dump1090-cpu-image").attr("src", "graphs/dump1090-" + $hostName + "-cpu-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-cpu-image").attr("src", "graphs/system-" + $hostName + "-cpu-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php if ($networkInterface == "eth0") { ?>
|
||||
$("#system-eth0_bandwidth-image").attr("src", "graphs/system-" + $hostName + "-eth0_bandwidth-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php } else { ?>
|
||||
$("#system-wlan0_bandwidth-image").attr("src", "graphs/system-" + $hostName + "-wlan0_bandwidth-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php } ?>
|
||||
$("#system-memory-image").attr("src", "graphs/system-" + $hostName + "-memory-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php if ($measurementTemperature == "imperial") { ?>
|
||||
$("#system-temperature-image").attr("src", "graphs/system-" + $hostName + "-temperature-imperial-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php } else { ?>
|
||||
$("#system-temperature-image").attr("src", "graphs/system-" + $hostName + "-temperature-metric-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
<?php } ?>
|
||||
$("#system-df_root-image").attr("src", "graphs/system-" + $hostName + "-df_root-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-disk_io_iops-image").attr("src", "graphs/system-" + $hostName + "-disk_io_iops-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
$("#system-disk_io_octets-image").attr("src", "graphs/system-" + $hostName + "-disk_io_octets-" + $timeFrame + ".png?time=" + $timestamp);
|
||||
|
||||
// Create links to full sized images for the requested time frame.
|
||||
$("#dump1090-local_trailing_rate-link").attr("href", "dump1090-" + $hostName + "-local_trailing_rate-" + $timeFrame + ".png");
|
||||
$("#dump1090-local_rate-image-link").attr("href", "dump1090-" + $hostName + "-local_rate-" + $timeFrame + ".png");
|
||||
$("#dump1090-aircraft-link").attr("href", "dump1090-" + $hostName + "-aircraft-" + $timeFrame + ".png");
|
||||
$("#dump1090-tracks-link").attr("href", "dump1090-" + $hostName + "-tracks-" + $timeFrame + ".png");
|
||||
$("#dump1090-range-link").attr("href", "dump1090-" + $hostName + "-range-" + $timeFrame + ".png");
|
||||
$("#dump1090-signal-link").attr("href", "dump1090-" + $hostName + "-signal-" + $timeFrame + ".png");
|
||||
$("#dump1090-cpu-link").attr("href", "dump1090-" + $hostName + "-cpu-" + $timeFrame + ".png");
|
||||
$("#system-cpu-image").attr("href", "system-" + $hostName + "-cpu-" + $timeFrame + ".png");
|
||||
$("#system-eth0_bandwidth-image").attr("href", "system-" + $hostName + "-eth0_bandwidth-" + $timeFrame + ".png");
|
||||
//$("#system-wlan0_bandwidth-image").attr("href", "system-" + $hostName + "-wlan0_bandwidth-" + $timeFrame + ".png");
|
||||
$("#system-memory-image").attr("href", "system-" + $hostName + "-memory-" + $timeFrame + ".png");
|
||||
$("#system-temperature-image").attr("href", "system-" + $hostName + "-temperature-" + $timeFrame + ".png");
|
||||
$("#system-df_root-image").attr("href", "system-" + $hostName + "-df_root-" + $timeFrame + ".png");
|
||||
$("#system-disk_io_iops-image").attr("href", "system-" + $hostName + "-disk_io_iops-" + $timeFrame + ".png");
|
||||
$("#system-disk_io_octets-image").attr("href", "system-" + $hostName + "-disk_io_octets-" + $timeFrame + ".png");
|
||||
$("#dump1090-local_trailing_rate-link").attr("href", "graphs/dump1090-" + $hostName + "-local_trailing_rate-" + $timeFrame + ".png");
|
||||
$("#dump1090-local_rate-link").attr("href", "graphs/dump1090-" + $hostName + "-local_rate-" + $timeFrame + ".png");
|
||||
$("#dump1090-aircraft_message_rate-link").attr("href", "graphs/dump1090-" + $hostName + "-aircraft_message_rate-" + $timeFrame + ".png");
|
||||
$("#dump1090-aircraft-link").attr("href", "graphs/dump1090-" + $hostName + "-aircraft-" + $timeFrame + ".png");
|
||||
$("#dump1090-tracks-link").attr("href", "graphs/dump1090-" + $hostName + "-tracks-" + $timeFrame + ".png");
|
||||
<?php if ($measurementRange == "imperial") { ?>
|
||||
$("#dump1090-range-link").attr("href", "graphs/dump1090-" + $hostName + "-range-imperial-" + $timeFrame + ".png");
|
||||
<?php } else { ?>
|
||||
$("#dump1090-range-link").attr("href", "graphs/dump1090-" + $hostName + "-range-metric-" + $timeFrame + ".png");
|
||||
<?php } ?>
|
||||
$("#dump1090-signal-link").attr("href", "graphs/dump1090-" + $hostName + "-signal-" + $timeFrame + ".png");
|
||||
$("#dump1090-cpu-link").attr("href", "graphs/dump1090-" + $hostName + "-cpu-" + $timeFrame + ".png");
|
||||
$("#system-cpu-link").attr("href", "graphs/system-" + $hostName + "-cpu-" + $timeFrame + ".png");
|
||||
<?php if ($networkInterface == "eth0") { ?>
|
||||
$("#system-eth0_bandwidth-link").attr("href", "graphs/system-" + $hostName + "-eth0_bandwidth-" + $timeFrame + ".png");
|
||||
<?php } else { ?>
|
||||
$("#system-wlan0_bandwidth-link").attr("href", "graphs/system-" + $hostName + "-wlan0_bandwidth-" + $timeFrame + ".png");
|
||||
<?php } ?>
|
||||
$("#system-memory-link").attr("href", "graphs/system-" + $hostName + "-memory-" + $timeFrame + ".png");
|
||||
<?php if ($measurementTemperature == "imperial") { ?>
|
||||
$("#system-temperature-link").attr("href", "graphs/system-" + $hostName + "-temperature-imperial-" + $timeFrame + ".png");
|
||||
<?php } else { ?>
|
||||
$("#system-temperature-link").attr("href", "graphs/system-" + $hostName + "-temperature-metric-" + $timeFrame + ".png");
|
||||
<?php } ?>
|
||||
$("#system-df_root-link").attr("href", "graphs/system-" + $hostName + "-df_root-" + $timeFrame + ".png");
|
||||
$("#system-disk_io_iops-link").attr("href", "graphs/system-" + $hostName + "-disk_io_iops-" + $timeFrame + ".png");
|
||||
$("#system-disk_io_octets-link").attr("href", "graphs/system-" + $hostName + "-disk_io_octets-" + $timeFrame + ".png");
|
||||
|
||||
// Set the button related to the selected time frame to active.
|
||||
$("#btn-1h").removeClass('active');
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
// Release Date: //
|
||||
// Author: Joe Prochazka //
|
||||
// Website: https://www.swiftbyte.com //
|
||||
// Contributor: Marcus Gunther //
|
||||
// ========================================================================== //
|
||||
// Copyright and Licensing Information: //
|
||||
// //
|
||||
|
|
Ładowanie…
Reference in New Issue