Browse Source

better farnsworth demo

main
Robey 2 years ago
parent
commit
66f2fd5cf5
  1. 13
      LICENSE.txt
  2. 68
      site/farnsworth.html
  3. BIN
      site/icon-latency.png

13
LICENSE.txt

@ -0,0 +1,13 @@
Copyright © 2017-2020 Robey Pointer <robeypointer@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

68
site/farnsworth.html

@ -0,0 +1,68 @@
<!doctype html>
<html>
<head>
<link rel="icon" type="image/png" href="icon-latency.png"></link>
<script src="dygraph.min.js"></script>
<script src="netgraph.js"></script>
<style type="text/css">
h1, h2, h3, h4 {
font-family: sans-serif;
}
.netgraph-group {
display: flex;
flex-direction: row;
margin-top: 1em;
margin-bottom: 1em;
width: 100%;
height: 15em;
}
.netgraph {
display: flex;
flex: 1 1 auto;
width: 100%;
margin-left: 1em;
margin-right: 1em;
font-family: mono;
}
</style>
<rrd name="ping" path="collectd/ping/ping-8.8.8.8.rrd" data="value:MAX"></rrd>
<rrd name="dropped" path="collectd/ping/ping_droprate-8.8.8.8.rrd" data="value:MAX"></rrd>
<rrd name="comcast-ping" path="/outpost-collectd/data/ping/ping-96.120.88.157.rrd" data="value:MAX"></rrd>
<rrd name="comcast-dropped" path="/outpost-collectd/data/ping/ping_droprate-96.120.88.157.rrd" data="value:MAX"></rrd>
<rrd name="modem-ping" path="/outpost-collectd/data/ping/ping-10.1.13.1.rrd" data="value:MAX"></rrd>
<rrd name="modem-dropped" path="/outpost-collectd/data/ping/ping_droprate-10.1.13.1.rrd" data="value:MAX"></rrd>
<rrd name="nat-ping" path="/outpost-collectd/data/ping/ping-10.1.10.1.rrd" data="value:MAX"></rrd>
<rrd name="nat-dropped" path="/outpost-collectd/data/ping/ping_droprate-10.1.10.1.rrd" data="value:MAX"></rrd>
</head>
<body>
<h3> Latency to 8.8.8.8 </h3>
<div class="netgraph-group" line="ping" error="dropped" error-threshold="0.5" unit="ms" colors="red, orange">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to comcast (96.120.88.157) </h3>
<div class="netgraph-group" line="comcast-ping" error="comcast-dropped" error-threshold="0.5" unit="ms" colors="red, orange">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to modem </h3>
<div class="netgraph-group" line="modem-ping" error="modem-dropped" error-threshold="0.5" unit="ms" colors="red, orange">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
<h3> Latency to NAT </h3>
<div class="netgraph-group" line="nat-ping" error="nat-dropped" error-threshold="0.5" unit="ms" colors="red, orange">
<div class="netgraph" timespan="hour"></div>
<div class="netgraph" timespan="day"></div>
<div class="netgraph" timespan="week"></div>
</div>
</body>
</html>

BIN
site/icon-latency.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Loading…
Cancel
Save