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.

    Weather Underground Forecast (wuforecast)

    Scheduled Pinned Locked Moved Troubleshooting
    14 Posts 9 Posters 15.1k Views 6 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.
    • D Offline
      desq
      last edited by

      Thanks for your WU-Modul.

      especially I like the “precipitation probability” percentage.
      I´m tinkering with it to use the standard “weathericons” from Erik Flowers. (came with the Standard-Forecast Module)
      Perhaps you should add a “degree”-symbol behind the values.

      It would be nice if we could get one module for “currentweather” and the “forecast”. I think wunderground provides a json for all the data we need.
      (Wind, Direction, Sunset/Rise, etc…)
      If I find the time, I´ll give it a try. (perhaps someone who is more familiar with node/json etc. is faster.

      RedNaxR M 2 Replies Last reply Reply Quote 0
      • RedNaxR Offline
        RedNax Module Developer @desq
        last edited by

        @desq said in Weather Underground Forecast (wuforecast):

        It would be nice if we could get one module for “currentweather” and the “forecast”. I think wunderground provides a json for all the data we need.
        (Wind, Direction, Sunset/Rise, etc…)

        The WU mod i made has this all in one current/forecast with the Erik Flowers icons (needs updated icons as the ones that come with mm2 are older)… It’s just not a nicely rounded module yet. The README is still the original weatherforecast one… Translation is also not supported… (only metric).

        In the config you’ll have to provide
        apikey and pws variables.

        pws can be any WU api location info like:

        locid:NLXX8014;loctype:1

        or

        52.00,4.00

        or…

        Australia/Sydney country/city
        37.8,-122.4 latitude,longitude
        KJFK airport code
        pws:KCASANFR70 PWS id
        autoip AutoIP address location
        autoip.json?geo_ip=38.102.136.138 specific IP address location

        Disclaimer: this is a work in progress!

        1 Reply Last reply Reply Quote 0
        • M Offline
          mattlugar
          last edited by

          I was thinking about doing a dual-mod, but honestly there’s no advantage over having two separate mods. The json streams for the current weather and the forecast are separate on Weather Underground, so there’s no advantage on reducing the number of network/API calls. Secondly, it reduces flexibility as far as screen positioning of the mods goes (you’d have to keep them together in the same part of the screen).

          I’m pretty close to finishing my mod for getting current conditions from WU as well. I’m using JSON right now, but I’m trying to see if there’s a way to tap into the ‘realtime’ stream that they use for their flash gadgets that you can put on websites. Not sure if it is possible yet though.

          RedNaxR 1 Reply Last reply Reply Quote 0
          • RedNaxR Offline
            RedNax Module Developer @mattlugar
            last edited by

            @mattlugar

            No they’re not… They CAN be if you so desire, but you can combine several queries into one request…

            mine is /conditions/forecast10day/astronomy/ Which will give you current conditions, 10 day forecast and sun-/moon rise/set info in one payload.

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mattlugar @RedNax
              last edited by

              @RedNax Oh cool, didn’t even realize you could embed multiple API calls at the same time!!! :)

              1 Reply Last reply Reply Quote 0
              • J Offline
                jamesbond0
                last edited by

                Hello,

                do you have an example of the custom.css for the different colors (sun, rain, etc.).
                I did not get.

                greeting
                Stephan

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jghansen09
                  last edited by paviro

                  Hi,

                  I am very new to this (only have experience with VBA, simple C+ from using MATLAB, you get the point).

                  I used git clone https://github.com/MattLugar/wuforecast to download the files to my modules directory then changed the default weather module to the wuforecast module in the config.js file. However, when I run the Mirror program I get a completely black screen.

                  All of the files appear to have been downloaded correctly to the directory and I cant find any syntax errors in the config.js file. I wrote everything exactly as follows:

                  modules: [
                      {
                          module: 'wuforecast',
                          position: 'top_right',  // This can be any of the regions.
                                                      // Best results in left or right regions.
                          config: {
                              // See 'Configuration options' for more information.
                              location: 'France/Paris',
                              appid: 'abcde12345abcde12345abcde12345ab' //wunderground.com API key.
                          }
                      }
                  ]
                  

                  Any help?

                  Thank you!

                  1 Reply Last reply Reply Quote 0
                  • RedNaxR Offline
                    RedNax Module Developer
                    last edited by

                    If this is your entire config file, than it’s to be expected it doesn’t work…

                    Should be something like this (using thhe sample as an …example):

                    /* Magic Mirror Config Sample
                     *
                     * By Michael Teeuw http://michaelteeuw.nl
                     * MIT Licensed.
                     */
                    var config = {
                        port: 8080,
                    
                        language: 'en',
                        timeFormat: 24,
                        units: 'metric',
                    
                        modules: [{
                            module: 'alert',
                        }, {
                            module: ‘wuforecast’,
                            position: ‘top_right’, // This can be any of the regions.
                            // Best results in left or right regions.
                            config: {
                                // See ‘Configuration options’ for more information.
                                location: ‘France / Paris’,
                                appid: ‘abcde12345abcde12345abcde12345ab’ //wunderground.com API key.
                            }
                        }, {
                            module: 'clock',
                            position: 'top_left'
                        }, {
                            module: 'calendar',
                            header: 'US Holidays',
                            position: 'top_left',
                            config: {
                                calendars: [{
                                    symbol: 'calendar-check-o ',
                                    url: 'webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics'
                                }]
                            }
                        }, {
                            module: 'compliments',
                            position: 'lower_third'
                        }, {
                            module: 'currentweather',
                            position: 'top_right',
                            config: {
                                location: 'New York',
                                locationID: '', //ID from bulk.openweather.org/sample/
                                appid: 'YOUR_OPENWEATHER_API_KEY'
                            }
                        }, {
                            module: 'weatherforecast',
                            position: 'top_right',
                            header: 'Weather Forecast',
                            config: {
                                location: 'New York',
                                locationID: '5128581', //ID from bulk.openweather.org/sample/
                                appid: 'YOUR_OPENWEATHER_API_KEY'
                            }
                        }, {
                            module: 'newsfeed',
                            position: 'bottom_bar',
                            config: {
                                feeds: [{
                                    title: "New York Times",
                                    url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                                }],
                                showSourceTitle: true,
                                showPublishDate: true
                            }
                        }, ]
                    
                    };
                    
                    /*************** DO NOT EDIT THE LINE BELOW ***************/
                    if (typeof module !== 'undefined') {
                        module.exports = config;
                    }
                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      jghansen09 @RedNax
                      last edited by

                      @RedNax
                      That was not my entire config file, just the part inserting the wuforecast module. However I deleted and cloned the wuforecast files again without changing my config file and it works fine now. Any idea as to why that might have been?

                      Thank you for the reply!

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Andrew
                        last edited by

                        I had the same problem, but I found the solution:
                        You had to put the api key wuforecast and the location in config file and in wuforecast.js file .
                        After that worked.

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          cloudzombie
                          last edited by

                          Anybody that can help me config this for a US city would be much obliged, I have tried several different ways of displaying the city based on whats in the README, but it doesn’t work since I have a single name city the README says to list it as

                          ‘NY/New_York’

                          I am in Portland, Oregon, and have tried:

                          Portland/Oregon
                          portland/oregon
                          portland/Oregon

                          None of the above work. IS their some secret city code buried somewhere I can’t find?

                          strawberry 3.141S 1 Reply Last reply Reply Quote 0
                          • strawberry 3.141S Offline
                            strawberry 3.141 Project Sponsor Module Developer @cloudzombie
                            last edited by

                            @cloudzombie it must be the state and then the city try OR/Portland

                            Please create a github issue if you need help, so I can keep track

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              cloudzombie @strawberry 3.141
                              last edited by

                              @strawberry-3.141

                              Sweet man, that worked for that, only thing left is the icons don’t work, shows [] in place of them.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                DeanoAus
                                last edited by

                                Did you ever fix that? I have the same problem.

                                1 Reply Last reply Reply Quote 0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                • 1 / 1
                                • 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