• 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-Wunderground - dates are off??

Scheduled Pinned Locked Moved Troubleshooting
15 Posts 5 Posters 9.4k 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.
  • A Offline
    amanzimdwini
    last edited by Aug 31, 2016, 6:08 PM

    @RedNax (thanks for the module!)
    I found this about a week ago: the dates that MMM-Wunderground displays info for are a day behind:
    0_1472665978330_WundergroundOff.JPG
    Notice how I took the screenshot on Wednesday (31 Aug), but the Wunderground forecast is for 11am, 5pm, 11pm, and then for Wednesday (ie Wunderground seems to think today is 30. Aug)??

    Wierd.

    Anyway, here is my minimal config.js to reproduce:

    var config = {
            port: 8080,
            language: 'en',
            timeFormat: 24,
            units: 'imperial',
            modules: [
                            {
                            module: 'clock',
                            position: 'top_left'
                            }, // closes module alert
                            {
                            module: 'MMM-WunderGround',
                            position: 'top_right',
                            config: {
                                    apikey: 'xxxxxxxxxxx',
                                    pws: 'WA/Kirkland',
                                    lang: 'EN',
                                    fctext: '1',
                                    fcdaycount: "6",
                                    fcdaystart: "0",
                                    hourly: '1',
                                    hourlyinterval: "6",
                                    hourlycount: "1",
                                    alerttime: 10000,
                                    alerttruncatestring: "english:",
                                    fade: true
                            } // closes config
                            }, // closes module MMM-WunderGround
                            ] // closes MODULES
    };
    /*************** DO NOT EDIT THE LINE BELOW ***************/
    if (typeof module !== 'undefined') {module.exports = config;}
    

    I’m slightly baffled. Thanks for any help

    R 1 Reply Last reply Aug 31, 2016, 8:19 PM Reply Quote 0
    • R Offline
      RedNax Module Developer @amanzimdwini
      last edited by Aug 31, 2016, 8:19 PM

      @amanzimdwini The module will display the hourrly data of today. Then the ‘day’ data will also display the outlook for today…(even when it’s almost over) So details and a summary for today… There could be an option to offset the day part…

      A S 2 Replies Last reply Aug 31, 2016, 8:36 PM Reply Quote 0
      • A Offline
        amanzimdwini @RedNax
        last edited by Aug 31, 2016, 8:36 PM

        @RedNax
        Ahh - I guess that makes sense (kind of). Have to admit that I thought I remembered it did hourly for today; then daily for the next few days. I’ll look through the config to “remove” the daily forecast for today & post what I found.

        A 1 Reply Last reply Aug 31, 2016, 9:14 PM Reply Quote 0
        • A Offline
          amanzimdwini @amanzimdwini
          last edited by paviro Sep 27, 2016, 8:48 PM Aug 31, 2016, 9:14 PM

          @amanzimdwini said in MMM-Wunderground - dates are off??:

          @RedNax
          Ahh - I guess that makes sense (kind of). Have to admit that I thought I remembered it did hourly for today; then daily for the next few days. I’ll look through the config to “remove” the daily forecast for today & post what I found.

          config.js:
          fcdaystart = "1"

          Duh

          Thanks

          1 Reply Last reply Reply Quote 0
          • Y Offline
            yo-less Module Developer
            last edited by Aug 31, 2016, 9:31 PM

            @amanzimdwini Does it make a difference in your forecast texts when you set fcdaystart = ‘1’?
            What you see should be the forecast text for the current conditions outside, no matter what day your forecasts start on.

            A 1 Reply Last reply Aug 31, 2016, 9:36 PM Reply Quote 0
            • A Offline
              amanzimdwini @yo-less
              last edited by Aug 31, 2016, 9:36 PM

              @yo-less
              See my problem - I was getting the hourly forecasts for TODAY as well as the “daily” forecast for TODAY (which I considered superfluous). Setting fcdaystart=1 simply removes todays “daily” forecast & resulted exactly in what I wanted:
              today 3pm
              today 9pm
              tomorrow 3 am
              all day tomorrow
              all the day-after-tomorrow
              etc

              But tomorrow morning, I’ll see
              9am
              3pm
              9pm
              next day etc.

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yo-less Module Developer
                last edited by yo-less Aug 31, 2016, 9:42 PM Aug 31, 2016, 9:41 PM

                @amanzimdwini I see your point, I changed the config to start with the forecast for tomorrow as well, for the same reasons. Then I realized that after midnight the forecasts for the new day would not be shown, which I didn’t like, because the hourly forecasts only showed 1am, 4am, 7am and 10am, so I messed around with the source code so that it normally starts its forecasts with the weather tomorrow but between midnight and sunrise it still shows the forecast for the new day that is now day 0. After sunrise the first day that is shown in the forecast table is the next day. Not sure if I’m making any sense here :D

                A 1 Reply Last reply Sep 1, 2016, 4:54 PM Reply Quote 0
                • A Offline
                  amanzimdwini @yo-less
                  last edited by Sep 1, 2016, 4:54 PM

                  @yo-less
                  Woah - THATs why I like Linux hackers… simple problem followed by a solution that is WAY OVER THE TOP (and I mean that in the nicest possible way). Now there are probably setting to determine when the new day will start / how many days in advance / how to deal with Daylight-savings time etc. And since you stay up longer on Fridays and Saturdays than on the other days, that is probably also taken care of. Come to think of it, maybe the facial recognition software will determine by your frown if the data are confusing or not and readjust :)

                  Care to share what you “tweaked”? I love it!

                  Y 1 Reply Last reply Sep 1, 2016, 9:38 PM Reply Quote 0
                  • Y Offline
                    yo-less Module Developer @amanzimdwini
                    last edited by Sep 1, 2016, 9:38 PM

                    @amanzimdwini Don’t give me any ideas, I’m burning the midnight oil as it stands :D. But I guess it would be quite a feat if the mirror reacted to my moods as well.

                    I do want to share my tweaks and modifications, at the same time I’m aware that they are extremely tailored to my needs and likes. That’s why I need to make them customizable before it makes sense to post them online. Otherwise, people will just come back to me asking me to change this and that again, because they like certain features but not others. What it all boils down to: I need to clean up my code and make it mergeable with the main branch of the project so that @RedNax can simply incorporate my changes into the main module. I’ve promised myself I would to that in the next few days. At the same time, he’s just introcduced a nice new layout option and I need to incorporate that into my code lines first. It’s an uphill battle :D.

                    You can find my fork of the MMM-WunderGround module here, feel free to check its state again after the weekend. I will also pot any notice here, so maybe add the thread to your watchlist.

                    A 1 Reply Last reply Sep 2, 2016, 4:19 AM Reply Quote 0
                    • A Offline
                      amanzimdwini @yo-less
                      last edited by Sep 2, 2016, 4:19 AM

                      @yo-less :)
                      Thx - will keep an eye out for things

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