@Sean Thank you for your quick response! I will practice my Javascript :)
Read the statement by Michael Teeuw here.
Posts made by jdfraser
-
RE: MMM-CalendarExt2
-
RE: MMM-CalendarExt2
@Sean
Thanks for the great module, it is the main reason for my Magic Mirror / picture frame.Could you explain the syntax for using the “transform” command to change the title of an event to a shorter abbreviation (e.g. “jack climbing” = > “J.C.”)? I have some items in my calendar that are displayed on the monthly view with a title “Dinner: Taco Soup” and I would like to use transform to remove the "Dinner: " from the title. I have searched the documentation and the forum, but am having a tough time figuring out how I need to specify this in my config.js (or custom.css).
-
RE: Considering taking donations to support the MagicMirror project. Interested in your thoughts!
I would certainly donate, but appreciate it being voluntary.
-
RE: MMM-KeyBindings: Control your mirror with Amazon Fire Stick Remote and Generic Keyboard Inputs
thanks @shbatm for all your work on this module.
I am having some problems getting it working with my MM. I have the module installed and loading, my Amazon Fire TV Remote is recognized and recognizing key presses. I am however, having issues with getting modules to respond to any keypresses.
I started with the basic config as suggested in your doc, hoping that I could succeed in getting the monitor to turn on and off with the home key. I could not get this to work.
{ module: 'MMM-KeyBindings', config: { enableMousetrap: true }
I installed the “MM-ViewNotifications” module to see what was happening and it seems that the MMM-KeyBindings module is sending a “MONITORTOGGLE” command with the homekey press and my Monitor does not turn off. From reading your previous message I don’t think that this will work anymore, as it sounds like you have removed that functionality from this module and rely on other modules like MMM-Remote-Control for this.
So I added this (below) to my config file, but even though I have specifically changed the Home button action to ‘MONITOROFF’, MMM-ViewNotifications still reports that it is sending a ‘MONITORTOGGLE’ command. My next attempt was to try and control somthing else (hiding the clock) with the ‘Enter’ button. I think that the problem I am having with that may be syntax, I’m not really sure how I should configure MMM-KeyBindings include the corrrect payload.
I am able to successfully use the following URL to turn off my monitor with MMM-Remote-Control “http://192.168.1.104:8080/remote?action=MONITOROFF” as well “http://192.168.1.104:8080/remote?action=HIDE&module=module_5_clock” is able to hide my clock.
If you could look and my configuration and offer some guidance I would appreciate it.
{ module: 'MMM-KeyBindings', config: { enableMousetrap: true, keyMap: { Home: "KEY_HOMEPAGE", Enter: "KEY_KPENTER", ArrowLeft: "KEY_LEFT", ArrowRight: "KEY_RIGHT", ArrowUp: "KEY_UP", ArrowDown: "KEY_DOWN", Menu: "KEY_MENU", MediaPlayPause: "KEY_PLAYPAUSE", MediaNextTrack: "KEY_FASTFORWARD", MediaPreviousTrack: "KEY_REWIND", Return: "KEY_BACK" }, }, actions: [{ key: "Enter", state: "KEY_LONGPRESSED", instance: "SERVER", // mode: "DEFAULT", notification: "REMOTE_ACTION", payload: { action: "HIDE&module=module_5_clock" } }, { key: "Home", state: "KEY_PRESSED", instance: "SERVER", // mode: "DEFAULT", notification: "REMOTE_ACTION", payload: { action: "MONITOROFF" } } ] },
-
MMM-ShairportMetadata
Has anyone used MMM-ShairportMetadata to get the Airplay metadata from a socket address? I’d like to get the currently playing information for my multiroom audio but don’t want to have to airplay to the MagicMirror to see whats playing everywhere else. I know Shairport-sync will output the metadata to a socket address, but I’m not sure if I can get this module to read it
-
RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module
Hello and thanks for creating this module! I have experimenting with creating a photo frame and hope that your ProfileSwitcher will get me the rest of the way there.
I am having an issue with MMM-ProfileSwitcher and using it with MMM-RandomBackground or MMM-RandomPhoto. I have tried some simple troubleshooting steps, but am not sure how to proceed further and hope you could help.
I have simplified my config.js to try and eliminate other sources as being the issue. Currently I am experimenting using only the clock module, MMM-RandomBackground and MMM-ProfileSwitcher. I have 3 profiles ‘TestA’, ‘TestB’ and default. I ideally like to be able to show a random photo on my frame and alternate having overlays of weather / time / news / etc. based on the profile.
My idea is to have a class that shows the random photo at a reduced opacity that can have some overlay infomation (clock, weather, news, etc.). And another class that only shows the photo at full opacity.
The problem I have is that if my config.js has more than one entry for MMM-RandomBackground, it ignores more than the one entry. I am sure I have configured it correctly and have included my config.js below, but I only see a background photo for “TestA” Profile.
modules: [ { module: 'MMM-ProfileSwitcher', header: 'Profile', config: { defaultTime: 10000, defaultClass: 'default', everyoneClass: 'everyone', useLockStrings: true, leaveMessages: false, enterMessages: false, timers: { // when TestA is selected swap to the defaultClass after the defaultTime "TestA": {}, // // When TestB is selected swap to TestA after 20 seconds "TestB": { profile: "TestA", // time: 20 * 1000 }, "default": { profile: "TestB" } } } }, { module: 'alert', displayTime: 10000 }, { module: "updatenotification", position: "top_bar" }, { module: "clock", disabled: false, classes: "TestA", position: "bottom_left", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: false, dateFormat: "MMMM Do" } }, { module: "clock", disabled: false, classes: "default", position: "top_right", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: false, dateFormat: "MMMM Do" } }, { module: "clock", disabled: false, classes: "TestB", position: "top_left", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: false, dateFormat: "MMMM Do" } }, { module : 'MMM-RandomBackground', disabled: false, classes: "TestA", position : 'fullscreen_below', // Any region but this one makes the most sense config : { animationSpeed : 2000, updateInterval : 50000, opacity : 1 } }, { module : 'MMM-RandomBackground', disabled: false, classes: "TestB", position : 'fullscreen_below', // Any region but this one makes the most sense config : { animationSpeed : 2000, updateInterval : 50000, opacity : 0.5 } }, ] };
If you are able to offer any insight as to why this might be happening or further troubleshooting I could do, I would greatly appreciate it.
*** Full disclosure ***
I originally posted this help request under another topic, but thought there would be a better chance that I might get more timely help with my issue in this topic. Sorry for the cross-post. :) -
MMM-ProfileSwitcher & MMM-RandomPhoto
Has anyone been able to get MMM-ProfileSwitcher and MMM-RandomPhoto modules to work together?
I would like to have two profiles, one that only has a photo from MMM-RandomPhoto module with full opacity [opacity: 1] and a second profile that has the opacity set lower with an overlay of my other modules (clock, calendar, etc…)
If I have only one entry in my config.js for MMM-RandomPhoto it seems to work for that profile, but as soon as I have another entry for MMM-RandomPhoto with another class name it seems to be ignored and does not receive the background photo.
I am curious if there is a problem with these two modules working together, or am I understanding the configuration incorrectly?
I have attached my config.js below, in case the error is mine.
/* Magic Mirror Config Sample * * By Michael Teeuw http://michaelteeuw.nl * MIT Licensed. */ var config = { port: 8080, ipWhitelist: [], address: "", language: 'en', timeFormat: 24, units: 'metric', modules: [ { module: 'alert', }, { module: "updatenotification", position: "top_bar" }, { module: "clock", disabled: false, classes: "TestA", position: "bottom_left", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: true, dateFormat: "MMMM Do" } }, { module: "clock", disabled: false, classes: "TestB", position: "top_left", config: { timeFormat: 12, displaySeconds: false, showPeriod: false, clockBold: false, dateFormat: "MMMM Do" } }, { module: 'MMM-RandomPhoto', disabled: false, classes: "default", position: 'fullscreen_below', config: { opacity: 1, animationSpeed: 500, updateInterval: 90, url: 'https://unsplash.it/1920/1080/?random' } }, { module: 'MMM-RandomPhoto', disabled: false, classes: "TestA", position: 'fullscreen_below', config: { opacity: 1, animationSpeed: 500, updateInterval: 90, url: 'https://unsplash.it/1920/1080/?random' } }, { module: 'compliments', position: 'lower_third', classes: 'default' }, { module: 'MMM-ProfileSwitcher', header: 'Profile', config: { defaultTime: 5000, defaultClass: 'default', everyoneClass: 'everyone', useLockStrings: false, enterMessages: { "TestA TestB": "Hey %profile%!" }, leaveMessages: { "everyone": "Bye %person%!", "TestA": ["Another goodbye", true] }, timers: { // when Brian is selected swap to the defaultClass after the defaultTime "TestA": {}, // // When Lisa is selected swap to Brian after 20 seconds "TestB": { profile: "TestA", time: 20 * 1000 }, "default": { profile: "TestB" } } } } ] }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== 'undefined') {module.exports = config;}
-
RE: List Good Monitors To Build With
I’ve had success gutting an old IBM Laptop for its LCD. I ordered this driver board kit off of EBAY and it works great. The ribbon cable is a bit short, but I’ll worry about that when I finally get around to installing the LCD into a mirror / picture frame. My local recycling depot always seems to have a bunch of old laptops being disposed of. I recommend emailing the driver board seller to make sure you get the right one to work with your LCD.
-
RE: Airplay 'Now Playing' module - help badly needed
Hi @darrene ,
How did you ever make out with your module? I’ve started down the same path, I’m also using shairport-sync but in conjunction with forked-daapd (an airplay server for Raspbian).
As forked-daapd can also use mpd commands I’ve been trying to use komponist, which I’ve managed to make return the playing song, album, etc. print out to the console but as I’ve never really done any javascript before am trying to piece together building a module for MM.
If you’ve made any progress on your module, I’d love to see it as it may help me finish mine.
-
MPD Controller
Is anybody else out there interested in creating an MPD controller for the MM?
I have couple raspi-PIs around the house with HiFi Berrys on them and use them as syncronized audio (think Sonos but less expensive) using forked-daapd as an Airplay Server and shairport-sync as clients along with some inexpensive actual Airplay speakers.
Anyways… forked-daapd is able to be controlled using mpd commands and I was thinking it would be nice to use the MM to control the playing audio (web radio, local playlists, volume, etc.) I see that there is a npm called komponist that seems to have all the bits to control MPD but I’m not really sure where to start. If someone else was also interessted in this perhaps we could work together to figure it out.
Let me know if you’re interested.
Cheers,
Jamie