Does anyone know what happend to @bugsounet and his MMM-Pir module?
He seems to have been banned from this forum and his module is no longer available on Github.
Does anyone know what happend to @bugsounet and his MMM-Pir module?
He seems to have been banned from this forum and his module is no longer available on Github.
Would’ve been nice if there were (at least a couple) basic libs with long time support. Security fixes, maybe some added functionality now and then, but no breaking changes…
The actual risk of almost all vulnerabilities is quite low indeed because of the way our systems are setup. It’s just the earie feeling of seeing all these critical issues while installing my modules that doesn’t feel right.
Hi everyone,
As a developer/maintainer of a couple of MM modules I’m really wondering how everyone is keeping their modules’ dependencies up to date.
An easy thing to do would be to run npm audit fix on my repos and/or merge all PRs from dependabot, but I’m too worried about breaking changes in dependencies. I wouldn’t know how to find the time to extensively test and fix all functionality in the modules. Especially if it would break functionality that someone else is using, that I’m not myself.
How do other developer handle this?
Chris
Hi @3squaremirror,
At the time it’s not configurable.
If you’re able to work out a fix and create a pull request, I’d be happy to include it in my version.
If you’re using my fork, there’s a detailed description of the some what complex setup. Did you follow those steps?
@bhepler Thanks! Switching away from the fake driver seems to fix it.
Hi all,
Finally got to building my own MagicMirror and am quite pleased with the result. I am however running into an issue I can’t get fixed on my own. I’m hoping someone out here might have a good suggestion that will fix the issue.
When my mirror’s been on for a couple of minutes the screen starts flashing and shows green lines about every other line on the display.
I have been searching for solutions and tried some stuff to fix it, including:
The weird this is, if I disable MagicMirror (pm2 stop mm) before it starts flashing, it won’t flash even after an hour. If it has started flashing nothing seems to help, except turning off and on power or a full reboot of the pi.
I’m using a Raspberry pi 3B+
Edit: here’s a short video of what I see:
https://youtu.be/_qaLOZ1Pj7E
@roramirez
Except for one of the errors I think all can still be explained by my last post.
@roramirez sorry, haven’t had much time to spend on MagicMirror lately.
My guess is that some of the tests take too long. Especially the ones actually starting MM and not just load a module.
I imagine Travis runs the tests in some sort of container with multiple containers running on the same system. If there is some heavy load at the same time as the MM test is run this might slow down our test with a certain factor. Seeing the difference in the usual runtime between tests (couple of ms vs multiple seconds) makes me think some of our tests are on the heavier end. Having a multiple second test delayed by a factor, say, 2 makes it easily run 5 seconds. Hitting the 5 sec maximum (see log).
Two possibilities I see to fix this:
Hopefully this helps.
Best regards and thanks for keeping this thread alive!
@roramirez my tests ran on Ubuntu.
The failed build you’re linking has timeouts. That’s the issue I added to the Trello board. We could increase the timeout a bit and see if it happens again in the next days.
Ask Mich to re-run the failed build, he should be able to click that option in Travis, being the owner of the project. See if that fails again. That resolved it for me before.
Weird… don’t see anything wrong with your code and it also runs fine on my machine…
Probably not really helpful, though, sorry
Hi @feedparakeet,
The MMM-dynchart was a sample used to show some ideas.
A better example for you would be my Vitadock module:
https://github.com/qistoph/MMM-vitadock
Maybe you can use it to base your module on.
If you could give a more detailed description of what you what to graph, I might be able to help you.
@strawberry-3.141
How about this?
https://github.com/qistoph/MagicMirror/commit/406ae4e8c37cbf7e31c89f5341d7715bacbcf0d2
try {
expect(fileKeys).to.deep.equal(baseKeys);
} catch(e) {
if (e instanceof chai.AssertionError) {
this.skip();
} else {
throw e;
}
}
Two commits I’ve worked on for the testing.
Check keys in the translation files. Produces errors currently, so I’ve added .skip.
https://github.com/qistoph/MagicMirror/commit/123392c54934e49a397d586c1fb8dbcc4cc5d12b
To prevent loading app.js from corrupting the Mocha test environment, I suggest to execute the app.js in a virtual environment. This can also serve as an example for future test cases where code needs to be executed in the global namespace.
https://github.com/qistoph/MagicMirror/commit/cd8bee1371ffc6cce7b7bf44f85cd03705e4c1bd
Any thoughts before I submit a PR?
Okay, just another brainfart.
For the tests to run consistently and in such a way that we can test whatever is needed, we’re probably going to need a separate configuration file, maybe even a couple. If I’ve read the code correctly, we could set nodeIntegration in this config, without touching the code in MM to check for environment settings…
This would be cleaner imho
I agree, seeing MagicMirror become such a great success with lots of contributions and improvements is really nice. To keep the quality consistent and MagicMirror reliable with so many changes, it would really help to run tests automatically as much as possible.
Maybe I’ll be able to work on some test-cases too, so feel free to include me in any communication. I’m also on Trello, so would be able to join there too.
Good initiative!