Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. amanzimdwini
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 19
    • Posts 102
    • Best 18
    • Groups 0

    amanzimdwini

    @amanzimdwini

    21
    Reputation
    3045
    Profile views
    102
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    amanzimdwini Follow

    Best posts made by amanzimdwini

    • RE: Wunderlist acess token

      @shgmongohh

      Sebastian -
      I used https://a.wunderlist.com/api/v2/lists for the APP URL
      I used http://localhost:8080 for the Auth Callback

      it worked - for a while (I changed my password and just requested a new key)

      Give it a try & let me know

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: MMM-Remote-Control on LINUX box (NOT RPi)

      @Jopyth
      It would probably help if I installed it into MODULES instead of into the ROOT directory
      (as a matter of fact, it helped a LOT!)

      DUH. Sorry to have wasted your time. My bad 🎱

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.

      @Jakllo
      I initially had that problem too - you need to be logged in as PI - not root.
      I’d suggest starting all over: it really wont take that long. Follow the
      tutorial @strawberry-3-141 mentioned (https://forum.magicmirror.builders/topic/236/complete-setup-tutorial) to the letter. It was written by @KirAsh4 & made all of my problem go away. I have now done it 4 times, getting it done in less than an hour from unpacking to having it all run!

      My raspberry all of a sudden even connected via WiFi, and I am expecting my hair to grow back any day now.

      I’m telling you - pure magic, these guys.

      All the best

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: MMM-ip

      @strawberry-3.141

      PERFECT

      posted in System
      A
      amanzimdwini
    • RE: Core installation fails

      THIS is the setup that worked GREAT for me:
      https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

      Really - even someone like me could not mess it up.

      posted in Bug Hunt
      A
      amanzimdwini
    • Alternating Modules to save on real estate

      There are now so many wonderful modules out there that my MM is a bit crowded 🙂

      So the logical question arises: might it be possible to alternate two modules in one location?

      I’m thinking along the lines of
      postion: top_left
      {module 1 = weather
      module2 = tasklist
      switchtime = 120 seconds}
      and every two minutes weather and tasklist would alternate.

      Thanks,
      Karl

      posted in Requests
      A
      amanzimdwini
    • RE: Error during installation ("

      @BlackPearl

      Happend to me too (and to others: see here for commiseration)
      https://forum.magicmirror.builders/topic/259/installing-mm2

      THIS is the setup that worked GREAT for me:
      https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

      All the best!

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: Display modules in a carousel

      @PointPubMedia
      I like @barnabycolby 's version (ie exempting all but the ones you want to rotate) a lot.
      But here is something KirAsh4 made for me a while ago
      https://forum.magicmirror.builders/topic/373/alternating-modules-to-save-on-real-estate/3
      that will do the job too - and it will let you learn a bit java along the way

      Enjoy

      posted in System
      A
      amanzimdwini
    • RE: Alternating Modules to save on real estate

      @KirAsh4
      Thanks! I messed around a bit with it - here is what I came up with. (and yes, 99.999% is yours!)
      Still, here it is for anyone else who wants to play with it. But ALL credit goes to @KirAsh4

      This works best for me for MMM-Wunderground and MMM-Wunderlist - which I keep at top-right.
      a) my config.js extract:

                      {
                              module: 'my_swap',      // as supplied by KirAsh4
                              config: {
                                      showsecs: 30,   // seconds each module is shown (default =30)
                                                      // 30 is a "relaxed" speed
                                      fadems: 4000,   // fade time in ms (default = 4000)
                                                      //  4000 is also very relaxed - no coffee yet.
                                      modA: 'MMM-WunderGround',  // both modules need to be listed NEXT
                                      modB: 'MMM-Wunderlist'     // they should be of similar size, 
                                                                 // and in the same location.
                                                                 // These two are _prefect_ 
                                      }
                      },
                      {
                              module: 'MMM-WunderGround',
                              position: 'top_right',
                              config: {
                                      apikey: '****',
                                      pws: '****',
                                      lang: 'EN',
                                      fctext: '1',
                                      fcdaycount: "5",
                                      fcdaystart: "0",
                                      hourly: '1',
                                      hourlyinterval: "3",
                                      hourlycount: "1",
                                      alerttime: 10000,
                                      alerttruncatestring: "english:",
                                      fade: true
                              }
                      },
                      {
                              module: 'MMM-Wunderlist',
                              position: 'top_right', 
                              config: {
                                      accessToken: '****',
                                      clientID: '****',
                                      lists: [
                                              'MagicMirror'
                                              ],
                                      interval: 60,
                                      fadePoint: 0.9,
                                      fade: true
                                      }
                      },
      

      Then the file my_swap.js ( in \modules\my_swap) needs to look like this:

      Module.register("my_swap",{
      
        // Default module config.
        defaults: {
              modA: "MMM-NonExistA",  // if we dont know the EXACT NAME, we don't do anything!
              modB: "MMM-NonExistB",  //    ="=
              showsecs: 30,           //  as in compliments
              fadems: 4000            //    ="=
        },
      
        // Define required scripts.
        getScripts: function() {
          return ["moment.js"];
        },
      
        start: function() {
          Log.log("Starting module: " + this.name);
          this.DOMloaded = 0;
          this.isHidden = 0;
      
          var self = this;
          setInterval(function() {
            self.swapModules();
          }, 1000);
        },
      
        notificationReceived: function(notification, payload, sender) {
          if (notification === 'DOM_OBJECTS_CREATED') {
            this.DOMloaded = 1;
          }
        },
      
        // swapModules.
        swapModules: function() {
      
          var now = moment();
          var self = this;
      
              var mod1 = this.config.modA     // yank from config file
              var mod2 = this.config.modB
              var fadems = this.config.fadems
              var showsecs = this.config.showsecs
      
          if (!(now.seconds() % showsecs)) { 
            if (this.DOMloaded) {
              if (self.isHidden) {
                MM.getModules().exceptModule(this).enumerate(function(module) {
                  if (module.name === mod1) {
                    module.hide(fadems, function() {
                      MM.getModules().exceptModule(this).enumerate(function(module) {
                        if (module.name === mod2) {
                          module.show(fadems, function() {
                          });
                        }
                      });
                    });
                  }
                });
                self.isHidden = 0;
              } else {
                MM.getModules().exceptModule(this).enumerate(function(module) {
                  if (module.name === mod2) {
                    module.hide(fadems, function() {
                      MM.getModules().exceptModule(this).enumerate(function(module) {
                        if (module.name === mod1) {
                          module.show(fadems, function() {
                          });
                        }
                      });
                    });
                  }
                });
                self.isHidden = 1;
              }
            }
          }
        }
      });
      

      Works great for me! Thanks again for the clean code to play with. You should submit it as an official module.

      posted in Requests
      A
      amanzimdwini
    • RE: Building mirror without programing

      @cowboysdude - DUH. Sorry - good point!

      posted in Troubleshooting
      A
      amanzimdwini

    Latest posts made by amanzimdwini

    • RE: MMM-GoogleDriveSlideShow

      @clegallic - I am on a Rasp3A, but fully patched (npm 6.14.8, node 10.23.0, nodejs 10.23.0).
      As su, I fail npm run token:generate - with a

      Type Error: cannot read property '0' of undefined...
      

      (there is more). Upon inspection MY credentials.json file starts like

      {"web":{"client_id
      

      while your example begins

      {"installed":{"client_id
      

      (the rest looks similar to your example) Any idea what I did wrong? If I just replace my “web” with “installed”, I still fail.
      Thanks,
      K

      posted in Entertainment
      A
      amanzimdwini
    • RE: Module to display information from a text file on a locally shared folder

      @TomBrown
      Easy - use the module MMM-GoogleSheets
      and edit your own Google Sheet.
      That’s exactly how I “communicate” with my mirror from anywhere

      posted in Requests
      A
      amanzimdwini
    • RE: Cannot find module 'module-alias/register'

      @sdetweil THX! Will do.

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: Cannot find module 'module-alias/register'

      @sdetweil
      wait - wasnt’ that the newest?
      Sorry - working on something else right now, but please send latest and best installer link

      THANKS FOR THE HELP,
      Karl

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: Cannot find module 'module-alias/register'

      @sdetweil
      I did (read my way through all the posts)

      HOWEVER,
      https://forum.magicmirror.builders/topic/10859/new-update-upgrade-script-ready-for-testing/2
      told me to run

      bash -c  "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/raspberry.sh)"
      

      and that made me a new installation that did work.

      Sometimes you have to sledgehammer things, I guess.

      Thanks for offering to help,
      karl

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: Cannot find module 'module-alias/register'

      Hmm - same thing for me. Too much time on my hands, so I updated. And now I get

      A JavaScript error occurred in the main process
      Uncaught Exception:
      Error: Cannot find module 'module-alias/register'
          at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/elect                                                                                                                                                             ron/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.<anonymous> (/home/pi/MagicMirror/js/app.js:15:1)
          at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:283: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)
      
      

      help?

      Thanks,
      Karl

      posted in Troubleshooting
      A
      amanzimdwini
    • MMM-Chart

      Got this module to run without problems. BUT:
      I’d like to display 3 lines using the SAME y range; currently all three data are scaled and display their own y-axis.
      In other words, if, say, y1 in[0,10] and y2 in[20,50] and y3 in[20,30],
      I want y_min=0 and y_max=50. And only ONE lable on the y axis. (in any color i want)

      Is that possible?

      posted in Troubleshooting
      A
      amanzimdwini
    • RE: COUNTING unread emails

      @lavolp3 THAT made my head hurt. Schoene Idee, aber ich kann kein whatever-that-language is. I’d be willing to learn, though, so I’ll start reading up on modules.

      K

      posted in Utilities
      A
      amanzimdwini
    • COUNTING unread emails

      Hi all - wondering if anyone knows of a fast way to just display the number of UNREAD emails for various accounts? EG:
      joe@public.com 2 unread emails
      suzieQ@person.net 3 unread emails
      (I wear too many hats, and this would be a nice thing to see in the morning)

      Thanks,
      K

      posted in Utilities
      A
      amanzimdwini
    • Updating problem: "commit your changes or stash them before you can merge" ???

      SHOULD have been easy (and yes, I am patched / updated / upgraded / have node v10 etc)

      pi@bathMM2:~/MagicMirror $ sudo git pull && npm install
      error: Your local changes to the following files would be overwritten by merge:
              .gitignore
              CHANGELOG.md
              Gruntfile.js
              README.md
              js/main.js
              js/module.js
              modules/default/alert/alert.js
              modules/default/calendar/README.md
              modules/default/calendar/calendar.js
              modules/default/calendar/calendarfetcher.js
              modules/default/compliments/README.md
              modules/default/compliments/compliments.js
              modules/default/currentweather/currentweather.js
              modules/default/newsfeed/README.md
              modules/default/newsfeed/fetcher.js
              modules/default/newsfeed/newsfeed.js
              modules/default/newsfeed/node_helper.js
              modules/default/weatherforecast/README.md
              modules/default/weatherforecast/weatherforecast.js
              package-lock.json
              package.json
              translations/de.json
              translations/en.json
              translations/it.json
              translations/nl.json
              translations/translations.js
              vendor/package-lock.json
      Please, commit your changes or stash them before you can merge.
      error: The following untracked working tree files would be overwritten by merge:
              translations/pt-br.json
              translations/zh-cn.json
              translations/zh-tw.json
      Please move or remove them before you can merge.
      Aborting
      

      Interesting - but (a) what does it mean and (b) how do I proceed?

      Thanks,
      Karl

      posted in Troubleshooting
      A
      amanzimdwini