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

    Posts

    Recent Best Controversial
    • RE: Youtube Embed API

      @Stubbsy1994 The link you provided describes how to embed youtube API into HTML sites using iframe-Tags in two ways. It seems, the module shown in the thread above uses the first method (iframe with source http:// www.youtube. com/embed/VIDEO_ID?parameters). I guess, the pure JS method ultimatively also uses an iframe since its called IFrame Player API.

      As far as I can see, both have equal functionality. It’s not really documented, but it seems like you can call all the functions for the player-object listed here in the direct iframe approach (first method), too. See parameter enablejsapi=1. For example pause or seek-to (not verified for all functions!):

      $('#video1')[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}', '*');
      $('#video1')[0].contentWindow.postMessage('{"event":"command","func":"seekTo","args":[20, true]}', '*');
      

      Compare sendCommand function in youtube.js of the module described in the thread above.

      So even though the module may not satisfy all your needs by now, maybe you can take it as a starting point to develop your own solution?!

      posted in Development
      A
      Anhalter42
    • RE: MMM-ProfileSwitcher, A Profile/User/Layout Switching Module

      @Binog For me, the config looks fine. Just to be sure: you actually replaced “ip” in your URL with the actual IP, did you?

      posted in Utilities
      A
      Anhalter42
    • RE: Tell maps to from A to B

      As far as I know, there is no such module yet. Actually, I see this as two different things:

      1. A module that shows a route on a map and accepts notifications to change the route. For this, you could use the existing MMM-googlemaps module. Support of notifications has to be implemented, though.
      2. A voice-control module sending the notification to the module described in 1. It has to be able to detect not only keywords but truely recognize speech, so that you can input origin A and destination B. I guess this is already done in one of the several voice-control modules (probably in the pocketsphinx one)?!
      posted in Requests
      A
      Anhalter42
    • RE: Events (onHide, onShow)

      Ooops, my bad. Sorry for the silly question. Was so focused on the event-derived names onX() :D

      Topic can be deleted if desired.

      posted in Development
      A
      Anhalter42
    • RE: One-line switch to enable / disable modules

      @rudibarani disabled does this, doesn’t it?

      disabled 	Set disabled to true to skip creating the module. This field is optional.
      
      posted in Feature Requests
      A
      Anhalter42
    • RE: MMM-Podcast (or playing a video on command at all) without button?

      @SurfingCA IIRC MMM-Podcast works together with MMM-Button which enables you to use a hardware button to start playing the video/podcast. So you can either (1) use this OR (2) emulate its behaviour using MMM-RemoteControl.
      (1) is properly documented I guess.
      For (2) you have to send the exact notification MMM-Button would have sent. By looking through source code, you’ll see that it is BUTTON_PRESSED (with a payload of true, which gets ignored in MMM-Podcast anyway). So, you should be able to use http://ip:8080/remote?action=NOTIFICATION& notification=BUTTON_PRESSED to activate MMM-Podcast to play the video. Note: obviously you have to replace ip with the correct IP and you have to remove the whitespace between & and notification which I had to insert to prevent & and not to get converted to ¬ on this board.

      posted in Requests
      A
      Anhalter42
    • RE: Brightness

      Have a look at MMM-Remote-Control. With this you can increase/decrease the overall brightness.

      I didn’t implement it, but as far as I can see, it basically changes the color property of body, .dimmed, .normal, .bright and header in main.css using grayscale-values.
      Actually, it also uses an partially opaque overlay to imitate darker brightness values, but I guess, setting the color property itself or just using the existing module should be sufficient. (You can send notifications to MMM-Remote-Control to set the brightness at runtime)

      posted in Troubleshooting
      A
      Anhalter42
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      Welcome joeytuck,

      1. did you get it to run without additional 3rd party modules?
      2. if yes, share your config.js so we can have a look at it
      posted in Troubleshooting
      A
      Anhalter42
    • RE: ETH/EUR price index

      @Sjarm13 Then what about this thread?!

      posted in Requests
      A
      Anhalter42
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      @joeytuck said in Help... I need help installing 3rd party modules to Magic Mirror 2:

      Do I need to add ’ ’ around numeric values as well?

      Usually you don’t. It distinguishes between (for example) the NUMBER 5 and the TEXT containing “5”. To be sure, you should look at the default values and just do it in the same way. For example, arrival_time seems to require " " even though the given example “1445” also could have been a plain number (I guess the reason is the leading 0 at for example “0800” which gets ignored when inputting as number)

      Also, you got some strange quotation marks ´ ´. Until now I thought, only " " and ’ ’ were valid.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: Etherum price ticker

      @fox you mean like requested here?

      posted in Requests
      A
      Anhalter42
    • RE: Move / load div modules around

      @romain Why not set some random position and hide all (other) modules on startup with the method you use at runtime? As far as I know it is possible to get a list of all modules.

      MMM-ProfileSwitcher does something similar at startup (shows only modules with class “default” at start). Maybe you can look into their code to see how they do it?! Or you just use the MMM-ProfileSwitcher itself just to hide all modules at startup (quick and dirty).

      posted in Troubleshooting
      A
      Anhalter42
    • RE: Help... I need help installing 3rd party modules to Magic Mirror 2

      @joeytuck said in Help... I need help installing 3rd party modules to Magic Mirror 2:

      Also, do I need to do anything to the MMM-Traffic.js file defaults like adding the api_key or changing values to match my selections on the config.js file?

      No. To include the MMM-Traffic module you just have to include it in your config.js (providing all the required settings).

      @joeytuck said

      Turns out that if you put Drive, instead of Dr, it won’t recognize it.

      Where do you put Drive or Dr? In the readMe, possible values for “mode” are described to be ‘driving’, ‘walking’, ‘bicycling’, ‘transit’.

      I suggest to delete or comment (adding // before the line) all not-required settings of MMM-Traffic at first to minimize possible sources for errors.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: External Compliments list limitations and randomness

      @RE_Magic_Mirror maybe there was a comma missing somewhere in the large amount of lines (sometimes not easy to spot). Good to hear you got it to work properly.

      One more note: you should never need to do changes to compliments.js (or any other source code file). Like for (nearly) every module, it should be sufficient to change the config file (and sometimes extra remote files like for example the compliments file). In particular, the location of the external compliments file should be defined in the config file.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: The current installation is 2 commits behind on the master branch.

      @AlexNY007 It means there is an update ready to download and install. Its up to you if you want to update or not, but usually you want to update, especially on master branch where everything should be stable on release ;)
      Just look into the readme/description of the corresponding module. There you will usually find an explanation of how to update.

      In most cases this includes to cd into the module directory and git pull (sometimes npm install is required, too).

      posted in Troubleshooting
      A
      Anhalter42
    • RE: How to post code on the forum - For absolute beginners

      Maybe it should be added that when you have problems finding the correct “back tick” character, you can also use the </> button right above the input field to insert a code-formatted block.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: The current installation is 2 commits behind on the master branch.

      @AlexNY007 The description (content of readme) is displayed below of what you posted. However, there is indeed no explicit explanation of the update process. Just navigate into the folder (presumably cd MMM-Todoist), git pull and npm install. That should be sufficient.

      posted in Troubleshooting
      A
      Anhalter42
    • RE: MMM-Remote -Control Known limitations

      @kurt I always wondered, too.
      While this may not solve your problem completely, did you consider removing modules in (reversed) order? This way, no re-order of modules has to be done hence the indices should be ok?! (Not tested)

      posted in Troubleshooting
      A
      Anhalter42
    • 1 / 1