MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    How to specify the Weather Type in a module which only uses the module name

    Troubleshooting
    2
    5
    235
    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.
    • O
      OldSunGuy last edited by

      I saw the following error msgs:

      [21.04.2021 15:12.39.799] [LOG]   Connecting socket for: currentweather
      [21.04.2021 15:12.39.800] [WARN]  The module 'currentweather' is deprecated in favor of the 'weather'-module, please refer to the documentation for a migration path
      [21.04.2021 15:12.39.802] [LOG]   Connecting socket for: weatherforecast
      [21.04.2021 15:12.39.803] [WARN]  The module 'weatherforecast' is deprecated in favor of the 'weather'-module, please refer to the documentation for a migration path
      

      So I started looking at the documentation.

      I couldn’t find how to specify the forecast weather type for one slide, and the current weather type for another slide in the MMM-Carousel which my MM currently uses.

      Can somebody tell me?

      O 1 Reply Last reply Reply Quote 0
      • O
        OldSunGuy @OldSunGuy last edited by

        Here is my config of MMM-Carousel:

        { 
         module: "MMM-Carousel",
         config: { 
                  transitionInterval: 10000, 
                  ignoreModules: ['alert', 'updatenotification', 'MMM-NewsFeedTicker'],
                  mode: 'slides',
                  slides: [
                           ['clock', 'calendar'],
                           ['clock', 'calendar', 'MMM-NetworkScanner'],
                           ['currentweather', 'weatherforecast', 'MMM-NetworkScanner'],
                           ['currentweather', 'weatherforecast', 'compliments'],
                           ['clock', 'calendar', 'compliments'],
                           ['clock', 'calendar', 'MMM-MoonPhase'],
                           ['currentweather', 'weatherforecast', 'MMM-MoonPhase'],
                           ['currentweather', 'weatherforecast']
                 ]
         }
        },
        

        Can someone think of a way to use the new weather module in situation?

        S 1 Reply Last reply Reply Quote 0
        • S
          sdetweil @OldSunGuy last edited by

          @oldsunguy said in How to specify the Weather Type in a module which only uses the module name:

          Can someone think of a way to use the new weather module in situation?

          can u explain more… that sentence doesn’t give much info

          Sam

          Create a working config
          How to add modules

          O 1 Reply Last reply Reply Quote 0
          • O
            OldSunGuy @sdetweil last edited by OldSunGuy

            Hi @sdetweil , Thanks for replying.

            I am trying to migrate from the currentweather and weatherforcast modules to the new weather module.

            I am using the MMM-Carousel module. It seemed strange (to me) to use the same module name. I was attempting to show the weather module with type=current on one slide and the weather module with type=forecast on another slide but with the same position. There didn’t seem to be any way to do this. I’ve since modified the config to use different positions so that a slide shows both current and forecast using the different positions.

            It kinda works as I am getting the correct header but it just shows “Loading…” ,

            S 1 Reply Last reply Reply Quote 0
            • S
              sdetweil @OldSunGuy last edited by

              @oldsunguy yeh… it should support using the identifier as well as the name… that would make things a lot easier…

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy