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

poutr

@poutr

0
Reputation
945
Profile views
13
Posts
0
Followers
0
Following
Joined Jan 22, 2017, 9:53 PM
Last Online Aug 29, 2020, 12:34 PM

poutr Unfollow Follow

Latest posts made by poutr

  • RE: Run MM² on W10 to test modules - 404 and X-Content-Type-Options: nosniff

    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 ?

    posted in Troubleshooting
    P
    poutr
    Aug 29, 2020, 12:34 PM
  • Run MM² on W10 to test modules - 404 and X-Content-Type-Options: nosniff

    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 :

    • one is that mismatch MIME type (https://stackoverflow.com/questions/44657829/css-file-blocked-mime-type-mismatch-x-content-type-options-nosniff)
    • but I don’t even have a /MagicMirror/vendor/node_modules directory inside my /MagicMirror/vendor/ directory (while I do have the /MagicMirror/node_modules/ directory after the install).

    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
    
    posted in Troubleshooting
    P
    poutr
    Aug 29, 2020, 12:20 PM
  • RE: Newsfeed only loads once, then stops udating...

    @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.

    posted in Troubleshooting
    P
    poutr
    Mar 27, 2017, 2:52 PM
  • [newsfeed] (default module) - get stuck after first RSS download and does not refresh reliably

    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
    
    posted in Troubleshooting
    P
    poutr
    Mar 20, 2017, 9:31 AM
  • RE: Please **review** my code, since I lack experience - mmm_velib, A module for bike sharing schemes in Europe

    @Brice Thanks!

    ok for the format, will do that.

    I am uneasy about removing the number from the name :

    • It comes as it from the JCDecaux server. Any parsing from my part would be under risk from future modifications.
    • The number is the ID, it feels more precise than a ‘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

    posted in Development
    P
    poutr
    Feb 21, 2017, 6:21 PM
  • mmm_velib : bike sharing information for Paris - Velib, Lyon - Velov, Marseille - LeVélo, Brussels - Villo, Dublin - dublinBikes, Sevilla - Sevici, Toyama - , Vilnius - CycloCity and more.

    alt text

    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)

    posted in Transport
    P
    poutr
    Feb 6, 2017, 8:32 PM
  • RE: Please **review** my code, since I lack experience - mmm_velib, A module for bike sharing schemes in Europe

    @yawns ty, i will try it !

    posted in Development
    P
    poutr
    Feb 6, 2017, 8:08 PM
  • RE: Please **review** my code, since I lack experience - mmm_velib, A module for bike sharing schemes in Europe

    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.

    posted in Development
    P
    poutr
    Feb 6, 2017, 7:23 PM
  • RE: Please **review** my code, since I lack experience - mmm_velib, A module for bike sharing schemes in Europe

    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 ?

    posted in Development
    P
    poutr
    Feb 6, 2017, 1:36 PM
  • Please **review** my code, since I lack experience - mmm_velib, A module for bike sharing schemes in Europe

    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 :

    • almost no experience on JS, html, css and node.
    • Not that objective on my own work.

    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 ?

    posted in Development
    P
    poutr
    Feb 6, 2017, 12:18 PM
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy