• 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-NOAA - Another Weather Module

Scheduled Pinned Locked Moved System
690 Posts 77 Posters 2.3m Views 70 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.
  • C Offline
    cowboysdude Module Developer @PILuke
    last edited by cowboysdude Oct 16, 2018, 2:57 AM Oct 16, 2018, 2:05 AM

    @piluke I will look into it. However the one problem AW provider does have is at times when you’re just starting the module you have to reload it to get the 4 day forecast…why, I’m not really sure it’s just how it’s been working.

    I’ve made some changes but a few more need to be made here’s an example of the update:

    0_1539658630187_de.jpg

    P 1 Reply Last reply Oct 18, 2018, 8:54 PM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @PILuke
      last edited by cowboysdude Oct 16, 2018, 11:45 AM Oct 16, 2018, 11:38 AM

      @piluke the updated aw.js is uploaded to git hub.

      Do a git pull and the config has changed to include your zip…
      REMEMBER YOU MAY HAVE TO RELOAD IT TO GET THE BOTTOM FORECAST…tis an accuweather issue…

      {
      			disabled: false,
      			module: 'MMM-NOAA3',
      		 	position: 'top_right',
      		     	config: {
      				provider: "accuweather",
      				apiKey: "xxxxxxxxxxxx",
      				airKey: "yyyyyyyyy",
      				css: "NOAA3", 
      				userlat: "45.483219",  
      				userlon: "9.203567"  
      			        zip: "11111" //YOUR ZIPCODE	
                                 }
      		},
      

      0_1539689935771_de.jpg

      1 Reply Last reply Reply Quote 0
      • C Offline
        cowboysdude Module Developer
        last edited by Oct 18, 2018, 12:03 AM

        Still working on openweather api as time permits…it’s a complete train wreck LOL

        Something has changed…but I am working to fix it.

        1 Reply Last reply Reply Quote 1
        • P Offline
          PILuke @cowboysdude
          last edited by Oct 18, 2018, 8:54 PM

          @cowboysdude many many thanks for your help and your time.
          Now the module is working.
          I can see current conditions and forecast (without reload the page) but … they are not correct. :-)
          I make some test, with my zip code the aw system identify a city in Mexico not in Italy!

          I think it’s necessary to identify a single locationKey with aw API.
          I found three way:
          by lat and lon:
          https://developer.accuweather.com/accuweather-locations-api/apis/get/locations/v1/cities/geoposition/search

          or by zip code:
          https://developer.accuweather.com/accuweather-locations-api/apis/get/locations/v1/postalcodes/search

          or by name:
          https://developer.accuweather.com/accuweather-locations-api/apis/get/locations/v1/cities/search

          but i don’t know how to use it in javascript…

          Infact if I put (in config.js) the right locationKey for my city instead zipcode the module work perfectly.

          C 1 Reply Last reply Oct 19, 2018, 1:05 AM Reply Quote 0
          • C Offline
            cowboysdude Module Developer @PILuke
            last edited by Oct 19, 2018, 1:05 AM

            @piluke Okay so use your location key LOL

            P 1 Reply Last reply Oct 19, 2018, 12:35 PM Reply Quote 1
            • G Offline
              gh057
              last edited by Oct 19, 2018, 10:00 AM

              @cowboysdude thank you for your module, the ability to use the module with various providers is really something that makes a difference!

              Would you consider adding a wind direction (icon or text) in a future update ?

              1 Reply Last reply Reply Quote 0
              • P Offline
                PILuke @cowboysdude
                last edited by Oct 19, 2018, 12:35 PM

                @cowboysdude yes, of course :-)
                It’s better to modify the README.md for not to use a zip code but a Locationkey from accuweather in the config file.
                Many thanks

                C 1 Reply Last reply Oct 20, 2018, 3:08 AM Reply Quote 1
                • C Offline
                  cowboysdude Module Developer @PILuke
                  last edited by Oct 20, 2018, 3:08 AM

                  @piluke You could always do a pull request to modify the readme on github ;)

                  1 Reply Last reply Reply Quote 1
                  • C Offline
                    cowboysdude Module Developer
                    last edited by cowboysdude Oct 28, 2018, 9:47 PM Oct 28, 2018, 9:47 PM

                    Just updated OpenWeather and the main js…had issues with the forecast NOT loading…it’s all working now. :)

                    In a terminal window go to:

                    MagicMirror/modules/MMM-NOAA3
                    type ‘git pull’ to update!

                    J 1 Reply Last reply Oct 29, 2018, 9:26 PM Reply Quote 1
                    • J Offline
                      Johans @cowboysdude
                      last edited by Oct 29, 2018, 9:26 PM

                      @cowboysdude

                      As always, great job!
                      Didn’t noticed and I don’t know if it has to do with the upgrade or not.
                      saw this message in the terminal window, but all seems to work fine for me.
                      Just wanted to let you know.

                      Whoops! There was an uncaught exception...
                      TypeError: Cannot read property 'pollution' of undefined
                          at Object.parseAIR (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:179:35)
                          at Request._callback (/home/pi/MagicMirror/modules/MMM-NOAA3/providers/ds.js:171:28)
                          at Request.self.callback (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:185:22)
                          at emitTwo (events.js:126:13)
                          at Request.emit (events.js:214:7)
                          at Request.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1161:10)
                          at emitOne (events.js:116:13)
                          at Request.emit (events.js:211:7)
                          at IncomingMessage.<anonymous> (/home/pi/MagicMirror/modules/MMM-NOAA3/node_modules/request/request.js:1083:12)
                          at Object.onceWrapper (events.js:313:30)
                      
                      
                      C 1 Reply Last reply Oct 31, 2018, 1:23 AM Reply Quote 0
                      • 1
                      • 2
                      • 54
                      • 55
                      • 56
                      • 57
                      • 58
                      • 68
                      • 69
                      • 56 / 69
                      • 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