MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. BenNewsome
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 7
    • Groups 0

    BenNewsome

    @BenNewsome

    1
    Reputation
    785
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    BenNewsome Unfollow Follow

    Best posts made by BenNewsome

    • MMM-gtasks - Google tasks for your mirror

      Description:

      My first attempt at writing something in node.js

      Gets your google tasks and displays them on the mirror.

      Download:

      [card:BenNewsome/MMM-gtasks]

      Version 1

      posted in Productivity tasks todo
      B
      BenNewsome

    Latest posts made by BenNewsome

    • RE: MMM-NetworkScanner

      @pugsly I think I have managed to replicate your error.

      Could you run the following command.

      (cd /home/pi/MagicMirror/modules/MMM-NetworkScanner && npm install)

      npm install needs running from the module directory so that it downloads the npm ping module. When I delete the ping module I get the error you do, and when I run the command above the error goes away.

      posted in Utilities
      B
      BenNewsome
    • RE: MMM-NetworkScanner

      @pugsly Hi pugsly,
      sudo is for arp-scan which is the MAC address checker as this requires sudo to be called.

      Ping is the one I added which just calls the ping command from node.

      Could you try editing the file: /home/pi/MagicMirror/modules/MMM-NetworkScanner/node_helper.js

      On line 10 it says
      const ping = require('ping')

      Could you replace it with:
      const ping = require("ping");

      (Change the speach marks and add a semicolon.)

      I have no idea if this is the reason as it works fine on my system, but it is my current best guess.

      posted in Utilities
      B
      BenNewsome
    • RE: MMM-NetworkScanner

      @pugsly Sorry thats from my update. Have you done a NPM install inside the module as it has a new dependency?

      Hopefully this will fix the problem.

      posted in Utilities
      B
      BenNewsome
    • RE: MMM-NetworkScanner

      @ianperrin No problem, thanks for the great module(s). I hope I accidentally didn’t break anything as I’m pretty new to Node.

      posted in Utilities
      B
      BenNewsome
    • RE: MMM-NetworkScanner

      @outjet I have a couple of thoughts. It looks like your update interval is very short. If you increased this to at least 10 seconds it might do something. It takes my Pi3 ~3 seconds to do the arp-scan command so if you are running a Pi2 it might be taking too long.

      If that does nothing then I would suggest visiting your pi from a different machine. If you open chrome and go to your mirror ip port 8080 e.g. 19.168.3.14:8080 and then hit f12 the developer tools should show up. If you then go to the Console tab and reload the page, some errors should show up, and if you paste them here it might be useful.

      If no errors show up then try running the module with the command node serveronly instead of pm2 or npm. This will throw probably more errors which could help.

      OR

      If you have static IP addresses you could try my fork here

      posted in Utilities
      B
      BenNewsome
    • RE: MMM-NetworkScanner

      Feature that turns off the mirror when you leave the house.

      I was looking at this module and your other module MMM-ModuleScheduler and was looking for something to turn my monitor off when I am not home.
      Your other module already lets me turn it off the display while I am asleep when combined with MMM-Remote-Control, and so I looked into doing the same for when I am out of the house (When my phone is not connected to my LAN).

      With a little help looking at MMM-ping I also managed to integrate IP address lockups and hostnames, so that if you have the option of IP addresses you can use them, and if not you can use MAC addresses, as I found IP addresses were more stable.

      I am just about to send a pull request, but for now I have the forked version here. I am very new to node.js still and so any feedback from anyone willing to try this out would be appreciated.

      posted in Utilities
      B
      BenNewsome
    • MMM-gtasks - Google tasks for your mirror

      Description:

      My first attempt at writing something in node.js

      Gets your google tasks and displays them on the mirror.

      Download:

      [card:BenNewsome/MMM-gtasks]

      Version 1

      posted in Productivity tasks todo
      B
      BenNewsome