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

    Topics

    • lavolp3L

      Mirror glass (50x50) for sale

      Watching Ignoring Scheduled Pinned Locked Moved Hardware
      1
      0 Votes
      1 Posts
      938 Views
      lavolp3L
      Hi all, I have one mirror glass to offer which I don’t have a use for anymore. Model: Pilkington Mirropane ChromeSpy 4mm Size: 500 x 500 mm Transmission: 8% Reflection: 48% It cost me 82€, I’d sell it for 60 € + shipping. I live in Germany close to Duisburg so pickup is of course possible as well. Let me know if you’re interested. Thanks!
    • lavolp3L

      Nunjucks and Chartjs / Javascript

      Watching Ignoring Scheduled Pinned Locked Moved Development
      15
      0 Votes
      15 Posts
      4k Views
      S
      @lavolp3 updateDom() returns a promise, but then IMMEDIATELY calls getDom()… so the wait is ineffective all you can do is check the dom to see if your minimum content some anchoring div) is present, and retry that until it is. then call updateDom() to force a refresh this is what I do in getDom(). i have an array of different charts to present // if we are not suspended/hidden due to sleep or whatever if (wself.suspended == false) { // make sure we don't start before the data gets here if (!this.loaded) { < - just a flag for first time this.loaded = true; return wself.wrapper; } else { // loop thru the data from the blynk server, one chart per data point/pin for (var pin_index = 0; pin_index < wself.config.Pins.length; pin_index++) { // get the pin text name. used for index into the data hash var this_pin = wself.config.Pins[pin_index]; // clear the work variable var canvas = null; // try to locate the existing chart if ((canvas = document.getElementById("myChart" + this_pin)) == null) { var c = document.createElement("div"); c.style.width = wself.config.width + "px"; c.style.height = wself.config.height + "px"; if (!wself.config.stacked) {c.style.display = "inline-block";} wself.wrapper.appendChild(c); canvas = document.createElement("canvas"); canvas.id = "myChart" + this_pin; c.appendChild(canvas); } // if the chart has been created if (wself.charts[pin_index] != null) { // destroy it, update doesn't work reliably wself.charts[pin_index].destroy(); // make it unreferenced wself.charts[pin_index] = 0; } // create it now, into the special div object for this chart wself.charts[pin_index] = new Chart(canvas, { my ‘schedule update’ asks for more data from my node_helper… it informs me when its back. and I call updateDom() after saving the data where getDom() will look u can see my code at https://github.com/sdetweil/WaterLevels
    • lavolp3L

      updateDom, getTemplateData, getDom, start etc: What function is called when?

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      5
      0 Votes
      5 Posts
      1k Views
      S
      @lavolp3 I also do not see any modules called twice.
    • lavolp3L

      How to have Python and JS talk to each other?

      Watching Ignoring Scheduled Pinned Locked Moved Development
      5
      0 Votes
      5 Posts
      1k Views
      S
      @strawberry-3-141 and that uses a larger wrapper of python scripts called PythonShell
    • lavolp3L

      MMM-PIR-Sensor with Radar sensor( RCWL-0516)

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Troubleshooting
      6
      0 Votes
      6 Posts
      2k Views
      B
      Does anyone have a nice housing for the sensor RCWL-0516? Mounting on a wooden frame, such as this one from the PIR [image: 1728896274142-pir-geh%C3%A4use.png] Thank you
    • lavolp3L

      Weatherboy / -girl

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Requests
      3
      1
      1 Votes
      3 Posts
      918 Views
      lavolp3L
      I have now managed to include the little guy in the MMM-DarkSkyForecast module: [image: 1562238963414-7196dc8d-e67d-4225-8bd1-56512df34ab5-image.png] BUT: I have used a sprite image from a google image search and need to ask the weather station provider for allowance to use/share it.
    • lavolp3L

      MMM-Quizduell

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Requests
      1
      0 Votes
      1 Posts
      683 Views
      lavolp3L
      Hi all, anyone interested in having a look at this python repository with me? https://github.com/mtschirs/quizduellapi #Quizduell API Inofficial interface to the Quizduell web API written in Python and distributed under GPLv3. Start games, write messages, find users and more. “Quizduell is the German-language version of the Swedish-language mobile app “Quizkampen” (Swedish: quiz) of the Swedish developer FEO Media AB for iOS and for the Android platform and Windows Phone. The players must answer more questions correctly in a variety of question categories than a selected or random opponent. The application has been downloaded more than 23 million times in eleven different languages ​​on the Google Play Store and the Apple App Store (as of March 2014), the German-language version has over 34 million with most players (as of March 2014)” An inofficial way to (somehow) use the quizduell REST API. I wonder if this could be recoded into a JS module? I’d like to work on this together with someone but I’m missing the abilities to know how and where to start. And I’m not common to Python. This module could show statistics on our mirror, running games and how much time is left for your turn. And later on maybe even a voice controlled round of Quizduell!?
    • lavolp3L

      Add further npm dependencies to basic MM installation

      Watching Ignoring Scheduled Pinned Locked Moved Feature Requests
      4
      0 Votes
      4 Posts
      1k Views
      lavolp3L
      @michmich said in Add further npm dependencies to basic MM installation: And how would we select which dependencies we include in MM and which dependencies we don’t? Well that is obviously a case-by-case decision and therefore a bit tricky, I admit. But from these two I’m sure they are valuable to the MM environment. A Google translation API (which tbh needs to be chosen carefully because one on npm is currently not working unfortunately) A Charting tool. So why not use them? It’s “only” a few JS files. However, it’s your decision and I fully respect your point.
    • lavolp3L

      Default Calendar optimization: suggestions?

      Watching Ignoring Scheduled Pinned Locked Moved Development
      2
      0 Votes
      2 Posts
      757 Views
      ?
      @lavolp3 My MMM-CalendarExt2 supports various formats. You can get some idea from it.
    • lavolp3L

      [Help!] svg Graph in module MMM-Strava

      Watching Ignoring Scheduled Pinned Locked Moved Development
      6
      0 Votes
      6 Posts
      2k Views
      lavolp3L
      @ianperrin Ian, I haven’t seen your latest reply, sorry, but meanwhile I’ve learnt how to deal with the templates and am implementing the progress bar myself. The nunjucks environment makes it much easier for me in the end. Look for a PR soon :-) Thanks again for your work on this! Having much fun with the API and would like to bloat the module much further. (–>motivation for summer)
    • lavolp3L

      Calendar showing 12h time format instead of 24h

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      2
      1
      0 Votes
      2 Posts
      1k Views
      lavolp3L
      Well I have found the problem. But it seems to have been resolved with a recent code update For those interested: getLocaleSpecification: function(timeFormat) { switch (timeFormat) { case 12: { return { longDateFormat: {LT: "h:mm A"} }; break; } case 24: { return { longDateFormat: {LT: "HH:mm"} }; break; } default: { return { longDateFormat: {LT: moment.localeData().longDateFormat("LT")} }; break; } } }, For case 24 The longDateFormat: hh:mm was wrong. It needs to be HH:mm. As said, was already changed. Thanks @MichMich
    • lavolp3L

      Weekdays in standard calendar module

      Watching Ignoring Scheduled Pinned Locked Moved Requests
      2
      0 Votes
      2 Posts
      1k Views
      lavolp3L
      @lavolp3 OK, for those who are interested I have managed to implement it myself locally into calendar.js You can see that “urgency” dates are now shown as weekdays (in the first calendar) and not as relative ones. I have added a further variable “urgencyStyle” to choose between relative (“in xx days”) and absolute (“xday”) dates as soon as urgency hits. ([image: 1540996456894-1658f9a8-ad7c-4f8a-bb4a-e2bc0a6f4050-image.png] Still working on the git workflow and creating a PR. Git is a monster :-)
    • lavolp3L

      MagicMirror freezes in a very odd way

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      4
      0 Votes
      4 Posts
      1k Views
      lavolp3L
      So I have a solution for now. I had the fake kms driver enabled for OpenGL. Mirror worked with these for some time but at some point not anymore. Going back to legacy drivers solved the issue for now…
    • lavolp3L

      Fifa World Cup overview

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved Requests soccer world cup sport
      25
      0 Votes
      25 Posts
      14k Views
      V
      I’ve updated my fork of MMM-MyScoreboard to update scores and game statuses for the World Cup games. Lots of Overtime / Shootouts to handle :) I also added a few other leagues. https://github.com/vincep5/MMM-MyScoreboard/tree/add_more_soccer
    • lavolp3L

      Faster Reload after changing config.js

      Watching Ignoring Scheduled Pinned Locked Moved Solved Troubleshooting
      7
      0 Votes
      7 Posts
      8k Views
      Mykle1M
      @justjim1220 Allllllllllrighty then! :-)
    • lavolp3L

      DailyDilbert

      Watching Ignoring Scheduled Pinned Locked Moved Requests
      20
      0 Votes
      20 Posts
      10k Views
      qu1queQ
      @lavolp3 Now it fits perfectly!! I’ve just have to make git pull inside the module folder. There’s no need to do npm install [image: 1566039990518-mirror_dilbert.png] Another question, I see that your module is not in the 3rd Party Modules of MM project https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules It would be a good idea to include it. Thanks for your work!!
    • lavolp3L

      Minutely Rain forecast (for Germany)

      Watching Ignoring Scheduled Pinned Locked Moved Requests module weather
      7
      0 Votes
      7 Posts
      3k Views
      pjkoelemanP
      @lavolp3 said in Minutely Rain forecast (for Germany): Do you happen to have an idea? Sorry at the moment I have not studied this. when I have time I can give it a try.
    • 1 / 1