项目作者: PoOwAa

项目描述 :
MagicMirror2 solid network status
高级语言: JavaScript
项目地址: git://github.com/PoOwAa/MMM-network-signal.git
创建时间: 2018-12-28T18:03:53Z
项目社区:https://github.com/PoOwAa/MMM-network-signal

开源协议:MIT License

下载


MMM-network-signal

Display a solid wifi logo as network signal for MagicMirror2

Signal icons: none, weak, normal, strong, loading

Dependencies

Installation

Open up your terminal and paste the following code into it.

  1. cd ~/MagicMirror/modules/
  2. git clone https://github.com/PoOwAa/MMM-network-signal.git
  3. cd MMM-network-signal
  4. npm i

Configuration

  • Now use your editor nano or vim to edit the following file
    1. nano ~/MagicMirror/config/config.js # change nano to your favorite editor
  • Paste the following code into modules section
  1. {
  2. module: "MMM-network-signal",
  3. position: "bottom_right",
  4. config: {
  5. // Configuration of the module goes here
  6. }
  7. }

Configuration Options

Option Default Description
updateInterval 5000 Time in ms between connection tests
maxTimeout 1000 Maximum timeout in ms for every pings
animationSpeed 250 Icon change animation time in ms
initialLoadDelay 3000 Delay in ms for first ping
server 8.8.8.8 Pingable server IP address
thresholds { strong: 50, medium: 150, weak: 500 } Tresholds for icons (ping answer in ms)
showMessage true Shows status messages depending on how good or bad is the connection
flexDirection row Sets the direction the module is displayed; row displays the row in left-to-right mode (default), row-reverse displays the row in right-to-left mode.
scale 0.45 How much to scale the ping icon. Must be greater than 0.