• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Internet Monitor

Scheduled Pinned Locked Moved Utilities
108 Posts 27 Posters 114.8k Views 30 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    bhepler Module Developer
    last edited by Apr 21, 2019, 5:48 PM

    Well. That was frustrating. I’ll spare you the details, but I modified the module and submitted a PR. Hopefully @ronny3050 will fix my amateurish code and accept it.

    Anyhow, if you want to try it before then, you can clone from my fork of ronny3050’s module. Remember to run npm install.

    M 1 Reply Last reply Apr 30, 2019, 4:01 PM Reply Quote 0
    • N Offline
      nickthebeer
      last edited by Apr 22, 2019, 11:04 AM

      Hi, only just discovered this module and it seems like a great idea however I cannot get the wifi symbol to appear.

      Here’s my config for the module:

      module: “internet-monitor”,
      position: “bottom_center”,
      header: “Internet Monitor”,
      config: {
      type: " ",
      maxTime: “20000”,
      updateInterval: “0”,
      verbose: “false”,
      displayStrength: “true”,
      displaySpeed: “false”,
      strengthIconSize: “80”,
      maxGaugeScale: “100”,
      wifiSymbol: {
      size: “50”,
      fullColor: “3afc25”,
      almostColour: “#ffff0c”,
      halfColor: “#ff8c00”,
      noneColor: “#ff1111”
      },
      }
      }

      Am I being thick and have missed something?

      Additionally is the wifi symbol a measure of internet speed on the pi or wifi strength to my AP?

      B 1 Reply Last reply Apr 23, 2019, 1:27 AM Reply Quote 0
      • B Offline
        bhepler Module Developer @nickthebeer
        last edited by bhepler Apr 30, 2019, 8:44 PM Apr 23, 2019, 1:27 AM

        @nickthebeer - The WiFi symbol is actually a ping test to the testing server. Ping times > 150ms are marked as no signal, ping < 70ms is full strength.

        Looking at the speedtest documentation, the API returns a “list of closest servers” after testing. Who knows how long that takes, especially if you’re using the original code without my updates. The node_helper.js then pulls the closest server and does a ping test.

        I think this is just going to be a patience thing. Watch the console log for the line: ping. That’s the notification from the node_helper.js that the ping is complete. If the Wifi symbol doesn’t appear after that, come back and we’ll look at it.

        N 1 Reply Last reply May 7, 2019, 9:15 PM Reply Quote 0
        • M Offline
          mg_switch @bhepler
          last edited by mg_switch Apr 30, 2019, 4:03 PM Apr 30, 2019, 4:01 PM

          @bhepler Confirming…100% working as suggested. I have included the local speedtest server to the config (serverID), the verbose now displays this server…and the speed gauges show the expected speeds, DLs and ULs. Nice work.

          1 Reply Last reply Reply Quote 0
          • N Offline
            nickthebeer @bhepler
            last edited by nickthebeer May 7, 2019, 9:19 PM May 7, 2019, 9:15 PM

            @bhepler ok, I’m seriously missing something here…I removed the internet monitor folder and did a git pull from your page (https://github.com/BrianHepler/internet-monitor) and also cleared down my config.js to a simple config but it just doesn’t look right (see attached image) I’m missing the wifi symbol and it defaults to a speedtest server in Norway and not the one specified in the file (12667 in the US).

            Please help, it’s slowly driving me insane.

            /* Magic Mirror Config Sample
             *
             * By Michael Teeuw http://michaelteeuw.nl
             * MIT Licensed.
             *
             * For more information how you can configurate this file
             * See https://github.com/MichMich/MagicMirror#configuration
             *
             */
            
            var config = {
                    address: "localhost", // Address to listen on, can be:
                                          // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                          // - another specific IPv4/6 to listen on a specific interface
                                          // - "", "0.0.0.0", "::" to listen on any interface
                                          // Default, when address config is left out, is "localhost"
                    port: 8080,
                    ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                                                           // or add a specific IPv4 of 192.168.1.5 :
                                                                           // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                                                           // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                                                           // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
            
                    language: "en",
                    timeFormat: 24,
                    units: "metric",
            
            modules: [
                    {
                        module: 'internet-monitor',
                        position: 'top_center',
                        header: 'Internet Monitor',
                        config:{
                            type: '',
                            maxTime: '20000',
                            updateInterval: '0',
                            verbose: 'true',
                            serverID: '12667',
                            displayStrength: 'true',
                            displaySpeed: 'true',
                            strengthIconSize: '80',
                            maxGaugeScale: '100',
                            wifiSymbol:{
                                size: '50',
                                fullColor: '#3afc25',
                                almostColor: '#ffff0c',
                                halfColor: '#ff8c00',
                                noneColor: '#ff1111'
                            },
                        },
                    }
            ]
            };
            
            /*************** DO NOT EDIT THE LINE BELOW ***************/
            if (typeof module !== "undefined") {module.exports = config;}
            

            0_1557263946936_IMG_20190507_215401.jpg

            B 1 Reply Last reply Jul 4, 2019, 6:52 PM Reply Quote 0
            • B Offline
              bhepler Module Developer @nickthebeer
              last edited by bhepler Jul 4, 2019, 6:58 PM Jul 4, 2019, 6:52 PM

              @nickthebeer - Dude I am so sorry! I just saw your post now. I don’t know why I didn’t get a notification. Let’s get you fixed up.

              The problem is in the capitalization of the ServerId variable. You have Id in all caps. It’s uppercase “I” and lowercase “d”. Copy & paste this:

              {
                          module: 'internet-monitor',
                          position: 'top_center',
                          header: 'Internet Monitor',
                          config:{
                              type: '',
                              maxTime: '20000',
                              updateInterval: '0',
                              verbose: 'true',
                              serverId: '12667',
                              displayStrength: 'true',
                              displaySpeed: 'true',
                              strengthIconSize: '80',
                              maxGaugeScale: '100',
                              wifiSymbol:{
                                  size: '50',
                                  fullColor: '#3afc25',
                                  almostColor: '#ffff0c',
                                  halfColor: '#ff8c00',
                                  noneColor: '#ff1111'
                              },
                   }
              },
              
              1 Reply Last reply Reply Quote 0
              • C Offline
                chaseb1357
                last edited by Oct 19, 2019, 5:13 PM

                Yeah I am not able to get the plain WiFi symbol to appear as well. The heading size responds to the new sizing of where a symbol should be, but no symbol appears.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  GoodWillGustin
                  last edited by Dec 9, 2019, 2:59 AM

                  I am also not getting the wifi icon to appear by itself. Hoping for an update/fix as I really love the idea of a wifi status icon on my MM.

                  M 1 Reply Last reply Apr 4, 2020, 8:19 PM Reply Quote 0
                  • M Offline
                    mattx38 @GoodWillGustin
                    last edited by mattx38 Apr 5, 2020, 8:30 PM Apr 4, 2020, 8:19 PM

                    @GoodWillGustin I’d like to have it also.
                    I experience some wifi disconnections and I sometimes notice it couple hours after the issue. So that would be great to have it on the mirror, just like on the graphical UI of the Pi.

                    N 1 Reply Last reply May 5, 2020, 1:28 PM Reply Quote 0
                    • N Offline
                      nickthebeer @mattx38
                      last edited by May 5, 2020, 1:28 PM

                      @mattx38 I have just the Wifi icon on my MM, can you paste your config and I’ll take a look to at it. Also I setup a little script to restart my networking in the event of disconnection which I can share if that’ll help?

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 8 / 11
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy