Coder Social home page Coder Social logo

mmm-network-signal's Introduction

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.

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

Configuration

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

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.

mmm-network-signal's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar dvbit avatar ferferga avatar laventin85 avatar mrfoxie avatar poowaa avatar raspimanu avatar scm04 avatar the-exterminator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mmm-network-signal's Issues

Black screen

Hi,

I installed the module, made npm i in the module directory and git pull && npm install in the MagicMirror directory too.

Unfortunatly, I have a black screen.

do you have any idea about this problem ?

Thanks.

Mirror doesn't load up

My Mirror doesn't load up and if I remove the network-signal module part from config file - the mirror works fine. I have tried what was mentioned in issue #2 but no luck.

I get the following error while following the steps -

Error: Cannot find module 'ping'
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (internal/modules/cjs/loader.js:528:25)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/MagicMirror/modules/MMM-network-signal/node_helper.js:2:14)
at Object. (/home/pi/MagicMirror/modules/MMM-network-signal/node_helper.js:35:3)
at Module._compile (internal/modules/cjs/loader.js:711:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
Whoops! There was an uncaught exception...
{ Error: Cannot find module 'ping'
at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
at Function.Module._load (internal/modules/cjs/loader.js:528:25)
at Module.require (internal/modules/cjs/loader.js:658:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/home/pi/MagicMirror/modules/MMM-network-signal/node_helper.js:2:14)
at Object. (/home/pi/MagicMirror/modules/MMM-network-signal/node_helper.js:35:3)
at Module._compile (internal/modules/cjs/loader.js:711:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:722:10)
at Module.load (internal/modules/cjs/loader.js:620:32) code: 'MODULE_NOT_FOUND' }

Thanks in advance

Colour?

Hi,

Is it possible to get the WiFi signal in colour?

bottom right, bottom left

Hello,
I spend time with this module that I really like and I would like to put the icon on the bottom right or bottom left but it's really don't want do go "on the real corner"
it's always on the top of my RSS feed who is "bottom_bar"
on the other corner I've the module "onScreenMenu" and no issue is on the "real corner"

Consider transparent images and text with no predefined background

The images representing the network speed (and maybe the optional text label "showMessage" but I'm not using that so I don't know) have a hardcoded black background to them, consider not having any background at all, to fit better with those who may be using for example an image slideshow or even just a different color background. Attached is an example of what I mean - I have the signal in the top_right and the background is from a photo slideshow
noMessage

Icon Size

Hi there;

I wanna decrease icon size smaller than original size. How can i do that. Also I want to change module position bottom_left or bottom_right.

Actually I wanna put that module bottom edge. Please help me about fix this issue

top_right icon/status overlap

In top_right region the status message overlaps with the icon instead of being next to the icon. Nothing else is in that region. The region in question should have what space it needs – the only other thing on top is the clock in the top_left.

Module breaks config

After installing module and setting up in config.js, module doesnt work and breaks the config

Module always shows the same animation

Hey,

The module always shows the last animation as you can see in icons.gif.
As soon as I enter a server into the configuration, the whole config is no longer compatible.

My Config:

    {
        module: "MMM-network-signal",
        position: "top_right",
        config: {
        // Optional config options
        updateInterval: 5000,
        animationSpeed: 200,
        showMessage: true,
    }
    },

Can anyone help me?

Cheers

Documentation

Finding the instructions ambiguous.

Where do the listed options go? In the config? Application does not appear to run with null values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.