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.

    My display so far...

    Scheduled Pinned Locked Moved Showcase
    66 Posts 18 Posters 91.6k Views 22 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.
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Chiumanfu
      last edited by

      @Chiumanfu I haven’t tried to do that. This is a fork of MMM-WunderGround, and the data pull mechanism is unchanged. My changes are only in the formatting. I suspect that the two instances are sharing a single node-helper module, and as such, you’ll see the same data for both.

      Can you try a test for me? Configure one instance using MMM-MyWeather, and the second using MMM-WunderGround. If you get different data sets for the two, then there’s likely a way to address this. Otherwise, what might be happening is the API recognizes two requests from the same machine, and isn’t allowing multiple locations. Might be a limitation of the free API.

      C 1 Reply Last reply Reply Quote 0
      • C Offline
        Chiumanfu @j.e.f.f
        last edited by

        @j.e.f.f Yes, it works as expected when using MMM-Wunderground to display the second location. It would be nice to have them display both in MMM-MyWeather but if the fix is difficult, I can live with it this way. Thanks.

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          j.e.f.f Project Sponsor Module Developer @Chiumanfu
          last edited by

          @Chiumanfu I took a look at the way node_helper.js behaves for this module. It will take a considerable amount of re-engineering to get it to support multiple instances, and given that I am in the middle of a couple of other modules, I don’t think I’ll try to address this any time soon.

          What you can do is instead of specifying two instances of the MMM-MyWeather module, make a copy of the module folder, name it, say, MMM-MyWeather2. rename MMM-MyWeather.js to MMM-MyWeather2.js. Then modify MMM-MyWeather2.js and change the first line of code from

          Module.register("MMM-MyWeather", {
          

          to

          Module.register("MMM-MyWeather2", {
          

          Now you have two distinct modules that do exactly the same thing. Make a second entry in your config.js file for MMM-MyWeather2. That should give you exactly what you are looking for.

          The downside here is that you’ll need to redo the above steps if you ever update the module source code. I don’t see it changing all that much in the near future unless something breaks, so you should be good for a while.

          C 1 Reply Last reply Reply Quote 1
          • RamblingGeekUkR Offline
            RamblingGeekUk
            last edited by

            This looks really nice… is the temp read out from Nest?

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @RamblingGeekUk
              last edited by

              @RamblingGeekUk yeah. It logs in to your nest account via the API to get the current temp and state of the Nest.

              RamblingGeekUkR 1 Reply Last reply Reply Quote 0
              • RamblingGeekUkR Offline
                RamblingGeekUk @j.e.f.f
                last edited by

                @j.e.f.f Awesome… I was going to write all of this myself until I found this site yesterday, this is amazing. :-)

                1 Reply Last reply Reply Quote 0
                • C Offline
                  Chiumanfu @j.e.f.f
                  last edited by

                  @j.e.f.f Thanks! I’ll try it.

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    j.e.f.f Project Sponsor Module Developer @Chiumanfu
                    last edited by

                    @Chiumanfu I just realized that this will mess up the styles in you copied version of the module. You’ll need to do a search and replace in the copied version’s style sheet: in MMM-MyWeather.css, replace all instances of MMM-MyWeather with MMM-MyWeather2.

                    1 Reply Last reply Reply Quote 0
                    • rudibaraniR Offline
                      rudibarani Project Sponsor @j.e.f.f
                      last edited by rudibarani

                      @j.e.f.f Dear j.e.f.f.,
                      I am trying your fork of MMM-Wunderground and like your additions a lot.
                      Is there a way to completely hide the current weather and only use the forecast-table (or vice versa only the current weather)? I would like to split both parts to different sections of the screen. So far, I have not found or overlooked options to hide today’s weather or the table completely.
                      Also, would it be possible to use the 24h timeformat in the forecast-table as well? I have set the global variable and it works fine for e.g. the clock - but MMM-MyWeather uses am/pm times.

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        j.e.f.f Project Sponsor Module Developer @rudibarani
                        last edited by

                        @rudibarani It turns out there was an undocumented parameter to hide the current conditions display. I pushed an update to also add a similar one for the forecast table.

                        You can configure it like follows:

                          {
                            module: 'MMM-MyWeather',
                            position: 'top_right',
                            config: {
                              ... //other config options omitted for clarity
                              currentweather: 1, // 0 to hide
                              forecasttable: 1, // 0 to hide
                            }
                          },
                        
                        rudibaraniR 2 Replies Last reply Reply Quote 0
                        • rudibaraniR Offline
                          rudibarani Project Sponsor @j.e.f.f
                          last edited by

                          @j.e.f.f Thanks a lot for your quick help! Much appreciated :)

                          1 Reply Last reply Reply Quote 0
                          • rudibaraniR Offline
                            rudibarani Project Sponsor @j.e.f.f
                            last edited by rudibarani

                            Hi @j.e.f.f,
                            I have just tried the new commit you made today. Unfortunately, the module does not load anymore and shows only “loading”. The console does not throw any error. Do I have to change something in my config-file to adapt to the changes you made?

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              j.e.f.f Project Sponsor Module Developer @rudibarani
                              last edited by

                              @rudibarani no it was a big fix. Can you send me your config? I likely broke something along the way.

                              rudibaraniR 1 Reply Last reply Reply Quote 0
                              • rudibaraniR Offline
                                rudibarani Project Sponsor @j.e.f.f
                                last edited by

                                @j.e.f.f It worked before your update and I did not change anything.
                                The relevant part is:

                                {
                                			module: 'MMM-MyWeather',
                                			position: 'top_center',
                                			config: {
                                				apikey: '###', // private; don't share!
                                				pws: 'pws:IBRAUNSC93',
                                				units: 'metric',
                                				coloricon: true,
                                				fcdaycount: "3",
                                				fcdaystart: "0",
                                				lang: 'de',
                                				fctext: '1',
                                				scaletxt: '0',
                                				daily: '1',
                                				hourly: '1',
                                				hourlyinterval: "3",
                                				hourlycount: "3",
                                				fade: false,
                                				fadepoint: '0.75',
                                				initialLoadDelay: 1000,
                                				alerttime: 10000,
                                				alerttruncatestring: "english:",
                                				roundTmpDecs: 1,
                                				UseCardinals: 1,
                                				windunits: 'bft',
                                				layout: "vertical",
                                				iconset: 'colourful',
                                				currentweather: 1, // 0 to hide
                                				currentweatherdetails: 0,
                                				forecasttable: 1, // 0 to hide
                                				forecasttablecolumnheadericons: 0,
                                				forecasttableheadertext: "Home",
                                				sysstat: 0
                                			}
                                		},
                                
                                J 2 Replies Last reply Reply Quote 0
                                • J Offline
                                  j.e.f.f Project Sponsor Module Developer @rudibarani
                                  last edited by

                                  @rudibarani thanks. I’ll take a look tonight when I get home from work.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    j.e.f.f Project Sponsor Module Developer @rudibarani
                                    last edited by

                                    @rudibarani Ok try pulling the latest commit. I indeed broke the default timeFormat setting. I didn’t notice because my config was using an explicit configuration option.

                                    rudibaraniR 1 Reply Last reply Reply Quote 0
                                    • rudibaraniR Offline
                                      rudibarani Project Sponsor @j.e.f.f
                                      last edited by rudibarani

                                      @j.e.f.f Now its working again, but the timeformat still does not show up in the 24h format:
                                      0_1498621210581_871b9421-b2c6-4e7e-b9e5-2d5f3b066b4b-image.png

                                      Thanks a lot and greetings from Germany.

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

                                        I’m sure there’s a way to do this in css but not sure how. I want to make the icon and temperature smaller.

                                        0_1498765163780_Screen Shot 2017-06-29 at 11.47.35 AM.png

                                        J 1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          j.e.f.f Project Sponsor Module Developer @rudibarani
                                          last edited by

                                          @rudibarani in your config, set the timeFormat to HH:mm and you shoudl see 24-hour format.

                                          I just tried this. My config looks like this:

                                              {
                                                  module: 'MMM-MyWeather',
                                                  position: 'top_right',
                                                  classes: 'default everyone',
                                                  config: {
                                                    apikey: '...', // private; don't share!
                                                    pws: 'pws:IONTORON421', //Toronto Beaches
                                                    units: 'metric',
                                                    // other configs omitted for clarity 
                                                    timeFormat: 'HH:mm',  //Set this here
                                                  }
                                              },
                                          
                                          

                                          And it looks like this:

                                          0_1498766827572_Screen Shot 2017-06-29 at 4.03.28 PM.png

                                          rudibaraniR 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            j.e.f.f Project Sponsor Module Developer @brandongomez
                                            last edited by

                                            @brandongomez You can target both of these in CSS as follows:

                                            /* Icon */
                                            .MMM-MyWeather .currentWeatherIconWrapper .currentWeatherIcon {
                                              max-width: 140px;
                                              max-height: 140px; /* play with these two values to get the size you want */
                                            }
                                            
                                            /* temperature text */
                                            .MMM-MyWeather div.large span.bright {
                                              font-size: 65px;
                                              line-height: 65px; /* play with these two numbers to adjust text size */
                                            }
                                            brandongomezB 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
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 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