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

    nigel-daniels

    @nigel-daniels

    24
    Reputation
    3.0k
    Profile views
    74
    Posts
    2
    Followers
    3
    Following
    Joined
    Last Online

    nigel-daniels Unfollow Follow

    Best posts made by nigel-daniels

    • Front door mirror

      0_1475720164276_mirror.jpg
      I always used to have a mirror next to the front door so made this one to provide at a glance information on the way out. I’m not much of a wood worker nor do I have a workshop so I got the frame made up in Michaels. The frame is based on a shadow box frame. The mirror material is a 2-way acrylic from TAP Plastics.

      The first incarnation (V1.0) used an old Pi-A and had some home-brew code running on it. When I heard about the MM2 project I figured it was time to create Mirror 2.0. This version has a Pi-Zero for it’s brains and I ported over some of the modules I had in mirror V1.0.

      The next step (V2.1) will be to put a power point on the wall behind the mirror and use the remaining hole for a PIR so I can blank the screen when no one is in front of it.

      posted in Show your Mirror
      N
      nigel-daniels
    • MMM-3Day-Forecast

      0_1475719235442_forecast.png
      This module is another weather module and is a port of a home-brew mirror project I’d done prior to switching to MM2. I got used to the three day forecast and the details it provided so figured I’d port it across. I hope you like it.

      You can get it here

      posted in Utilities
      N
      nigel-daniels
    • RE: Tutorials or Overview for Module Dev?

      @nbrenn I found it really useful to find a module someone had already written and look at that as an example. I’ve now written a few simple modules that just pull data from web service and display it on screen. Feel free to fork any of them and pull them apart for ideas, the one I just submitted (MMM-AirNow) is pretty basic.

      posted in Development
      N
      nigel-daniels
    • MMM-Fish - Fish of the Day!

      Description:

      This module displays fish of the day :)

      Screenshot:

      0_1477342834424_fish.png

      Download:

      [card:nigel-daniels/MMM-Fish]


      Initial Version

      posted in Fun & Games
      N
      nigel-daniels
    • MMM-Weather-Now

      0_1475718995418_weatherNow.png
      This is yet another weather module, this one is very simple and is designed to be used in conjunction with the module MMM-3Day-Forecast. It’s basically a port of my own home-brew mirror project. I just got used to the display, I hope you like it too.

      You can get it from here

      posted in Utilities
      N
      nigel-daniels
    • MMM-FAA-Delay

      0_1471474410836_airport-delays.png

      This module displays information published by the FAA on delays and weather conditions at some US airports. The full airport list can be seen here.

      This is my first module so please let me know if you find any errors in the code/documentation. It currently covers US airports only, so if you know of other feeds for different regions then let me know and I’ll see if they can be integrated.

      I hope you like this and find it useful!

      posted in Transport
      N
      nigel-daniels
    • RE: London tube status

      @djbenny07 nice idea! Looks like TfL have a fairly comprehensive API, I’ll take a look at it :)

      posted in Requests
      N
      nigel-daniels
    • RE: MMM-3Day-Forecast

      Nice idea! I’m tied up for a few days but I’ll do my best to grab some time and look into getting humidity posted too.

      posted in Utilities
      N
      nigel-daniels
    • RE: MMM-FAA-Delay

      @fwood04 I’ve found some time and reworked the code so that you can provide an array of airport codes and display multiple airports correctly.
      You will need to re-clone the module and use the new format of configuration.

      I hope that helps.

      posted in Transport
      N
      nigel-daniels
    • RE: MMM-3Day-Forecast

      @cowboysdude I’ve spotted an error in my ReadMe that I think has caused the problem here. In my example config I only put key where I entered the API key instead of api_key. Try changing the name of that config variable and things should sort themselves out, I hope that works. Let me know if there are any other problems and I’ll update the Read Me files.

      posted in Utilities
      N
      nigel-daniels

    Latest posts made by nigel-daniels

    • RE: Installing on a Pi Zero

      @sdetweil thanks for the support, that fixed it!

      It looks like npm was broken. I removed node and npm then installed node v10.20.1 and things seem to be working again. Running npm install --only=prod let the install run without getting upset about electron!

      posted in Troubleshooting
      N
      nigel-daniels
    • RE: Installing on a Pi Zero

      @sdetweil looks like the script gets to the same place :(

      Installing dependencies ...
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: electron@^6.1.7 (node_modules/electron):
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Cannot read property 'resolve' of undefined
      
      npm ERR! Cannot read property 'resolve' of undefined
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2020-04-13T15_17_35_327Z-debug.log
      Unable to install dependencies! 
      

      The config.json only mentions electron in the optional dependancies so I don’t know where the resolve comes from. It looks to the the property of some var that is not being set.

      posted in Troubleshooting
      N
      nigel-daniels
    • RE: Installing on a Pi Zero

      @sdetweil hi, I have everything else set up and don’t really want to change thing, I had configured the PiZero some time ago. I was just reinstalling MM2. I decided I had left it so long since the last up date I just backed up my modules + config and have performed a reinstall. As far as I can tell the script is attempting a full config of the pi0?

      posted in Troubleshooting
      N
      nigel-daniels
    • RE: Installing on a Pi Zero

      I just attempted to install 2.11.0 on a Pi0 W, I got the following error running npm install:

      npm install
      npm ERR! Cannot read property 'resolve' of undefined
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/pi/.npm/_logs/2020-04-12T20_08_37_082Z-debug.log
      

      The log contains:

      0 info it worked if it ends with ok
      1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
      2 info using npm@6.14.4
      3 info using node@v10.20.0
      4 verbose npm-session ed148b8dcfcaa591
      5 silly install runPreinstallTopLevelLifecycles
      6 silly preinstall magicmirror@2.11.0
      7 info lifecycle magicmirror@2.11.0~preinstall: magicmirror@2.11.0
      8 silly install loadCurrentTree
      9 silly install readLocalPackageData
      10 timing stage:loadCurrentTree Completed in 897ms
      11 silly install loadIdealTree
      12 silly install cloneCurrentTreeToIdealTree
      13 timing stage:loadIdealTree:cloneCurrentTree Completed in 10ms
      14 silly install loadShrinkwrap
      15 timing stage:loadIdealTree:loadShrinkwrap Completed in 42390ms
      16 silly install loadAllDepsIntoIdealTree
      17 silly fetchPackageMetaData error for grunt@latest Cannot read property 'resol
      ve' of undefined
      18 silly fetchPackageMetaData error for grunt-eslint@latest Cannot read property
       'resolve' of undefined
      19 silly fetchPackageMetaData error for grunt-jsonlint@latest Cannot read property 'resolve' of undefined
      20 silly fetchPackageMetaData error for grunt-markdownlint@latest Cannot read property 'resolve' of undefined
      21 silly fetchPackageMetaData error for grunt-stylelint@latest Cannot read property 'resolve' of undefined
      22 silly fetchPackageMetaData error for grunt-yamllint@latest Cannot read property 'resolve' of undefined
      23 silly fetchPackageMetaData error for stylelint@latest Cannot read property 'resolve' of undefined
      24 silly fetchPackageMetaData error for stylelint-config-standard@latest Cannot read property 'resolve' of undefined
      25 silly fetchPackageMetaData error for time-grunt@latest Cannot read property 'resolve' of undefined
      26 silly fetchPackageMetaData error for feedme@latest Cannot read property 'resolve' of undefined
      27 silly fetchPackageMetaData error for iconv-lite@latest Cannot read property 'resolve' of undefined
      28 silly fetchPackageMetaData error for moment@latest Cannot read property 'resolve' of undefined
      29 silly fetchPackageMetaData error for valid-url@latest Cannot read property 'resolve' of undefined
      30 silly fetchPackageMetaData error for feedme@latest Cannot read property 'resolve' of undefined
      31 silly fetchPackageMetaData error for iconv-lite@latest Cannot read property 'resolve' of undefined
      32 silly fetchPackageMetaData error for moment@latest Cannot read property 'resolve' of undefined
      33 silly fetchPackageMetaData error for valid-url@latest Cannot read property 'resolve' of undefined
      34 timing stage:rollbackFailedOptional Completed in 6ms
      35 timing stage:runTopLevelLifecycles Completed in 47409ms
      36 silly saveTree magicmirror@2.11.0
      36 silly saveTree ├─┬ chai-as-promised@7.1.1
      36 silly saveTree │ └── check-error@1.0.2
      
      ...
      
      36 silly saveTree     │ └── querystring@0.2.0
      36 silly saveTree     ├── wdio-dot-reporter@0.0.10
      36 silly saveTree     └── wgxpath@1.0.0
      37 verbose stack TypeError: Cannot read property 'resolve' of undefined
      37 verbose stack     at regFetch (/usr/local/lib/node_modules/npm/node_modules/n
      pm-registry-fetch/index.js:88:23)
      37 verbose stack     at fetchPackument (/usr/local/lib/node_modules/npm/node_mod
      ules/pacote/lib/fetchers/registry/packument.js:42:10)
      37 verbose stack     at packument (/usr/local/lib/node_modules/npm/node_modules/
      pacote/lib/fetchers/registry/packument.js:20:10)
      37 verbose stack     at getManifest (/usr/local/lib/node_modules/npm/node_module
      s/pacote/lib/fetchers/registry/manifest.js:22:10)
      37 verbose stack     at manifest (/usr/local/lib/node_modules/npm/node_modules/p
      acote/lib/fetchers/registry/manifest.js:13:10)
      37 verbose stack     at Object.manifest (/usr/local/lib/node_modules/npm/node_mo
      dules/pacote/lib/fetchers/registry/index.js:17:12)
      37 verbose stack     at Object.Fetcher#manifest [as manifest] (/usr/local/lib/no
      de_modules/npm/node_modules/genfun/lib/genfun.js:15:38)
      37 verbose stack     at manifest (/usr/local/lib/node_modules/npm/node_modules/p
      acote/lib/fetch.js:23:18)
      37 verbose stack     at pinflight (/usr/local/lib/node_modules/npm/node_modules/pacote/manifest.js:24:12)
      37 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/promiseinflight/inflight.js:29:24
      37 verbose stack     at Promise._execute (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/debuggability.js:313:9)
      37 verbose stack     at Promise._resolveFromExecutor (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:488:18)
      37 verbose stack     at new Promise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:79:10)
      37 verbose stack     at _inflight (/usr/local/lib/node_modules/npm/node_modules/promise-inflight/inflight.js:28:25)
      37 verbose stack     at /usr/local/lib/node_modules/npm/node_modules/promise-inflight/inflight.js:22:14
      37 verbose stack     at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
      38 verbose cwd /home/pi/MagicMirror
      39 verbose Linux 4.9.35+
      40 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
      41 verbose node v10.20.0
      42 verbose npm  v6.14.4
      43 error Cannot read property 'resolve' of undefined
      44 verbose exit [ 1, true ]
      

      Any idea where resolve should be set and what is missing?

      posted in Troubleshooting
      N
      nigel-daniels
    • RE: MMM-3Day-Forecast

      Hi, I have not been able to work on these modules as a full time role has limited my time considerably. To make tweaks I recommend forking the repo in git hub.

      posted in Utilities
      N
      nigel-daniels
    • RE: MMM-VTA-Live

      Just in case there are any super early adopters, I added a fix to stop trains from disappearing if I did not get back a response from a particular vehicle. The times are now cached if this happens so the old time is used until I get an update or they become outdated by the response time.

      posted in Transport
      N
      nigel-daniels
    • MMM-VTA-Live

      VTA Live.
      This module shows arrival times for a VTA light rail stop on the Santa Clara Valley Transportation Authority system. Useful if you’re in the South Bay and running for a train :)

      You can get this module from HERE! Enjoy.

      posted in Transport
      N
      nigel-daniels
    • RE: MMM-FAA-Delay

      @twosquirrels ok I have made the changes, so try an update. The blanks should now display the headline status. Sadly the FAA’s documentation is somewhat opaque and does not seem to totally match what I actually get from the API so there may be one or two cases where the word ‘undefined’ crops up rather than a time for an actual delay. If you see that just drop me a line and let me know what the status and text was and I’ll try and figure out what’s going on.

      posted in Transport
      N
      nigel-daniels
    • RE: MMM-FAA-Delay

      @twosquirrels sorry for the delay in getting to this, I just got back from some travels. It looks like the FAA have made more changes than I realized. Next to the airports code (in the red boxes) should be a short status indicator, e.g. ‘Ok’, ‘Delays’, ‘Closed’, etc. Then in the line below (which is showing) should be a brief line of detail to give a bit more detail on the status, especially if there is a delay.

      posted in Transport
      N
      nigel-daniels
    • RE: MMM-Weather-Now

      I have just migrated this to the WeatherBit API as Wunderground are cancelling the free service 😞 This forces an update of the module and a new config! I’ve updated the read me in GitHub, so please take a look.

      posted in Utilities
      N
      nigel-daniels