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

    Posts

    Recent Best Controversial
    • RE: MM-Navbar - Navigation Bar for Touchscreens to hide/show modules

      @shashank

      Okay I think I know what you’re looking for. I’m not 100% sure how to make the change, but someone else here may be able to help.

      notificationReceived: function(notification, payload, sender){
      	if (notification === 'DOM_OBJECTS_CREATED'){
      		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
      			module.hide(1000, function(){
      			});
      		});
      	}
      },
      

      Is there a simple way to include the ‘calendar’ and ‘weather’ modules in the exceptWithClass call? I don’t know how to include multiple Classes in this kind of context.

      posted in System
      in_a_daysI
      in_a_days
    • RE: MMM-NBA / NBA Scores Module

      @strawberry-3.141

      These are very helpful. I assume I will also need to

      import sys
      import json
      

      at the top of my file?

      Right now I’m storing data in a few arrays in my .py file. For example, I have an array where

      homeTeam[gameNum]
      

      will display the string of the home team name.

      Will this pass the full array?

      to_node("home teams", homeTeam)
      
      posted in Development
      in_a_daysI
      in_a_days
    • RE: NFL Score Module

      @strawberry-3.141

      Thank you again for the help. I’ve opened a new thread here:

      https://forum.magicmirror.builders/topic/1431/mmm-nba-nba-scores-module

      posted in Sport
      in_a_daysI
      in_a_days
    • MMM-NBA / NBA Scores Module

      Per @strawberry-3-141’s suggestion I’m relocating this discussion from the NFL Module thread. I’ve managed to parse data from

      http://www.espn.com/nba/bottomline/scores

      using a python program that stores team names, scores, winners and game times. I can produce this result on the command line:

      0_1484590474543_parser.jpg

      My current goal is to learn how to execute @strawberry-3-141’s suggestion:

      “Help: you can run the python script in from inside the node_helper and read the output, then send the data to your module with a socket notification”

      I have a lot to learn. I’ve figured out a lot about socket notifications and sending notifications and data between modules. I think I can probably handle that part. But I have zero confidence in the process of calling the script and reading output from within the node_helper. I suspect running the script from node_helper will look similar to this suggestion:

      https://github.com/paviro/MMM-Facial-Recognition/blob/master/node_helper.js#L11

      But the variables are a mystery to me and I don’t know how to read the result. If anybody can link to a tutorial that will help me understand this process I will be very grateful! I would much rather learn to do this for myself than have somebody do the work and write the code for me. Thank you!

      posted in Development
      in_a_daysI
      in_a_days
    • RE: NFL Score Module

      I’ve completed an ugly parser for this NBA data. I have a python program that stores and prints a list of home teams, away teams, scores, and event times. Can anybody help me with passing these variables into the existing NFL module framework?

      0_1484589665579_parser.jpg

      posted in Sport
      in_a_daysI
      in_a_days
    • RE: MMM-NHL - NHL Score and Schedule module

      @HungoverRex

      Did you maybe skip installing the dependencies? Navagate to the modules/MMM-NHL folder and

      sudo npm install

      Restart your mirror and you should have scores.

      posted in Sport
      in_a_daysI
      in_a_days
    • RE: MM-Navbar - Navigation Bar for Touchscreens to hide/show modules

      @shashank

      So right now it hides all modules by default. If you want everything to show by default I think you just need to comment out a section from MM-navbar.js. These are lines 12 - 19 right now:

      notificationReceived: function(notification, payload, sender){
      	if (notification === 'DOM_OBJECTS_CREATED'){
      		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
      			module.hide(1000, function(){
      			});
      		});
      	}
      },
      

      Just open and close a comment around this section so it looks like this:

      /*notificationReceived: function(notification, payload, sender){
      	if (notification === 'DOM_OBJECTS_CREATED'){
      		MM.getModules().exceptModule(this).exceptWithClass('clock').enumerate(function(module){
      			module.hide(1000, function(){
      			});
      		});
      	}
      },*/
      

      And I think it should display all your normal modules on startup.

      posted in System
      in_a_daysI
      in_a_days
    • RE: WE WANT YOU! [New Moderators]

      I would like to volunteer to help moderate the forum. I’m very new here, but I have many years experience moderating and hosting football discussion forums. I host and maintain a handful of websites and I’m experienced with a lot of forum back-end management.

      I spend the majority of my day in front of a computer screen and I’m here very frequently. Again, I’m still new to Github, but I’ve forked some code and shared some original modifications. I’m in the process of refreshing my coding skills specifically to develop ideas for my mirror. I enjoy helping people develop skills and answering questions as best I can.

      This is a great, friendly community and I have learned a ton in a very short time. I would be happy to invest time to help keep things clean and orderly. Also, my wife is a huge Doctor Who fan. ;)

      posted in Forum
      in_a_daysI
      in_a_days
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 5 / 8