No, will not work. :-(
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module
-
RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module
Hello,
‘default everyone’ has work
But I can not start the MMM-Radio modul with profil-switch, but that was my idea.
So, I switch to Profile Radio and the MMM-Radio module will work, all other module are default for everyone.Here the MMM-Button Module
module: 'MMM-Buttons', classes: 'default everyone', config: { minShortPressTime: 10, buttons: [ { pin: 10, name: "Radio", longPress: { notification: "PROFILE_SWITCH", payload: {action: "default"}}, shortPress: { notification: "PROFILE_SWITCH", payload: {action: "Radio"}}}, { pin: 11, name: "Tagesschau", longPress: undefined, shortPress: { notification: "BUTTON_PRESSED" // payload: {action: "SHUTDOWN"} } } ]}},
-
RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module
Hello,
thanks for the modul,
but when I start this module my magic mirror get blank.{ module: 'MMM-Buttons', config: { minShortPressTime: 10, buttons: [ { pin: 10, name: "Radio", longPress: { notification: "PROFILE_SWITCH", payload: {action: "Radio_OFF"}}, shortPress: { notification: "PROFILE_SWITCH", payload: {action: "Radio"}}}, { pin: 11, name: "Tagesschau", longPress: undefined, shortPress: { notification: "BUTTON_PRESSED" // payload: {action: "SHUTDOWN"} } } ] }}, { module: 'MMM-ProfileSwitcher', config: { } },{ module: 'MMM-RadioDe', classes: 'Radio', position: 'bottom_left', // This can be any of the regions. config: { // See 'Configuration options' for more$ station: "hr3", // can be obtained in embed section of $ api_key: 'XXX', //optional, height:"92", // in pixel width:"360", // in pixel }}, -
RE: MMM-PIR-Sensor with RelayPin and execute script
Yes, the error code says, you have not enought whitespaces before the lines.
-
RE: MMM-PIR-Sensor with RelayPin and execute script
-
RE: MMM-PIR-Sensor with RelayPin and execute script
I have build in this python script in tho rc.local
import RPi.GPIO as GPIO import time #Board Mode: Angabe der Pin-Nummer GPIO.setmode(GPIO.BOARD) #GPIO Pin definieren fuer den Dateneingang vom Sensor PIR_GPIO = 13 Relay_GPIO = 37 GPIO.setup(PIR_GPIO, GPIO.IN) GPIO.setup(Relay_GPIO, GPIO.OUT) GPIO.output(Relay_GPIO, True) GPIO.setup(32,GPIO.IN) read=0 wait=0 ein=0 button=1 while True : #PIR auslesen read = GPIO.input(PIR_GPIO) button = GPIO.input(32) if ((read==1 or button==0) and wait==0): GPIO.output(Relay_GPIO, False) wait=1 ein=1 time.sleep(0.5) elif ein==1 and button==0: ein=0 time.sleep(0.5) -
screensaver will not turn off
Hello,
I have install the Magicmirror this the jessie manual,
but the screensaver is still running after a few minutes.Anyone a idea how I can turn off the screensaver function
-
MMM-Myvoiceradio with button
Hello,
I need help, I will use the MMM-Myvoiceradio module with buttons not this microphon.I have make buttone with MMM-Buttons for
Sender+ to switch to the next sender and
Sender- to switch to the previous sender
VolumeUp to make a higher Volumen and
VolumeDown to make a lower Volumen
and radiostop for stop the radio.
And have change the MMM-Myvoiceradio.js
but nothing works.
But I muss learn a lot of JavascriptModule.register(“MMM-Myvoiceradio”,{
// Default module config.
// defaults: { text: “Sender1: BigFM”
Sender2: Einslive
// },notificationReceived: function(notification, payload, sender) {
var self = this;
Sender = 0;
If (notification === “Sender+”){
Sender = Sender+1;
If (Sender > 2){
Sender = 1;
}
}
If (notification === “Sender-”){
Sender = Sender-1;
If (Sender < 1){
Sender = 2;
}
}if (Sender === 1){
self.sendSocketNotification(‘einslive’, {});
}
if (Sender === 2){
self.sendSocketNotification(‘bigfm’, {});
}
if (notification === “VolumeUp”){
self.sendSocketNotification(‘VolumeUp’, {});
if (notification === “VolumeDown”){
self.sendSocketNotification(‘VolumeDown’, {});if (notification === “radiostop”){
self.sendSocketNotification(‘radiostop’, {});
}},
// Override dom generator. getDom: function() { var wrapper = document.createElement("div"); wrapper.innerHTML = this.config.text; return wrapper; }});
-
RE: MMM-Podcast: omxplayer still running. kill forced
push down.
No one can help me? -
RE: simple web-radio
Hello,
I have a issue in the code, the Buttons will not work. How I can control the voiceradio with Buttons?
Thanks
Blackmirror
-
RE: MMM-Podcast: omxplayer still running. kill forced
How can i integratet USB-Soundcard with omxplayer in javasript?
omxplayer -0 alsa:hw:1,0 modules/MMM-Podcast/video.mp4 works in the terminal,
but not omx.play(modules/MMM-Podcast/video.mp4,{audioOutput: alsa:hw:1,0}) in the javasript.thanks Blackmirror
-
RE: Blackscreen after install MMM-PIR-Sensor
import RPi.GPIO as GPIO import time #Board Mode: Angabe der Pin-Nummer GPIO.setmode(GPIO.BOARD) #GPIO Pin definieren fuer den Dateneingang vom Sensor PIR_GPIO = 13 Relay_GPIO = 37 GPIO.setup(PIR_GPIO, GPIO.IN) GPIO.setup(Relay_GPIO, GPIO.OUT) GPIO.output(Relay_GPIO, True) GPIO.setup(32,GPIO.IN) read=0 wait=0 ein=0 button=1 while True : #PIR auslesen read = GPIO.input(PIR_GPIO) button = GPIO.input(32) if ((read==1 or button==0) and wait==0): GPIO.output(Relay_GPIO, False) wait=1 ein=1 time.sleep(0.5) elif ein==1 and button==0: ein=0 time.sleep(0.5)Have found in the web and I have modified for me, the Pin 32 is a button to make the monitor, ampilifier and the mirror light always on.
-
RE: MMM-Podcast: omxplayer still running. kill forced
Wenn you use a usb-soundcard,
you must takeomxplayer -o alsa:hw:1,0 video.mp4
But where can I it insert in the node_helper.js?
-
No sound ober USB-Card
Hello,
I can’t hear Sound over the USB-Card, only over HDMI.
Only I make Speakertest , I can hear a noise.
And I see it at alsamixer, but when I switch to USB Card at alsamixer and Close it and make a reopen , it’s the setting back to standard.
-
No sound over USB-Soundcard
Hello,
I can no hear sound over the usb-card, only over hdmi.
But when I start speakertest I can hear the white noise.
I have test a few things what google say, but nothing works.
-
RE: simple web-radio
So, I Have modified, and hope it will doing what I want:
Module.register(“MMM-Myvoiceradio”,{
// Default module config.
defaults: { text: “Sender1: BigFM”
Sender2: Einslive
},notificationReceived: function(notification, payload, sender) {
var self = this;
Sender = 0;
If (notification === “Sender+”){
Sender = Sender+1;
If (Sender > 1){
Sender = 2;
}
}
If (notification === “Sender-”){
Sender = Sender-1;
If (Sender < 1){
Sender = 2;
}
}if (Sender === 1){ self.sendSocketNotification('einslive', {}); }if (Sender === 2){
self.sendSocketNotification(‘bigfm’, {});
}
if (notification === “Volume+”){
self.sendSocketNotification(‘VolumeUp’, {});
if (notification === “Volume-”){
self.sendSocketNotification(‘VolumeDown’, {});if (notification === “radiostop”){
self.sendSocketNotification(‘radiostop’, {});
}This was the Myvoiceradio.js
-
simple web-radio
I search for a simple web-radio that I can use with buttons,
Volume , on, off, and chance the different streams.
Only show short the station, after change. -
RE: MMM-NetworkScanner
Nice to make a output gpio in this module, so I can installed a relais, to switch thinks on, only when I am in the house.
-
RE: Blackscreen after install MMM-PIR-Sensor
I Have solve this problem without MMM-PIR-Sensor this a python-skript in rc.local.
But bei DHT22 - Sensor is not working now, destroyed? But why?