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

    Posts

    Recent Best Controversial
    • RE: MMM-newsfeedtouch - News so hot you wanna touch it

      @broberg Hi, great module it works well for me. however… After seeing this I though OH MAYBE I WANT A VIDEO TO PLAY WHEN I CLICK ON SOMETHING, so i tried to make a module for it and then it just wouldn’t work. So i sort of fiddled with this one to have 1 hardcoded “headline” which when clicked on, opened an iframe element and played the latest video from a youtube playlist as shown below.

      0_1496717074667_snip1.JPG
      0_1496717078788_snip2.JPG

      //codechange
                              var title = document.createElement("div");
                              title.className = "bright small regular fed";
      
      
                              title.innerHTML = "Zero Punctuation Review";
                              title.addEventListener("click", () => showdesc(this)); //Show description on click
                              wrapper.appendChild(title);
      
      
                              //below is the function to show description and hide title
                              function showdesc(thisdesc) {
                                      thisdesc.intpause();    //clear interval
                                      title.style.display="none";
      /*                              var readTimer = setTimeout(function() {hidedesc(thisdesc)}, thisdesc.config.readInterval); //sets timeout for the description
                                      description = document.createElement("div");
                                      description.className = "infoCenter";
                                      description.innerHTML = thisdesc.newsItems[thisdesc.activeItem].description;
                                      description.addEventListener("click", () => hidedesc(thisdesc));  //Hide description on click
                                      description.addEventListener("click", () => clearTimeout(readTimer)); //Stop timer when clicked so the next title doesn't reload again.
      */
      
                                      description = document.createElement ("iframe");
                                      description.className = "vid";
                                      description.src = 'https://www.youtube.com/embed/htm+lastest?list=PLAbMhAYRuCUhawCEV2oXZGrienoKTN16X&autoplay=1';
                                      description.autoplay = true;
                                      description.addEventListener("click", () => hidedesc(thisdesc));  //Hide description on click
                                      description.addEventListener("click", () => clearTimeout(readTimer)); //Stop timer when clicked so the next title doesn't reload again.
      
      //                              wr.appendChild(video);
      
      
      
      
      
      
      
                                      wrapper.appendChild(description);
      
      
                              };
      
                              //and to close the description on click and get next title
                              function hidedesc(thisdesc) {
                                      thisdesc.activeItem++;
                                      thisdesc.intresume();   //resume the interval
                                      description.style.display="none";
                              };
      
      //codechange end
      

      Just a Suggestion in case you wanted in the future to incorporate playing the news release video as an option for your module. Sorry for playing with it!

      posted in Utilities
      N
      number1dan
    • RE: TESTERS WANTED - Multi-sport Scoreboard module

      @j.e.f.f The league teams stay the same for a season approx 6 months, and then there’s relagation/promotion as with other sports so the logos will be fixed for the most part. Could possibly get the team logos from the lol.gamepedia, http://lol.gamepedia.com/File:Team_SoloMid.png is one logo there. Could get annoying around promos time to keep up with all the new logos but http://lol.gamepedia.com/File:[Team_Name_from_JSON].png could sort you out automatically? With maybe just a placeholder image or text if it doesnt work. The scores can be number of games won in the best of 3 like you said; 2-1, 0-1 or whatever. Could probs have different colour font for fixture complete. Easy peezy way I would think is if Team A score plus Team B score = 3 then font =Yellow to indicate fixture complete and standard white font to show currently being played or not started.

      There’s a couple matches a day played over the weekend, so its works well with only showing the days matches, so it would show
      TSM 1:1 CLG
      C9 VS FLY etc.

      posted in Development
      N
      number1dan
    • RE: TESTERS WANTED - Multi-sport Scoreboard module

      Any chance of getting eSports on there, ideally NA/EU LCS?

      posted in Development
      N
      number1dan
    • Small Mirror, 12''x12'' borderless mirror with 8 inch lcd

      I’ve completed the constuction of my mirror now, so here it is!
      As the title says its 12x12 inch with a small screen inside. How I made it was i bought a cheap 12x12 mirror frame with a viewable area of 9 inches then removed the glass and put my 2 way acrylic on top. this makes an essentially borderless mirror with a “pen” to house my pi and screen with supports. I with struggling with visibility of the modules so i pretty much changed the custom css to have nearly everything bold and bright. Unfortunately as you can I have some wobbly mirror goodnesss at the due to the floppy acrylic. I promised myself when i started that i’d keep the back super neat and tidy which i clearly did not do!
      The entire thing weighs less that 1.5 kilos, but cant remember exactly, pretty sure its closer to 1.2.2_1485549516834_16326195_10154299322681732_203552796_o.jpg 1_1485549516834_16326309_10154299322466732_1582842900_o.jpg 0_1485549516833_16357787_10154299322446732_1511699904_o.jpg

      Modules going counter clockwise starting at clock

      -default clock
      MMM-Wunderground
      MMM-Todoist (menu for the week)
      default news feed
      default calendar (League of Legends matches)
      default news feed (edited to be a twitter feed of our trainline)
      MMM-voice (error cos i dont have a mic plugged it)

      Secret bonus modules
      MMM-movieinfo (starts hidden, appears in center when i voice command it to)
      Lastfm Scrobbler in bottom right
      I must have about 10 or so modules commented out in my config.js and I ended up just picking the ones I’d actually look at. But it’s fun to play with them.

      posted in Show your Mirror
      N
      number1dan
    • Anyone experience an issue with white walls and the mirror reflection?

      Hi all,
      So I’m towards the end of my mirror build, I have all the modules setup how i want them on my pi which was super quick because I’d been using a ubuntu vm for testing and then just SCP the config.js over.
      Im at the point where I can put a tablet screen with a teamviewer session behind my Two-way acrylic to see how it looks size-wise and I’ve noticed that however bright i make the screen it’s not very clear because my walls are WHITE! So unless I’m standing directly in the front of the module i want to look at all i see is faint text amidst a reflection of a white wall LOL. I’ve tried changing the colour of the text to stand out more but it doesnt seem to do all that much. Has anyone else had to work around apartment decor and what helped you if anything?

      posted in General Discussion
      N
      number1dan
    • RE: MMM-MovieInfo

      nice module. I have this starting hidden and then voice command it to show. I’ve also changed the start and end dates for it to show stuff in cinema now and removed the greyscale from the poster. Good job making this module

      posted in Entertainment
      N
      number1dan
    • RE: Request a Twitterfeed

      Hi,

      just stumbled across this. Don’t know if you still need any info on this but what i did was change the url in the newsfeed module to https://twitrss.me/twitter_user_to_rss/?user=[USER] where user is the twitter feed that i wanted. The site changes the feed into rss which the default newsfeed module can deal with. Hope that helps

      posted in Requests
      N
      number1dan
    • Moving modules around screen

      How does one move a module around a screen during operation? I’ve tried changing this.config.position in the [module].js script but it doesnt do anything when the if statement has been reached.

      posted in Troubleshooting
      N
      number1dan
    • Modules starting hidden.

      Hello there. I would like to know if there’s an easy way for a module to be ready but hidden. My particular case is having a module hidden until i give the voice command to show itself. All my voice commands work and I have achieved what i wanted in terms of it being hidden but it feels a bit convoluted and am wondering if there was an easier way. It will probably be best if I write what I’ve done.

      Module in question: MMM-Instagram
      Voice Module: MMM-voice

      As soon as the Instagram module received the ALL_MODULES_STARTED notification and has sent the REGISTER_VOICE_MODULE notification I’ve asked it to also send a socket notification INITIAL_HIDE. the node_helper.js then receives and literally sends INITIAL_HIDE straight back and then i have an “if socketnotification INITIAL_HIDE received then hide()”. In my inexperienced minds opinion, this makes the Instagram module ready and available to the voice module but hides before instagram pictures start showing up. Is there a more efficient way of doing this?

      I can clarify if I’ve not been clear. I’m quite new to this, the only experience with javascript I’ve had before is writing simple parsing scripts for a SIEM tool at my old work.

      Thanks,
      Dan

      posted in Troubleshooting
      N
      number1dan
    • Easy Twitter feed

      Hey Guys, I’m new and just started messing around with MM2 on Ubuntu Desktop before I get my Pi for Xmas. Just wanted to let you guys know something I’ve found whilst playing,unless someones mentioned it before. I couldnt see an easy module for twitter feeds so if anyone wants to stream your favourite twitter feeds then you can just use the default newsfeed module and use the url specified as https://twitrss.me/twitter_user_to_rss/?user=[USERNAME]. The site converts twitter feeds into RSS feed so it’s compatible. I stumbled upon trying to make a transport update module for my local train station and wasnt having any luck and whilst poking around their site I remembered they posted their news on twitter and voila.
      Enjoy,

      Dan

      posted in General Discussion
      N
      number1dan
    • 1 / 1