MagicMirror Forum

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

    UNSOLVED Does 'weather' module broadcast the forecasting?

    Requests
    3
    6
    62
    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
      MMRIZE last edited by

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

      S ankonaskiff17 2 Replies Last reply Reply Quote 0
      • S
        sdetweil @MMRIZE last edited by

        @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

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • ankonaskiff17
          ankonaskiff17 @MMRIZE last edited by ankonaskiff17

          @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 Reply Quote 0
          • S
            sdetweil @ankonaskiff17 last edited by

            @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

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • M
              MMRIZE @ankonaskiff17 last edited by

              @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 Reply Quote 0
              • S
                sdetweil @MMRIZE last edited by

                @MMRIZE and not calling the same data provider

                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