-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathspeedtest.html
81 lines (78 loc) · 3.37 KB
/
speedtest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<script type="text/javascript">
RED.nodes.registerType("speedtest", {
category: "input",
color: "#28AFB0",
defaults: {
name: {
value: "",
},
maxTime: {
value: 5 * 1000,
},
serverId: {
value: "",
},
acceptLicense: {
value: false,
},
acceptGdpr: {
value: false,
},
},
inputs: 1,
outputs: 1,
icon: "white-globe.png",
label: function () {
return this.name || "speedtest";
},
});
</script>
<script type="text/x-red" data-template-name="speedtest">
<div class="form-row">
<label for="node-input-maxTime"><i class="fa fa-hourglass-end"></i> MaxTime (ms)</label>
<input type="text" id="node-input-maxTime" placeholder="50000">
</div>
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-serverId"><i class="icon-tag"></i> ServerId</label>
<input type="text" id="node-input-serverId" placeholder="leave empty for nearest">
</div>
<div class="form-row">
<p>
You may only use this Speedtest software and information generate from it for personal, non-commercial use, through a command line interface on a personal computer. Your use of this software is subject to the End User License Agreement, Terms of Use and Privacy Policy at these URLs:
</p>
<ul>
<li><a href="https://www.speedtest.net/about/eula" taget="_blank">https://www.speedtest.net/about/eula</a></li>
<li><a href="https://www.speedtest.net/about/terms" taget="_blank">https://www.speedtest.net/about/terms</a></li>
<li><a href="https://www.speedtest.net/about/privacy" taget="_blank">https://www.speedtest.net/about/privacy</a></li>
</ul>
<label for="node-input-acceptLicense"><i class="icon-tag"></i> Accept Terms</label>
<input type="checkbox" id="node-input-acceptLicense">
</div>
<div class="form-row">
<p>
Ookla collects certain data through Speedtest that may be considered
personally identifiable, such as your IP address, unique device
identifiers or location. Ookla believes it has a legitimate interest
to share this data with internet providers, hardware manufacturers and
industry regulators to help them understand and create a better and
faster internet. For further information including how the data may be
shared, where the data may be transferred and Ookla's contact details,
please see our Privacy Policy at:
http://www.speedtest.net/privacy
</p>
<label for="node-input-acceptGdpr"><i class="icon-tag"></i> Accept Gdpr</label>
<input type="checkbox" id="node-input-acceptGdpr">
</div>
</script>
<script type="text/x-red" data-help-name="speedtest">
<p>
A <a href="https://github.com/ddsol/speedtest.net">speedtest.net</a> node.
</p>
<p>
List of id and other info is available <a href="https://www.speedtest.net/speedtest-servers-static.php">here</a>
</p>
</script>