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

Scheduled Pinned Locked Moved Utilities
39 Posts 15 Posters 24.2k Views 14 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.
  • G Offline
    gshimself @strawberry 3.141
    last edited by Aug 23, 2016, 4:58 PM

    @strawberry-3.141
    Im no expert on reading the dev console but it seems to just update from cache after a while?

    Name: meteogram.png,
    initalator: mmm-weatherchart
    Time: 0ms
    Size: (From Cache)
    and it’s pileing up.

    On mmm-weatherchart.js it seems to update, every 15th secound but the chart does not.
    Im going to let it stay like this awhile and return.

    1 Reply Last reply Reply Quote 0
    • G Offline
      gshimself
      last edited by Aug 23, 2016, 5:20 PM

      Yea, as I thought. The chart just piles up and doesn’t update. The script however does update.

      0_1471972815019_1.png

      P 1 Reply Last reply Aug 24, 2016, 5:09 AM Reply Quote 0
      • P Offline
        paphko @gshimself
        last edited by Aug 24, 2016, 5:09 AM

        @gshimself I added a dummy parameter (timestamp) to the image which should prevent caching. I’ll check that later today when I find some time.

        1 Reply Last reply Reply Quote 0
        • P Offline
          paphko
          last edited by Aug 24, 2016, 12:21 PM

          The module appends ‘#’ to the image so that the browser does not cache the image. This works on my old version of the mirror but not on the new version 2. Quite strange…

          Fixed by replacing this part with ‘?’, at least for Chrome browser, the image is not cached any longer. @gshimself please pull changes and report wether it is also fixed for you.

          G 2 Replies Last reply Aug 24, 2016, 12:59 PM Reply Quote 0
          • G Offline
            gshimself @paphko
            last edited by Aug 24, 2016, 12:59 PM

            @paphko ¨Perfect! Will pull the latest version when I get home. I’ll get back to you during the evening.

            1 Reply Last reply Reply Quote 0
            • A Offline
              amanzimdwini
              last edited by Aug 24, 2016, 3:44 PM

              I like it!
              Request: can you add a SCALE factor? Right now the image is considerably larger than I can accommodate… (yes, minor problem, I know). Maybe I have to mess with the custom.css?

              Anyway, apart from that small inconvenience, I like it.

              1 Reply Last reply Reply Quote 1
              • G Offline
                gshimself @paphko
                last edited by gshimself Aug 24, 2016, 6:35 PM Aug 24, 2016, 6:31 PM

                @paphko Seems to be working fine now. Thank you for your help!
                I guess that if I want 30min refreshrate it should be 60 * 30 * 1000,?

                1 Reply Last reply Reply Quote 0
                • P Offline
                  paphko
                  last edited by Aug 24, 2016, 6:43 PM

                  @gshimself glad to hear that it’s fixed for you. Yes, because update interval must be specified in ms.

                  @amanzimdwini you could try to add a scale option, but I’m not sure how to properly implement it for both cases, with and without border. If you found a proper solution for it, tell me or create a pull request :-)

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    racampbellky
                    last edited by Jan 17, 2017, 2:39 AM

                    Great module! Is there anyway to present in Fahrenheit?

                    P 1 Reply Last reply Jan 17, 2017, 7:51 AM Reply Quote 1
                    • P Offline
                      paphko @racampbellky
                      last edited by Jan 17, 2017, 7:51 AM

                      @racampbellky I don’t think so. But you may check the website of yr.no, maybe you find a setting to use Fahrenheit in that diagram: http://www.yr.no/place/United_States/New_York/New_York/hour_by_hour.html
                      If so, it should be possible.

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