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

Welcome Message not shown / Alert not working

Scheduled Pinned Locked Moved Solved Troubleshooting
6 Posts 2 Posters 632 Views 2 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.
  • T Offline
    tabsl
    last edited by Jan 9, 2024, 7:11 AM

    hi …

    having the problem that alert, also welcome_message, is not shown.

    simple config:

    	modules: [
    		{
    			module: "alert",
    			welcome_message: true
    		},
    		{
    			module: "updatenotification",
    			position: "top_bar"
    		},
    		{
    			module: "clock",
    			position: "top_left"
    		}
    	]
    };
    

    no error in console. alert js/css loaded.

    regards

    tabsl

    S 1 Reply Last reply Jan 9, 2024, 1:31 PM Reply Quote 0
    • S Offline
      sdetweil @tabsl
      last edited by Jan 9, 2024, 1:31 PM

      @tabsl said in Welcome Message not shown / Alert not working:

        {
        	module: "alert",
        	welcome_message: true
        },
      

      yes, this is a config option, so it needs a config:{} block

            {
              module: "alert",
              config:{
              	welcome_message: true
              }
            },
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • T Offline
        tabsl
        last edited by Jan 9, 2024, 6:36 PM

        ahhh, sorry ;-) not welcome is working, but not my own alert in my module :-(

        4b5de695-577e-4c4a-8f00-745281f6effa-tm2201091935002720.jpg

        S 1 Reply Last reply Jan 9, 2024, 6:45 PM Reply Quote 0
        • S Offline
          sdetweil @tabsl
          last edited by sdetweil Jan 9, 2024, 10:16 PM Jan 9, 2024, 6:45 PM

          @tabsl you should wait til you receive a notification “ALL_MODULES_STARTED”
          before sending notifications…

          function notificationReceived(notification, payload, sender){
          
          if (notification ===  "ALL_MODULES_STARTED") {
            this.sendNotification('SHOW_ALERT', { title:'test', message:'test})
          }
          },
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          T 1 Reply Last reply Jan 9, 2024, 8:21 PM Reply Quote 0
          • T Offline
            tabsl @sdetweil
            last edited by Jan 9, 2024, 8:21 PM

            @sdetweil thank you …

            S 1 Reply Last reply Jan 9, 2024, 10:16 PM Reply Quote 0
            • S Offline
              sdetweil @tabsl
              last edited by Jan 9, 2024, 10:16 PM

              @tabsl did that fix it?

              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
                2/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