• 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
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-NOAA3 No 4 day forecast showing

Scheduled Pinned Locked Moved Solved Troubleshooting
11 Posts 4 Posters 3.4k Views 4 Watching
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.
  • B Offline
    BillW
    last edited by BillW Apr 14, 2019, 1:00 PM Apr 14, 2019, 12:55 PM

    Thanks for the reply! Here’s a copy of my config for the NOAA3 weather
    {
    module: ‘MMM-NOAA3’,
    position: ‘top_right’,
    config: {
    provider: “openweather”, // From list above
    apiKey: “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx9”, // From one of the providers listed above
    airKey: “xxxxxxxxxxxxxxxn”,
    css: “NOAA4”,
    userlat: “34.139”,
    userlon: “-79.6879”,
    updateInterval: 30 * 60 * 1000,
    }
    }

    Again, thanks for your help!
    Bill

    forgot the coma after the userlon entry.

    M 1 Reply Last reply Apr 14, 2019, 8:31 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @BillW
      last edited by Mykle1 Apr 14, 2019, 8:51 PM Apr 14, 2019, 8:31 PM

      @BillW

      I think I have found your problem. sir. I had forgotten about this until I loaded it up. It appears the module displays before it has all the data from the api. I believe this is specific to the openweather api because I don’t see this behavior using the darksky api.

      I used your config entry (with the exception of your api keys). I even used your lat and lon values. The module did not show the 4 Day Forecast. However, if you press CONTROL R after MM loads then the module will load with the 4 day forecast. Or, I am quite sure, when the module updates the 4 day forecast will also load. I did not test the latter.

      The config I used:

      {
                disabled: f,
                module: 'MMM-NOAA3',
                position: 'bottom center',
                config: {
                   provider: "openweather",
                   apiKey:"your api key", 
                   airKey: "your air key",
                   css: "NOAA4", 
                   userlat: "34.139",
                   userlon: "-79.6879"
              }
      },
      

      The result:

      0_1555273878799_Screenshot from 2019-04-14 16-29-17.png

      EDIT

      If that does not work, please read this post regarding openweather api keys

      https://forum.magicmirror.builders/topic/10275/mmm-myweather-doesn-t-work-only-black-screen/4

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • B Offline
        BillW
        last edited by Apr 14, 2019, 9:27 PM

        Once again, thanks. I tried what you suggested and it worked (using Control R after the MM loads the module), however I plan on setting my MM up on a schedule to go off when I’m not at home so this is not practical for me. I also check out the link you provide about but dating my API key, when I use this key with the default weather module I get a 4 day forecast so I know it’s the most current one.

        So I went on line and setup an account with DarkSky and it worked the first time and after multiple reboots, this is what I’m looking for, however, now I have a new issue, see pic below. Now N/A appars after the temp.

        0_1555277158319_IMG_0472.jpg

        Sorry about the pic still learning some of the basics.

        M 1 Reply Last reply Apr 14, 2019, 10:56 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @BillW
          last edited by Mykle1 Apr 14, 2019, 10:57 PM Apr 14, 2019, 10:56 PM

          @BillW said in MMM-NOAA3 No 4 day forecast showing:

          however I plan on setting my MM up on a schedule to go off when I’m not at home so this is not practical for me.

          Using your openweather api, did you wait for the module to update? I’m 99% sure the module will update with the 4 Day Forecast. Only the initial load of the module will it be missing

          Try this config. Notice it is set to update every minute. Please wait the minute and see if the update doesn’t include the 4 Day Forecast. In this case, you know you can use the openweather API if you prefer it. Set the update to something you can deal with. 1 minute is excessive.

          {
                    disabled: f,
                    module: 'MMM-NOAA3',
                    position: 'top_right',
                    config: {
                        provider: "openweather",
                        apiKey: "YOURS",
                        airKey: "YOURS", // IF you want Air Quality Index
                        css: "NOAA4",
                        userlat: "34.139", 
                        userlon: "-79.6879",
                        updateInterval: 1 * 60 * 1000
                    }
                },
          

          Regarding the N/A using the darksky api. I am unable to reproduce that error.

          0_1555282433493_Screenshot from 2019-04-14 18-43-01.png

          Start your mirror using npm start dev and click on CONSOLE (Top menu bar) and scroll through. Report any errors (in red)

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • N Offline
            Nero
            last edited by Apr 20, 2020, 6:19 PM

            Hi, I have this module installed and everything is working apart from it does not display the 4 day forecast, I tried to run npm start dev also to try and find any errors like the last comment said but get this back -
            npm ERR! code ENOENT
            npm ERR! syscall open
            npm ERR! path /home/pi/package.json
            npm ERR! errno -2
            npm ERR! enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
            npm ERR! enoent This is related to npm not being able to find a file.
            npm ERR! enoent

            npm ERR! A complete log of this run can be found in:
            npm ERR! /home/pi/.npm/_logs/2020-04-20T18_18_53_502Z-debug.log

            M S 2 Replies Last reply Apr 21, 2020, 12:33 AM Reply Quote 0
            • M Offline
              Mykle1 Project Sponsor Module Developer @Nero
              last edited by Apr 21, 2020, 12:33 AM

              @Nero

              Did you install the dependencies as per the readme?

              Create a working config
              How to add modules

              N 1 Reply Last reply Apr 21, 2020, 5:58 PM Reply Quote 0
              • S Away
                sdetweil @Nero
                last edited by Apr 21, 2020, 12:39 AM

                @Nero you have to be in the MagicMirror folder, then npm start dev

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                N 1 Reply Last reply Apr 21, 2020, 6:00 PM Reply Quote 0
                • N Offline
                  Nero @Mykle1
                  last edited by Apr 21, 2020, 5:58 PM

                  @Mykle1 I followed the read me and just look over it again to double check.

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    Nero @sdetweil
                    last edited by Apr 21, 2020, 6:00 PM

                    @sdetweil I tried that but now get
                    npm ERR! code ELIFECYCLE
                    npm ERR! errno 1
                    npm ERR! magicmirror@2.11.0 start: DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"
                    npm ERR! Exit status 1
                    npm ERR!
                    npm ERR! Failed at the magicmirror@2.11.0 start script.
                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                    npm ERR! A complete log of this run can be found in:
                    npm ERR! /home/pi/.npm/_logs/2020-04-21T17_57_18_758Z-debug.log

                    1 Reply Last reply Reply Quote 0
                    • 1
                    • 2
                    • 1 / 2
                    • First post
                      Last post
                    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