My first attempt at writing something in node.js
Gets your google tasks and displays them on the mirror.
@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.
@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:
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.
@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. 126.96.36.199: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
npm. This will throw probably more errors which could help.
If you have static IP addresses you could try my fork here
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.