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

    Posts

    Recent Best Controversial
    • RE: What do you need for trying to make a module?

      @Fonfon also take a look here https://github.com/roramirez/MagicMirror-Module-Template

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: setInterval for multiple API requests

      @Privacywonk i would do it like this, copy your schedule update to node helper

      • send a socket notification from client to nodehelper in the start method to initialise the socket connection (e.g. the config)
        this.sendSocketNotification("CONFIG", this.config);
      • in the nodehelper when you receive the notification, run schedule update
      socketNotificationReceived: function(notification, payload) {
        if (notification === 'CONFIG') {
          this.config = payload;
          if (this.started !== true) {
            this.started = true;
            this.scheduleUpdate();            
          }
        }
      }
      

      the started flag makes sure it gets called only once, even if you’re connecting multiple clients.

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Fuel

      @seansation this is currently not supported, feel free to send a pr.

      posted in Transport
      strawberry 3.141S
      strawberry 3.141
    • RE: 7" touchscreen as a alarm clock?

      @wizz you can shrink them with css

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-voice for Brits!

      @joe84maiden be aware, that when you add more modules for voice recognition, the module will create a new dictionairy automatically. So all your adjustments would be lost if you don’t backup them somewhere ;)

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Fuel

      Alternative provider for the USA and also supporting Canada and Tasmania (Australia) now.

      2.4.0

      Added

      • Provider: gasbuddy
      • Config option: fade
      • Config option: showAddressCity

      Changed

      • Migrated provider nsw from API v1 to v2 in order to support new region Tasmania (Australia)
      • Dependency update

      Link to module https://github.com/fewieden/MMM-Fuel

      posted in Transport
      strawberry 3.141S
      strawberry 3.141
    • RE: 7" touchscreen as a alarm clock?

      @wizz you could try

      body {
        transform: scale(0.5);
      }
      

      which should make everything half the original size

      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • RE: Help choosing more than one item from an array

      @mykle1 what you describe above is actually not an array, it’s an object (hash). Arrays are always defined with [] not {}.

      Now to your problem. you can create an array from your config value and save it in a variable e.g. var lifeForms = this.config.lifeForm.split(',');. it would look like this ['Cats', 'Bats', 'Bears']. Then you can loop over it to get the ids and save it into another variable

      var lifeFormIds =[];
      for (let lifeForm of lifeForms) {
        if (this.config.lifeFormArray[lifeForm]) {
          lifeFormIds.push(this.config.lifeFormArray[lifeForm]);
        }
      }
      

      To create the id list you just join it comma seoerated like lifeFormIds.join(',');

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: (2.1.0, API) Revising the Show/Hide mechanism

      @Jopyth one way would be hide a module with the scheduler and show it again with the remote control or voice or something else

      posted in Upcoming Features
      strawberry 3.141S
      strawberry 3.141
    • RE: 7" touchscreen as a Non-alarm clock?

      @carltonb try that one

      {
        module: 'clock',
        position: 'top_left',
        config: {
          dateFormat: 'dddd<br />MMMM<br />D<br />YYYY'
        }
      }
      
      posted in General Discussion
      strawberry 3.141S
      strawberry 3.141
    • 1 / 1