MagicMirror² v2.14.0 is available! For more information about this release, check out this topic.

Problem of running MMM-Podcast and MMM-Button

  • Re: MMM-Button with MMM-Podcast

    Hello guys
    sorry for my english.

    i do not able to get this Module work. The only result is that my Screen turns black after starting MM.

    My configuration data is exactly who its write in the readme.txt

    Please help.

    Best regards

  • Hello,
    i have the same problem.

    my config.js looks like

           			module: 'MMM-Button',
            		config: {
    				//pin GIPO 5 und Ground
    				buttonPIN: '5'
          			module: 'MMM-Podcast',
           			position: 'middle_center',
            		config: {
              			feedurl: ''

    My button.js looks like

    /* global Module */
    /* Magic Mirror
     * Module: MMM-Button
     * MIT Licensed.
    	requiresVersion: "2.1.0",
    	defaults: {
    		buttonPIN: 5,
    		//time in miliseconds before another button click is recognized
    		clickDelay: 500,		
    	// Override socket notification handler.
    	socketNotificationReceived: function(notification, payload) {
    		if (notification === "BUTTON_PRESSED"){
    			this.sendNotification(notification, payload)
    	start: function() {
    		this.sendSocketNotification('BUTTON_CONFIG', this.config);'Starting module: ' +;

    Can anybody help us?

  • in the config.js there is a missing , behind buttonPIN: ‘5’

  • @alex84 if i had the , behind the buttonPIN:5 ther is always the Black screen

  • there is missing a comma

  • @alex84 yes

       			module: 'MMM-Button',
        		config: {
    			//pin GIPO 5 und Ground
    			buttonPIN: '5',

    but i have always the Black screen.

  • Change into the MMM-Button folder and execute the following commands

    sudo npm install --save-dev electron-rebuild



  • @alex84 Thank You,
    Now i have no mor Black Screen, but the Button dont work.
    I have a Pyton Script, this works.
    import RPi.GPIO as GPIO
    import os
    import sys
    from subprocess import Popen


    GPIO.setup(5, GPIO.IN, pull_up_down=GPIO.PUD_UP)

    movie1 = (“”)

    last_state1 = True
    last_state2 = True

    input_state1 = True
    input_state2 = True
    quit_video = True

    player = False

    while True:
    #Read states of inputs
    input_state1 = GPIO.input(5)

    #If GPIO(5) is shorted to Ground
    if input_state1 != last_state1:
        if (player and not input_state1):
            os.system('killall omxplayer')
            omxc = Popen(['omxplayer', movie1])
            player = True
        elif not input_state1:
            omxc = Popen(['omxplayer', movie1])
            player = True
    #If omxplayer is running and GIOP(5) are not shorted to Ground
    elif (player and input_state1 and input_state2):
        os.system('killall omxplayer')
        player = False
    #Set last_input states
    last_state1 = input_state1

    Has anybody a working config and button config that he can post?

  • I will you later Post my config of the button and my config as well as the config of the podcast. I’m on the road. 🙂

  • @alex84 Thank You 👌🏽

Log in to reply