As you can see it says it misses the module “wiring-pi” in the error part.
Try running npm install wiring-pi
Let me know if that solves the issue.
As you can see it says it misses the module “wiring-pi” in the error part.
Try running npm install wiring-pi
Let me know if that solves the issue.
Could you try it with node serveronly ?
Sorry, no clue. :(
I’ve got the feeling we’re talking about something different.
The example:
this.expressApp.get('/foobar', function (req, res) {
res.send('GET request to /foobar');
})
does not serve any file. So talking about file location doesn’t make any sense in this case. In this example It just serves the text string GET request to /foobar
In the second example:
this.expressApp.use("/foobar" + this.name, this.expressApp.static(this.path + "/foobar"));
only the express.static(root, [options]) part refers to a file or folder. The root argument refers to the root directory from which the static assets are to be served.
More info about express.static can be found here: http://expressjs.com/en/api.html#express.static
@KirAsh4 it hasnt got anything to do with a file. It’s just a request, if you want to respond with the contents of a file, you need to do that yourself or use the following method if you want to feed a full folder:
this.expressApp.use("/foobar" + this.name, this.expressApp.static(this.path + "/foobar"));
If you are referring to this snippet:
start: function() {
this.expressApp.get('/foobar', function (req, res) {
res.send('GET request to /foobar');
});
}
The /foobar is referring to the url: http://localhost:8080/foobar
I think my girlfriend will be extremely jealous! Nice work!
He is from the stone age. He doesn’t know what a laser is. 😱
Interesting. Could you give https://github.com/electron/electron-quick-start a try to see if that one works?
Just so you know, the node_helper can serve files as well: https://github.com/MichMich/MagicMirror/tree/master/modules#thisexpressapp
What OS are you running? What Node version are you running (if the installer didn’t update)?
I’ve just pushed V2.0.1 to stable.
https://github.com/MichMich/MagicMirror/releases/tag/v2.0.1
Are there any developers running Windows 10 who want to look into this issue?
https://github.com/MichMich/MagicMirror/issues/319
Best way to check your config.js is to check it using jshint.com or jslint.com - they will show you the errors if there are any.
What does it lockup? The fronted? Or the backend?
If it’s just the frontend, check your webinspector/console to see what’s going on.
@paviro that message is already there. OP must have missed it.
Wat do you see when you type date into your terminal?
Sorry, I don’t have any experience with openCV