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

Weatherforecast Wunderground module question

Scheduled Pinned Locked Moved Development
17 Posts 7 Posters 11.5k Views 5 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.
  • M Offline
    MichMich Admin
    last edited by May 13, 2016, 8:14 AM

    If you wrap the text in a div, you can specify the width of the div using CSS.

    Or, what you could do, is:

    forecastString = forecastString.replace(". ", ".<br>");
    

    This way the text will be wrapped after a period.

    1 Reply Last reply Reply Quote 0
    • R Offline
      RedNax Module Developer
      last edited by RedNax May 13, 2016, 8:33 AM May 13, 2016, 8:32 AM

      Thanks!

      As your example only works on the first ". ", i’m now using

      this.forecastText.replace(/\.\ /g, “.
      ”);

      btw, the current weather and forecast are in a single api call to wunderground so i’v incorporated both displays in this one module. Also using the current weathericons (windspeed/direction).

      1 Reply Last reply Reply Quote 0
      • M Offline
        MichMich Admin
        last edited by May 13, 2016, 8:39 AM

        Just curious: what’s the benefit of Wunderground?

        1 Reply Last reply Reply Quote 0
        • R Offline
          RedNax Module Developer
          last edited by May 13, 2016, 8:44 AM

          For me it’s the availability of local weatherstations (@ a location close to me). OpenWeatherMap’s closest match to my location is > 10km away.
          Also there’s an extreme amount of data available. Language settings which will provide texts (as in the pic above) in your local language…
          Also (i understand) it’s used a lot in domotica systems.

          Plus i thought it’d be fun to try :D

          1 Reply Last reply Reply Quote 0
          • M Offline
            MichMich Admin
            last edited by May 13, 2016, 8:47 AM

            Interesting. Don’t know how much time you want to spent on building it, but is would be awesome if you can change the current weather modules in a way a user can configure the weather source. So make it configurable.

            If you’re able to make a good stable solution for it (and built it in a way we can add other feeds as well), we could update the core modules.

            1 Reply Last reply Reply Quote 1
            • K Offline
              KirAsh4 Moderator
              last edited by May 13, 2016, 5:25 PM

              I’m actually working on my own WUnderground module as well. I like them also for finding a closest station, but also because for some dumb reason, OpenWeatherMap is often REALLY wrong when it comes to the current conditions. The forecast is fairly accurate, but many times it would say it’s 20-30 degrees cooler than it actually is in the current conditions. It’s the same thing when I look on their web site too, so I know it’s not the module messing up. It’s whatever they are using for data collecting, it’s horribly wrong.

              A Life? Cool! Where can I download one of those from?

              1 Reply Last reply Reply Quote 2
              • D Offline
                desq
                last edited by May 19, 2016, 9:04 AM

                I´m also a heavy user of wunderground and appreciate such a Modul.
                (So I could use, indirectly, the weather station of my neighbor.

                M 1 Reply Last reply May 19, 2016, 11:07 AM Reply Quote 0
                • M Offline
                  mattlugar @desq
                  last edited by May 19, 2016, 11:07 AM

                  I’m modifying for wunderground now too. I’m finding openweathermap horribly wrong sometimes (today they say showers here and every other forecast system says sun).

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mattlugar
                    last edited by May 19, 2016, 7:11 PM

                    I’ve modified the existing weatherforecast module to utilize weather underground… I’m utilizing the weather underground default icons for now. Not sure if it is something of interest for me to modularize or not?

                    alt text

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pugsly
                      last edited by May 19, 2016, 11:26 PM

                      yes, very interested. Please if it wouldn’t be too much trouble, a module would be great, including the colors.

                      M 1 Reply Last reply May 19, 2016, 11:58 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        6/17
                        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