internet-monitor
internet-monitor copied to clipboard
Monitors internet statistics such as strength and speed information on a smart mirror.
Internet Monitor - Mirror
Monitors internet statistics such as strength and speed information on a smart mirror.
Installing the module
To install the module, just clone this repository to your modules folder: git clone https://github.com/ronny3050/internet-monitor.git internet-monitor
.
Then run cd internet-monitor
and npm install
which will install the dependencies.
Using the module
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'internet-monitor',
position: 'top_center',
header: 'Internet Monitor',
config:{
type: '',
maxTime: 20000,
updateInterval: 0,
verbose: false,
displayStrength: true,
displaySpeed: true,
strengthIconSize: 80,
maxGaugeScale: 100,
},
}
]
You can also customize the wifi symbol.
modules: [
{
module: 'internet-monitor',
position: 'top_center',
header: 'Internet Monitor',
config:{
type: '',
maxTime: 20000,
updateInterval: 0,
verbose: false,
displayStrength: true,
displaySpeed: true,
strengthIconSize: 80,
maxGaugeScale: 100,
wifiSymbol:{
size: 50,
fullColor: '#3afc25',
almostColor: '#ffff0c',
halfColor: '#ff8c00',
noneColor: '#ff1111'
},
},
}
]
Configuration options
The following properties can be configured:
Option | Description |
---|---|
type |
Style of the speed gauges Possible values: 'minimal' Minimalistic Style as shown in the second image above.
Default value: ''
|
maxTime |
Maximum time to test internet speed (Milliseconds) Default value: 20000
|
updateInterval |
Time to rerun/update tests (Milliseconds) Default value: 0
Please note that updateInterval has to be greater than maxTime
|
verbose |
Display additional information about test Possible values: true or false
Default value: false
![]() |
displayStrength |
Display Internet strength Possible values: true or false
Default value: true
![]() |
displaySpeed |
Display download and upload speed gauges Possible values: true or false
Default value: true
![]() |
strengthIconSize |
Size of the strength icon Default value: 80
|
maxGaugeScale |
Maximum gauge value (Mbps) Default value: 100
|
wifiSymbol |
Customize WiFi Symbol (Optional)
|