MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. strawberry 3.141
    3. Posts
    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: MMM-Soccer - Standings, Schedules and Top Scorers

      @Mitchfarino you provided a wrong teamname, it should be in your case 'Liverpool FC' and I suggest to remove the api_key and leagues line from config, because that are the default values anyways and therefore are not needed in the config

      {
          module: 'MMM-soccer',
          position: 'bottom_left',
          config: {
              show: 'ENGLAND',
              focus_on: {
                  'ENGLAND': 'Liverpool FC'
              },
              max_teams: 10
          }
      },
      
      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: cant get magicmirror to show up on screen

      i did it like this on several pi’s now and never had issues https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Handle dependencies

      @alexyak e.g. [ card : alexyak/motiondetector ] without spaces

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Handle dependencies

      @alexyak I have something like this as well, I try to implement mine to work without the other module and will add a config option that will add it as a feature. If this is not possible, I put a notice in the install guide

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      can you please upload your txt file i have no clue how it looks like, so we can help you out with that

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      are these all in seperate lines?

      if so then you could check in a for loop if there is the word humidity or temperature otherwise ignore the line

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      i think this depends on the content of the file

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      @yawns electron is running in ~/MagicMirror, so putting the file in the modules directory and do ./Test-temp.txt won’t work. The code is generally working I tested it on my rpi

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: .txt file include

      @dominic can you remove the weatherforecast from the config when its causing issues, so we can troubleshoot this module?

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Soccer - Standings, Schedules and Top Scorers

      @McSorley there is no cup support yet, the data for cups look different than for leagues

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: MMM-Rest

      @Tuxdiver you can open the console in electron with cmd+shift+I or start the mirror with npm start dev, then the console will be open from start

      posted in Utilities
      strawberry 3.141S
      strawberry 3.141
    • RE: How to receive push notifications from another server?

      @paphko said in How to receive push notifications from another server?:

      On the openhab side, I can easily add some arbitrary java code, for example to perform some http requests or to open and communicate via a socket connection to a specific IP.

      in a module i forked from paviro, there is a functionality where you can make http requests to the module https://github.com/fewieden/MMM-syslog/blob/master/node_helper.js#L16

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Failed at the magicmirror@2.0.0 start script 'electron js/electron.js'.

      that must be a pretty old turorial when your running node on version 4

      i would recommend to take this tutorial https://forum.magicmirror.builders/topic/236/complete-setup-tutorial

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • RE: Limit Sonos module to only show a specific speaker

      @dinkybluebug245 sry then you have to figure it out on your own or ask some person with sonos speakers for help

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Limit Sonos module to only show a specific speaker

      a lot of people are doing this by saving the scope into a variable like

      var self = this;
      setTimeout(function(){
              doSomething();
              self.sendSocketNotification('NOTIFICATION');
      }, 1000);
      

      but I like this cleaner way

      setTimeout(() => {
              doSomething();
              this.sendSocketNotification('NOTIFICATION');
      }, 1000);
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Limit Sonos module to only show a specific speaker

      @dinkybluebug245 then you will change the scope of this, that’s why I prefer to use big arrow functions () => {} is the same as function(){} but you keep the scope

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Limit Sonos module to only show a specific speaker

      @dinkybluebug245 can you give this a try?

      $.each(data, (i, item) => {
          if(this.config.exclude.indexOf(item.coordinator.roomName) === -1 || item.members.length > 1){
              var room = item.coordinator.roomName;
              var state = item.coordinator.state.zoneState;
              var artist = item.coordinator.state.currentTrack.artist;
              var track = item.coordinator.state.currentTrack.title;
              var cover = item.coordinator.state.currentTrack.absoluteAlbumArtURI;
              var streamInfo = item.coordinator.state.currentTrack.streamInfo;
              if(item.members.length > 1){
                  room = '';
                  $.each(item.members, (j, member) => {
                      if(this.config.exclude.indexOf(member.roomName) === -1){
                          room += member.roomName + ', ';
                      }
                  });
                  room = room.slice(0, -2);
              }
              text += this.renderRoom(state, artist, track, cover, room);
          }
      }.bind(this));
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Limit Sonos module to only show a specific speaker

      @dinkybluebug245 is this what you mean by nested rooms?

      $.each(item.members, function (j, member) {
      					room += member.roomName + ', ';
      });
      
      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Limit Sonos module to only show a specific speaker

      @dinkybluebug245 you forgot to put the mentioned line in the defaults object, this will cause a problem for those who want all rooms displayed, if you add this line and make a commit your pull request will get updated automatically, and i suggest to put also an information aubout this option into the readme file

      Edit to your new post, as i said i have no clue about the sonos system and can’t test it I think you will find a way to get around this issue

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: Modules size

      To close up this topic the solution he needed was

      .MMM-swisstransport {
          width: 400px;
      }
      
      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • 1
    • 2
    • 76
    • 77
    • 78
    • 79
    • 80
    • 84
    • 85
    • 78 / 85