Hello, just coming back from doing that (as I wrote I would) and it worked \o/ Thanks for confirming it’s the correct solution
Edit : how do I close the topic ? can we add this tip to the documentation ?
Hello, just coming back from doing that (as I wrote I would) and it worked \o/ Thanks for confirming it’s the correct solution
Edit : how do I close the topic ? can we add this tip to the documentation ?
Hello,
Trying to run MM² on my w10 laptop with node version 12.18.3.
git clone & npm install, config file with ip whitelist & npm run server ( https://docs.magicmirror.builders/getting-started/installation.html#usage )
The application starts and I can open localhost:8080 and it’s a black screen.
Main errors is a variation of :
GET http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
[HTTP/1.1 404 Not Found 29ms]
The resource from "http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js" was blocked due to MIME type (« text/html ») mismatch (X-Content-Type-Options: nosniff).
At the bottom of the post are all the dev tools console logs.
So, I got 2 issues :
What is happening ? Should I run a npm install inside each sub-directory of /MagicMirror/ ? Do I need to modify the html of MM² to follow the stackoverflow answer?
Or is there a special case for running it on w10 / node 12 ?
Thanks for any tips. I will update my post with npm install in every sub-directory results.
GEThttp://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
[HTTP/1.1 404 Not Found 29ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
GEThttp://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
[HTTP/1.1 404 Not Found 2ms]
downloadable font: download failed (font-family: "Roboto Condensed" style:normal weight:400 stretch:100 src index:2): status=2147746065 source: http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
GEThttp://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
[HTTP/1.1 404 Not Found 3ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Échec du chargement pour l’élément <script> dont la source est « http://localhost:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js ». localhost:8080:41:1
Initializing MagicMirror. main.js:478:8
Loading core translation file: translations/en.json translator.js:202:9
Loading core translation fallback file: translations/en.json translator.js:227:9
Load script: modules/default/alert//alert.js loader.js:175:9
GEThttp://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff
[HTTP/1.1 404 Not Found 4ms]
downloadable font: download failed (font-family: "Roboto Condensed" style:normal weight:400 stretch:100 src index:3): status=2147746065 source: http://localhost:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff
Module registered: alert module.js:486:6
Bootstrapping module: alert loader.js:147:7
Load script: modules/default/alert/notificationFx.js loader.js:175:9
Scripts loaded for: alert loader.js:152:8
Load stylesheet: modules/default/alert/notificationFx.css loader.js:194:9
Load stylesheet: vendor/css/font-awesome.css loader.js:194:9
GEThttp://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css
[HTTP/1.1 404 Not Found 3ms]
GEThttp://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css
[HTTP/1.1 404 Not Found 4ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/all.min.css » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/@fortawesome/fontawesome-free/css/v4-shims.min.css » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Error on loading stylesheet: vendor/css/font-awesome.css loader.js:205:10
Styles loaded for: alert loader.js:154:9
alert - Load translation fallback: translations/en.json translator.js:175:9
Translations loaded for: alert loader.js:156:10
Load script: modules/default/updatenotification//updatenotification.js loader.js:175:9
Module registered: updatenotification module.js:486:6
Bootstrapping module: updatenotification loader.js:147:7
Scripts loaded for: updatenotification loader.js:152:8
Styles loaded for: updatenotification loader.js:154:9
Translations loaded for: updatenotification loader.js:156:10
Load script: modules/default/clock//clock.js loader.js:175:9
Module registered: clock module.js:486:6
Bootstrapping module: clock loader.js:147:7
Load script: vendor/node_modules/moment/min/moment-with-locales.js loader.js:175:9
GEThttp://localhost:8080/vendor/node_modules/moment/min/moment-with-locales.js
[HTTP/1.1 404 Not Found 3ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/moment/min/moment-with-locales.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Échec du chargement pour l’élément <script> dont la source est « http://localhost:8080/vendor/node_modules/moment/min/moment-with-locales.js ». localhost:8080:1:1
Error on loading script: vendor/node_modules/moment/min/moment-with-locales.js loader.js:185:10
Load script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js loader.js:175:9
GEThttp://localhost:8080/vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js
[HTTP/1.1 404 Not Found 2ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Échec du chargement pour l’élément <script> dont la source est « http://localhost:8080/vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js ». localhost:8080:1:1
Error on loading script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js loader.js:185:10
Load script: vendor/node_modules/suncalc/suncalc.js loader.js:175:9
GEThttp://localhost:8080/vendor/node_modules/suncalc/suncalc.js
[HTTP/1.1 404 Not Found 3ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/suncalc/suncalc.js » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Error on loading script: vendor/node_modules/suncalc/suncalc.js loader.js:185:10
Échec du chargement pour l’élément <script> dont la source est « http://localhost:8080/vendor/node_modules/suncalc/suncalc.js ». localhost:8080:1:1
Scripts loaded for: clock loader.js:152:8
Load stylesheet: modules/default/clock/clock_styles.css loader.js:194:9
Styles loaded for: clock loader.js:154:9
Translations loaded for: clock loader.js:156:10
Load script: modules/default/calendar//calendar.js loader.js:175:9
Module registered: calendar module.js:486:6
Bootstrapping module: calendar loader.js:147:7
File already loaded: moment.js loader.js:235:9
Scripts loaded for: calendar loader.js:152:8
Load stylesheet: modules/default/calendar/calendar.css loader.js:194:9
File already loaded: font-awesome.css loader.js:235:9
Styles loaded for: calendar loader.js:154:9
Translations loaded for: calendar loader.js:156:10
Load script: modules/default/compliments//compliments.js loader.js:175:9
Module registered: compliments module.js:486:6
Bootstrapping module: compliments loader.js:147:7
File already loaded: moment.js loader.js:235:9
Scripts loaded for: compliments loader.js:152:8
Styles loaded for: compliments loader.js:154:9
Translations loaded for: compliments loader.js:156:10
Load script: modules/default/currentweather//currentweather.js loader.js:175:9
Module registered: currentweather module.js:486:6
Bootstrapping module: currentweather loader.js:147:7
File already loaded: moment.js loader.js:235:9
Scripts loaded for: currentweather loader.js:152:8
Load stylesheet: vendor/node_modules/weathericons/css/weather-icons.css loader.js:194:9
GEThttp://localhost:8080/vendor/node_modules/weathericons/css/weather-icons.css
[HTTP/1.1 404 Not Found 2ms]
La ressource à l’adresse « http://localhost:8080/vendor/node_modules/weathericons/css/weather-icons.css » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Error on loading stylesheet: vendor/node_modules/weathericons/css/weather-icons.css loader.js:205:10
Load stylesheet: modules/default/currentweather/currentweather.css loader.js:194:9
Styles loaded for: currentweather loader.js:154:9
Translations loaded for: currentweather loader.js:156:10
Load script: modules/default/weatherforecast//weatherforecast.js loader.js:175:9
Module registered: weatherforecast module.js:486:6
Bootstrapping module: weatherforecast loader.js:147:7
File already loaded: moment.js loader.js:235:9
Scripts loaded for: weatherforecast loader.js:152:8
File already loaded: weather-icons.css loader.js:235:9
Load stylesheet: modules/default/weatherforecast/weatherforecast.css loader.js:194:9
Styles loaded for: weatherforecast loader.js:154:9
Translations loaded for: weatherforecast loader.js:156:10
Load script: modules/default/newsfeed//newsfeed.js loader.js:175:9
Module registered: newsfeed module.js:486:6
Bootstrapping module: newsfeed loader.js:147:7
File already loaded: moment.js loader.js:235:9
Scripts loaded for: newsfeed loader.js:152:8
Styles loaded for: newsfeed loader.js:154:9
Translations loaded for: newsfeed loader.js:156:10
Load stylesheet: css/custom.css loader.js:194:9
GEThttp://localhost:8080/css/custom.css
[HTTP/1.1 404 Not Found 2ms]
La ressource à l’adresse « http://localhost:8080/css/custom.css » a été bloquée en raison d’un type MIME (« text/html ») incorrect (X-Content-Type-Options: nosniff).
localhost:8080
Error on loading stylesheet: css/custom.css loader.js:205:10
Starting module: alert alert.js:162:7
Start updatenotification updatenotification.js:19:7
Starting module: clock clock.js:46:7
Uncaught ReferenceError: moment is not defined
@Medo In my experience the source itself can be an issue. See my post here, I ditched these two RSS feed and no more trouble : https://forum.magicmirror.builders/topic/2116/newsfeed-default-module-get-stuck-after-first-rss-download-and-does-not-refresh-reliably
So it’s not constant behaviour.
Hi,
I am using the default newsfeed module and the news get stuck.
Below are the logs with the error ENOTFOUND :
I tried to search StackOverflow but I am not knowledgeable enough in javascript to understand what to do. Any help ?
mm-start-error-0.log
{ Error: getaddrinfo ENOTFOUND www.lemonde.fr www.lemonde.fr:80
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'www.lemonde.fr',
host: 'www.lemonde.fr',
port: 80 }
{ Error: getaddrinfo ENOTFOUND www.economist.com www.economist.com:80
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'www.economist.com',
host: 'www.economist.com',
port: 80 }
And from the
mm-start-out-0.log
> magicmirror@2.1.0 start /home/pi/MagicMirror
> electron js/electron.js
Starting MagicMirror: v2.1.0
Loading config ...
Loading module helpers ...
No helper found for module: alert.
No helper found for module: clock.
Initializing new module helper ...
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper ...
Initializing new module helper ...
All module helpers loaded.
Starting server op port 8080 ...
Server started ...
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Connecting socket for: mmm_velib
Sockets connected & modules started ...
Launching application.
Create new calendar fetcher for url: https://calendar.google.com[XYZ]basic.ics - Interval: 300000
Create new calendar fetcher for url: https://calendar.google.com/[XYZ]basic.ics - Interval: 300000
Create new news fetcher for url: http://www.lemonde.fr/rss/une.xml - Interval: 300000
Create new news fetcher for url: http://www.economist.com/sections/international/rss.xml - Interval: 300000
> magicmirror@2.1.0 start /home/pi/MagicMirror
> electron js/electron.js
Starting MagicMirror: v2.1.0
Loading config ...
Loading module helpers ...
No helper found for module: alert.
No helper found for module: clock.
Initializing new module helper ...
No helper found for module: compliments.
No helper found for module: currentweather.
No helper found for module: weatherforecast.
Initializing new module helper ...
Initializing new module helper ...
Initializing new module helper ...
All module helpers loaded.
Starting server op port 8080 ...
Server started ...
Connecting socket for: calendar
Starting node helper for: calendar
Connecting socket for: newsfeed
Starting module: newsfeed
Connecting socket for: mmm_velib
Connecting socket for: MMM-Remote-Control
Starting node helper for: MMM-Remote-Control
Sockets connected & modules started ...
Launching application.
Create new calendar fetcher for url: https://calendar.google.com/calendar/[XYZ]/basic.ics - Interval: 300000
Create new calendar fetcher for url: https://calendar.google.com/[XYZ]basic.ics - Interval: 300000
Create new news fetcher for url: http://www.lemonde.fr/rss/une.xml - Interval: 300000
Create new news fetcher for url: http://www.economist.com/sections/international/rss.xml - Interval: 300000
Powering off HDMI
Powering on HDMI with preferred settings
Whoops! There was an uncaught exception...
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
Whoops! There was an uncaught exception...
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
@Brice Thanks!
ok for the format, will do that.
I am uneasy about removing the number from the name :
I would need more users’ feedback for this point but with a grand total of one user ‘me’, I think I will let it like this, don’t you agree?
cheers
Clock module for scale.
Full list of supported cities below.
Github : https://github.com/Poutrathor/mmm_velib
Enjoy
Amiens (France)
Besançon (France)
Brussels (Belgium)
Brisbane (Australia)
Cergy-Pontoise (France)
Créteil (France)
Cordoba (Spain)
Dublin (Ireland)
Gijon (Spain)
Gothenburg (Sweden)
Kazan (Russia)
Lillestrøm (Norway)
Ljubljana (Slovenia)
Luxembourg (Luxembourg)
Lyon (France)
Marseille (France)
Mulhouse (France)
Namur (Belgium)
Nancy (France)
Nantes (France)
Paris (France)
Rouen (France)
Santander (Spain)
Seville (Spain)
Toulouse (France)
Toyama (Japan)
Valencia (Spain)
Vienna (Austria)
Vilnius (Lithuania)
Ok, I have done the code clean up.
I use this call below to get the property value and not the propetry name, e.g. to get “Vélib’” and not “PARIS”. Am I right ?
var contractName = this.stationsData[0].contract_name.toUpperCase();
if (this.contractList.hasOwnProperty(contractName)) {
marque = this.contractList[contractName];
}
If there is no other issues spotted, that’s great :)
Stupid question : how does one update his 3rd party module from github ? I used git clone https://github.com/Name/repo
to install it on my mirror, but I don’t get how to update locally when the master on github is updated. Fetch failed me (no commit in common or something). I deleted and clone again but that’s so ugly.
Thanks,
Yup, I have to clean this up. I get your fancy code over the switch case, that’s nice writing, I like it.
Anything else I should change, double proof or something ?
Hi,
I finished this small module and I would greatly appreciate if people with experience could review the code. It is based on default module architecture calendar and newsfeed.
It’s a live update of (chosen by users) bike sharing stations. Should cover quite a few cities too.
https://github.com/Poutrathor/mmm_velib
I think it is good right now but :
I let the logs and comment to help with reviewing.
I hope the readme.md is clear enough.
Thank you very much for your time :)
PS : Should I post it now to showcase or should I wait someone has checked for issues before ?