Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    mmm-weatherchart module does not show

    Troubleshooting
    2
    6
    73
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      LanceInMN last edited by

      I have been setting up a new MagicMirror and have been adding new modules as I go. I installed and configured mmm-weatherchart, but have not yet been able to get it to display. At first I thought it was a problem with MMM-Pages, as I had it set to display on page 2, but I have disabled all my modules, including MMM-Pages, and I still get nothing to display.

      The pm2 log showed no errors, and displayed an URL of the weather chart image.

      However, I checked the cache directory, /home/pi/MagicMirror/modules/mmm-weatherchart/cache, and it was empty. I tested the URL above, and I saw the resulting .png file in my browser. I’m not sure what else to try.

      S 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @LanceInMN last edited by

        @LanceInMN if u open the developers window ctrl-shift-i, then select the console tab and scroll up to see any errors ( usually red text). you can filter to. message by module too, by placing part of the module name in the filter field ‘weatherc’ for example

        L 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @LanceInMN last edited by

          @LanceInMN also, you went to the url as noted in the readme to get the three location based items for the config, right?

          L 1 Reply Last reply Reply Quote 0
          • L
            LanceInMN @sdetweil last edited by

            @sdetweil
            Here is my console output:

            (index):1 [Intervention] Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
            main.js:478 Initializing MagicMirror.
            translator.js:202 Loading core translation file: translations/en.json
            translator.js:227 Loading core translation fallback file: translations/en.json
            loader.js:175 Load script: modules/mmm-weatherchart//mmm-weatherchart.js
            module.js:486 Module registered: mmm-weatherchart
            loader.js:147 Bootstrapping module: mmm-weatherchart
            loader.js:175 Load script: vendor/node_modules/moment/min/moment-with-locales.js
            loader.js:152 Scripts loaded for: mmm-weatherchart
            loader.js:154 Styles loaded for: mmm-weatherchart
            loader.js:156 Translations loaded for: mmm-weatherchart
            loader.js:194 Load stylesheet: css/custom.css
            :8080/modules/mmm-weatherchart//mmm-weatherchart.js:59 Starting module: mmm-weatherchart
            main.js:496 All modules started!
            :8080/undefined:1 Failed to load resource: the server responded with a status of 404 (Not Found)
            /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure
              protocols.This exposes users of this app to unnecessary security risks.
              Consider loading the following resources over HTTPS or FTPS. 
             - http://0.0.0.0:8080/css/main.css
            - http://0.0.0.0:8080/fonts/roboto.css
            - http://0.0.0.0:8080/socket.io/socket.io.js
            - http://0.0.0.0:8080/vendor/node_modules/nunjucks/browser/nunjucks.min.js
            - http://0.0.0.0:8080/js/defaults.js
            - http://0.0.0.0:8080/config/config.js
            - http://0.0.0.0:8080/vendor/vendor.js
            - http://0.0.0.0:8080/modules/default/defaultmodules.js
            - http://0.0.0.0:8080/js/logger.js
            - http://0.0.0.0:8080/translations/translations.js
            - http://0.0.0.0:8080/js/translator.js
            - http://0.0.0.0:8080/js/class.js
            - http://0.0.0.0:8080/js/module.js
            - http://0.0.0.0:8080/js/loader.js
            - http://0.0.0.0:8080/js/socketclient.js
            - http://0.0.0.0:8080/js/main.js
            - http://0.0.0.0:8080/fonts/node_modules/roboto-fontface/fonts/roboto-condensed/Roboto-Condensed-Regular.woff2
            - http://0.0.0.0:8080/translations/en.json
            - http://0.0.0.0:8080/translations/en.json
            - http://0.0.0.0:8080/modules/mmm-weatherchart//mmm-weatherchart.js
            - http://0.0.0.0:8080/vendor/node_modules/moment/min/moment-with-locales.js
            - http://0.0.0.0:8080/css/custom.css
              
             
            For more information and help, consult
            https://electronjs.org/docs/tutorial/security.
             This warning will not show up
            once the app is packaged.
            warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95
            /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
                Policy set or a policy with "unsafe-eval" enabled. This exposes users of
                this app to unnecessary security risks.
             
            For more information and help, consult
            https://electronjs.org/docs/tutorial/security.
             This warning will not show up
            once the app is packaged.
            (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145
            map-1595368293822.png:1 Failed to load resource: the server responded with a status of 404 (Not Found)
            
            1 Reply Last reply Reply Quote 0
            • L
              LanceInMN @sdetweil last edited by sdetweil

              @sdetweil
              Here is the module configuration:

              {
              			module: "mmm-weatherchart",
              			//disabled: true,
              			position: "lower_third", 
              			config: {
              				country: "United_States", 
              				area: "Minnesota", 
              				city: "Saint_Paul", 
              				updateInterval: 60 * 60 * 1000, // update every hour
              				hideBorder: true, // whether or not a border with city name should be shown
              				negativeImage: false, // whether or not the default white image should be inverted
              				hoursToShow: -1, // Cut the image down to show less than the full 48 hour forecast. -1 to show everything.
              				// mmDirectory: "/home/pi/MagicMirror/" // required for caching; adjust if it differs
              			}
              		},
              
              S 1 Reply Last reply Reply Quote 0
              • S
                sdetweil @LanceInMN last edited by sdetweil

                @LanceInMN I see two failures

                :8080/undefined:1
                and
                map-1595368293822.png:1

                the 1st is I think because getDom() is called before any data is retrieved

                I don’t know where the :1 is coming from. that would be a bad url.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy