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: MMM-ModuleScheduler - Module Schedules and Notifications

      @dr4ke616 hide module will call the hide method of the module

      quote from the readme When a module is hidden (using the module.hide() method), the suspend() method will be called. By subclassing this method you can perform tasks like halting the update timers. so you can do the specific behaviour you want in there

      for show module it’s the resume method

      posted in System
      strawberry 3.141S
      strawberry 3.141
    • RE: PIR sensor behind glass?

      it will not work behind glass but @alexyak wrote a module for webcams or pi cams to detect motion, which can be hidden behind glass https://forum.magicmirror.builders/topic/490/motion-detector

      posted in Hardware
      strawberry 3.141S
      strawberry 3.141
    • RE: Old Modules from MM1 transfer to MM2

      it’s a physical button because you can define which pin it’s connected to on gpio in your module config :)

      this one is just a virtual button https://github.com/masters1222/mm-hide-all

      it is definitely possible to adopt those modules but it’s probably less effort to rewrite them from scratch

      posted in Development
      strawberry 3.141S
      strawberry 3.141
    • RE: modifying css to only one instance of a module

      @N3RD every module has a wrapper with an id. This is is the module identifier e.g. module_1_clock. There is no need to modify files. You can then target specifically that instance in CSS.

      #module_1_clock {
          margin: 20px;
      }
      

      you can find out the identifier in the DOM.

      posted in Custom CSS
      strawberry 3.141S
      strawberry 3.141
    • RE: custom.css

      @ianperrin maybe i was quicker, but I learned it out of your contribution to my module ;)

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

      [card:fewieden/MMM-ip]

      Changelog:

      Implemented voice commands to show ip and mac adress, so it can be hidden by default

      alt text

      posted in System
      strawberry 3.141S
      strawberry 3.141
    • RE: Do you use a Power Switch for your MM?

      I ordered this one for a safe shutdow for another project http://mausberrycircuits.com/collections/frontpage/products/shutdown-circuit-use-your-own-switch

      posted in Hardware
      strawberry 3.141S
      strawberry 3.141
    • RE: Parse HTML String

      I think it’s weird that this works, because your looking for attribute class = data_1 but it’s an id

      the css selector for an id is #, and when you put p behind it will look for paragraphs in the element with the id data_1

      when you replace

      $('div[class=data_1]').find('p').each(function (index, element) {
      	data_array.push($(element).text());
      });
      

      with

      data_array.push($('#data_1 p').text());
      

      does it still work? Not sure if it will return the element if just one occurance is found or will return an array anyways

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

      this is how the module looks like for the german league

      0_1466075701079_soccer standings

      posted in Sport
      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: MMM-syslog

      @DirkS http://192.168.2.1:8080/syslog?type=INFO&message=This is a test message you need to replace the ip to yours of the mirror

      @Pbaan93 there is an undocumented config option title for it :)

      posted in System
      strawberry 3.141S
      strawberry 3.141
    • RE: Touchscreen instead of simple monitor behind MagicMirror?

      @binderth there a several voice modules and a gesture module just use the forum search or browse through the showcase

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

      @dinkybluebug245 can’t test this, because I don’t have sonos speakers, but this would be an quick an ugly solution

      $.each(data, function (i, item) {
      	if(item.coordinator.roomName === 'Kitchen'){
      		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, function (j, member) {
      				room += member.roomName + ', ';
      			});
      			room = room.slice(0, -2);
      		}
      		text += this.renderRoom(state, artist, track, cover, room);
      	}
      }.bind(this));
      

      personally i would fork the repository add a config option exclude: [‘LivingRoom’, ‘Bathroom’] etc. to have normal behaviour for all people updating the module without need to change the config to get their familiar result. and then i would check

      $.each(data, (i, item) => {
      	if(this.config.exclude.indexOf(item.coordinator.roomName) === -1){
      

      and then submit a pull request

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

      @MichMich I was thinking about doing this, but couldn’t find a proper free api yet :(

      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: MMM-syslog

      @PointPubMedia It should be possible to manipulate the socket connection to redirect it to your main mirror so it uses the node_helper there. So all slaves would get the data from the main node_helper. Will be busy with other modules the next days, just give me a note when you’re closer to your first slave and then we will see what we can achieve.

      posted in System
      strawberry 3.141S
      strawberry 3.141
    • RE: Memory effect with MM2

      @schlachtkreuzer6 you could create a class and add this to the body where the margin is different than the basic 60px and toggle the class to the body every 6 hours or so

      posted in Hardware
      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: MMM-Soccer - Standings, Schedules and Top Scorers

      i just published an update, which allows to focus_on also TOP, BOTTOM and support for coming features, you’re already able to set this per league

      posted in Sport
      strawberry 3.141S
      strawberry 3.141
    • RE: No Data in Module MMM-Formula1

      @ostfilinchen I’m guessing you have Error: Cannot find module 'ical-generator' in your console, if so then do the following cd ~/MagicMirror/modules/MMM-Formula1 and then type npm install

      posted in Troubleshooting
      strawberry 3.141S
      strawberry 3.141
    • 1 / 1