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

Does 'weather' module broadcast the forecasting?

Scheduled Pinned Locked Moved Unsolved Requests
6 Posts 3 Posters 680 Views 3 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
    MMRIZE
    last edited by Apr 25, 2022, 5:58 PM

    As title,
    Does weather module broadcast the notification? Old currentweather emitted, but not sure of the new module. Does anyone know?

    S A 2 Replies Last reply Apr 25, 2022, 6:03 PM Reply Quote 0
    • S Away
      sdetweil @MMRIZE
      last edited by Apr 25, 2022, 6:03 PM

      @MMRIZE looking at code, it only has one sendNotification

      	if (this.weatherProvider.currentWeather()) {
      			this.sendNotification("CURRENTWEATHER_TYPE", { type: this.weatherProvider.currentWeather().weatherType.replace("-", "_") });
      		}
      

      so, I would say no

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • A Offline
        ankonaskiff17 @MMRIZE
        last edited by ankonaskiff17 Apr 25, 2022, 6:26 PM Apr 25, 2022, 6:21 PM

        @MMRIZE @sdetweil The weather.gov API does generate alerts. Now whether you can make that happen in the weather module is well beyond my skill level.
        I use the api to generate something similar to a key to generate the current weather and the forecast weather for local area using the MM weather module.

        See the examples tab Weather API

        S M 2 Replies Last reply Apr 25, 2022, 6:32 PM Reply Quote 0
        • S Away
          sdetweil @ankonaskiff17
          last edited by Apr 25, 2022, 6:32 PM

          @ankonaskiff17 we don’t process alerts like that

          we get the data, for our display, and then send that out to any module that cares

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @ankonaskiff17
            last edited by Apr 25, 2022, 7:12 PM

            @ankonaskiff17
            I need weather information (current status or some days forecasting) to be used in my other module. For example, changing the background or colour theme by current weather status. or registering upcoming weather events on the calendar, etc…
            It will be more efficient when the existing weather module data could be accessible instead of implementing another new weather parser for that purpose.

            S 1 Reply Last reply Apr 25, 2022, 9:06 PM Reply Quote 0
            • S Away
              sdetweil @MMRIZE
              last edited by Apr 25, 2022, 9:06 PM

              @MMRIZE and not calling the same data provider

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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