@swvalenti If you really haven’t changed anything, can it be that they are not shown since 2019? I think I read somewhere here that for 2019 we need another link
Read the statement by Michael Teeuw here.
Posts made by lavolp3
-
RE: Default Calendar not Displaying Holidays
-
[Help!] svg Graph in module MMM-Strava
HI all,
I was trying to add an svg graph to the MMM-Strava module made by @ianperrin.
The idea was to have a yearly or 4-week goal for an activity and having a progress bar showing how much of this goal you reached already .
So I wanted to implement this progress bar:
https://codepen.io/davatron5000/pen/jzMmMESince we’re bound to Javascript from my understanding I have to set the DOM elements and attributes in the .js file.
I’ve tried it like this:createProgressBar: function() { var progressWrapper = document.createElement("div"); //this.log("Created Progress Bar Div") progressWrapper.className = "progressBarDiv small"; var svg = document.createElement("svg"); svg.className = "progressSVG"; svg.setAttribute("xmlns", "http://www.w3.org/2000/svg"); svg.setAttribute("height", "300px"); svg.setAttribute("width", "300px"); svg.setAttribute("viewBox", "0 0 300 300"); svg.setAttribute("data-value", "40"); progressBG = document.createElement("path"); progressBG.className = "bg"; progressBG.setAttribute("stroke", "#ccc"); progressBG.setAttribute("d", "M41 149.5a77 77 0 1 1 117.93 0"); progressBG.setAttribute("fill", "none"); svg.appendChild(progressBG); progressWrapper.appendChild(svg); return progressWrapper; },
and this is the css:
.MMM-Strava .progressBarDiv { display: block; width: 300px; height: 300px; } .MMM-Strava svg { width: 300px; height: 300px; } .MMM-Strava .bg { will-change: auto; stroke-width: 20px; stroke-miterlimit: round; transition: stroke-dashoffset 850ms ease-in-out; } .MMM-Strava .progressWrapper { display: grid; justify-content: center; align-items: center; }
Function is called and the wrapper div is returned without errors, but all i get is an empty div 300x300. The svg has a height/width of 0 and does not show anything.
What have I overseen.Any help highly appreciated!
-
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish said in MM Error - .AppleDouble and UnhandledPromiseRejectionWarning:
and will be very close to use it in real life!!!
I haven’t really been for two years. Lol.
-
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish This error/notice is solely within the Remote-Control module and not related to any other module. It does not influence your mirror performance at all.
If you can ignore it (which I couldnt), you might as well do. -
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
The issue is already raised
https://github.com/Jopyth/MMM-Remote-Control/issues/87And the solution si down below:
“It’s this line:
var baseUrl = result[0].refs.fetch;
for some modules it looks like simple-git fails. Adding a try catch block for it in my PR.” -
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish said in MM Error - .AppleDouble and UnhandledPromiseRejectionWarning:
So…you just have the same issue now but never noticed it before?
May have been updated in the past. Don’t know.
-
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish No.
Unhandled promise rejections are code stuff that can be overcome quite easily.Think of it like this.
You ask your program to do something outside (e.g. request data from somewhere else.
When it doesn’t work the “promise” of delivering something is rejected.
When this rejection is unhandled (the program isnt told what to do) you get this error -
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish OK I can confirm your errors. Had it disabled. By enabling the unhaldled promises come up.
Raise an issue. I’ll have a look at the code -
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish Well, great!! BUt oddly, I dont have this… and I have the module as well.
Do you have Jopyth’s original version installed? Or a fork? -
RE: MM Error - .AppleDouble and UnhandledPromiseRejectionWarning
@bolish That’s odd. Something doesn’t add up, sorry. I think a “then” is searched as well. But try these modules.
If not successfull you’d need to go with disabling one module after another