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

    Posts

    Recent Best Controversial
    • RE: Add fade to transparent background on module.

      @jamaces easy peasy…here’s an example:

      .MMM-YahooWeather .fade {      
        	-webkit-mask-image: linear-gradient(to bottom, black 10%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 10%, transparent 100%);
         height:  120px;
        }
      

      The magic is in the fade… gives you this effect: [see bottom of 4 days forecast]

      1.png

      posted in Custom CSS
      cowboysdudeC
      cowboysdude
    • RE: Nascar schedule URL

      Just go to MagicMirror/modules/MMM-Nascar in a terminal window and type
      ‘git pull’ to update.

      All fixed! Thanks @Assassins

      I made it to change the year every year…

      posted in Sport
      cowboysdudeC
      cowboysdude
    • MMM-Dogs

      You like dogs? Well…here’s a VERY simple module to show random pictures of dogs on your mirror!

      Description:

      SEE README ON GITHUB!

      Screenshots:

      1.png

      2.png

      3.png

      Version 1.0.0

      Download:

      https://github.com/cowboysdude/MMM-Dogs

      posted in Entertainment
      cowboysdudeC
      cowboysdude
    • RE: 1 old noob + 1 rPi = I can't believe I did it! (revisited)

      @mykle1 people still posting in this old topic? Lol

      posted in Show your Mirror
      cowboysdudeC
      cowboysdude
    • RE: Bored? MMM-Bored

      Fixed the topic :)

      posted in Entertainment
      cowboysdudeC
      cowboysdude
    • MMM-Djoke

      Description:

      Want some clean family friendly dad jokes? Here you go…NO api key needed.
      SEE README ON GITHUB!

      Screenshots:

      2.png

      1.png

      Version 1.0.0

      Download:

      https://github.com/cowboysdude/MMM-Djoke

      posted in Entertainment
      cowboysdudeC
      cowboysdude
    • RE: MMM-MLB only showing header with logo. Should it be loading anything in offseason?

      @jamaces It won’t show anything, there’s nothing to show right now.

      posted in Troubleshooting
      cowboysdudeC
      cowboysdude
    • RE: Bored? MMM-Bored

      https://github.com/cowboysdude/MMM-Bored

      posted in Entertainment
      cowboysdudeC
      cowboysdude
    • Bored? MMM-Bored

      Description:

      Bored? This module will make suggestions to help you with that!
      Currently supports 11 Languages!!!

      SEE README ON GITHUB!

      Screenshots:

      ar.png

      de.png

      us.png

      fr.png

      es.png

      Version 1.0.0

      Download:

      https://github.com/cowboysdude/MMM-Bored

      posted in Entertainment
      cowboysdudeC
      cowboysdude
    • RE: MMM-WunderGround-PWS-Observations

      @saabman It’s a great start!!!

      posted in Utilities
      cowboysdudeC
      cowboysdude
    • RE: rainAndSnow module

      Eh if anyone is interested I can take a look at the rainAndSnow module…if not okay too LOL

      posted in Troubleshooting
      cowboysdudeC
      cowboysdude
    • RE: how can i integrate pulse sensor and ir thermometer in magic mirror

      @calypsou1 you can send the data to mqtt then use the mqtt module to show your data ;)

      posted in Troubleshooting
      cowboysdudeC
      cowboysdude
    • RE: Head first developing MM module for extreme beginners

      @StuGrunt said in Head first developing MM module for extreme beginners:

      It is because there is an error (at least I think so - I am new too) and no instructions on where to put the function.

      1. change the Module.register(“MMM-Timetable”) to Module.register(“MMM-Test”)

      2. The article does not tell you where to put the getDom function when it is first introduced. Replace the getDom: function() {}. with the code shown. In other words, don’t just add it to the file. This article would have benefited from a final section that gave the entire code.

      I think the original author at least expected us to be very familiar with Node.js (fair enough), but alas, I am not so it took a bit of work to figure it out. :-)

      Here it is, for the first part:

      Module.register(“MMM-Test”, {
      defaults: {},
      start: function () {},

      getDom: function() {
      var element = document.createElement(“div”)
      element.className = “myContent”
      element.innerHTML = “Hello, World!”
      return element
      },
      notificationReceived: function() {},
      socketNotificationReceived: function() {},
      })
      _

      Both of those functions go outside the getDom function pretty much anywhere you want to put them.

      The socketNotificationReceived function [example below, can be used in either node_helper OR your main.js file. The example below is in my node_helper] :

      socketNotificationReceived: function(notification, payload) {
      		if (notification === 'CONFIG') {
                  this.config = payload; 
              }
              if (notification === 'GET_CURRENT') {
                  this.getCurrent(payload);
              }
              if (notification === 'GET_FORECAST') {
                  if (this.forecast.timestamp === this.getDate() && this.forecast.data !== null) {
                      this.sendSocketNotification('FORECAST_RESULT', this.forecast.data); 
                      console.log("Using data we already have");
                  } else { 
                      this.getForecast();
      				console.log("Getting new data");
                  }
              }
      		
          }
      

      Here is the corresponding one in the main.js

      socketNotificationReceived: function(notification, payload) {
              if (notification === "CURRENT_RESULT") {
                  this.processCurrent(payload);
              }
              if (notification === "FORECAST_RESULT") {
                  this.processForecasts(payload);
              }
      		this.updateDom(this.config.initialLoadDelay);
          },
      

      You can use notificationReceived to receive info from other modules like this:

      Here are examples of that:

      notificationReceived: function (notification, payload){ 
              if (notification === 'CURRENT_RESULT') {
      			this.processCurrent(payload); 
              }
      	},
      
      this.sendNotification('CURRENT_RESULT', payload);
      

      This is how I send and receive my ‘payload’ from one module to another.
      The first example is getting my ‘CURRENT_RESULT’ [getting info for a Forecast module from the Current weather module] from the bottom example that is
      sending out ‘CURRENT_RESULT’…

      The bottom example will ‘broadcast’ and in reality ANY module can get the data it’s sending out.

      Hope this helps. It’s a really simple process.

      posted in Development
      cowboysdudeC
      cowboysdude
    • RE: MMM-SunRiseSet

      @Mykle1 said in MMM-SunRiseSet:

      usno.navy.mil

      That @Mykle1 he’s such a big help to everyone!!! :) Just ask and he’s there!

      posted in Education
      cowboysdudeC
      cowboysdude
    • RE: Magicmirror in bathroom with steam shower?

      @Pylonvu Agreed! LOL

      posted in General Discussion
      cowboysdudeC
      cowboysdude
    • RE: BG Animation with CSS

      @Piranha1605 Late to this party but MAN your background looks really awesome!

      posted in Showcase
      cowboysdudeC
      cowboysdude
    • RE: Magicmirror in bathroom with steam shower?

      Easy way to keep a mirror from steaming up is rub a bar of soap on the mirror then wipe it off…no steam ;)

      posted in General Discussion
      cowboysdudeC
      cowboysdude
    • RE: 1 old noob + 1 rPi = I can't believe I did it! (revisited)

      @Mykle1 said in 1 old noob + 1 rPi = I can't believe I did it! (revisited):

      @cowboysdude

      THIS . . . IS . . . my hobby. :)

      No, no it isn’t… I KNOW your hobby LMAO

      posted in Show your Mirror
      cowboysdudeC
      cowboysdude
    • RE: Magicmirror in bathroom with steam shower?

      Mine has been running in the bathroom for 2 years… doing just fine.

      posted in General Discussion
      cowboysdudeC
      cowboysdude
    • RE: Waveshare Magic Mirror touch screen

      Looks like an HA build…

      posted in Hardware
      cowboysdudeC
      cowboysdude
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 115
    • 116
    • 10 / 116