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

Show notification on the MagicMirror

Scheduled Pinned Locked Moved Troubleshooting
11 Posts 4 Posters 7.3k 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.
  • A Offline
    AnduriI
    last edited by Nov 29, 2017, 8:14 PM

    Hey there,

    is there a way to directly show notification emited by other modules on the ui? I tried the alert module, but it does not show anything. Is this config correct:

                    {
                            module: "alert",
                            position: "top_center",
                    },
    

    I only see the text “alert” and “module_0_alert” on that position. If this is correct maybe there is no notification and the module I want to test (MMM-Motion-Detection) does not work as intended…

    Regards,
    Anduril

    S 1 Reply Last reply Dec 1, 2017, 6:59 PM Reply Quote 0
    • S Offline
      strawberry 3.141 Project Sponsor Module Developer @AnduriI
      last edited by Dec 1, 2017, 6:59 PM

      @AnduriI The rendering of the alert module is special and not like the other modules. you shouldn’t specify a position for it.

      {
        module: 'alert'
      }
      

      if the notifications do not show up, thats most likely an issue with the module you tested. You can also try other modules, like the mmm-alarmclock where you can trigger notifications to specified times for testing.

      Please create a github issue if you need help, so I can keep track

      A 1 Reply Last reply Dec 9, 2017, 7:22 PM Reply Quote 0
      • A Offline
        AnduriI @strawberry 3.141
        last edited by AnduriI Dec 9, 2017, 7:24 PM Dec 9, 2017, 7:22 PM

        @strawberry-3.141 are you the dev of this module? I tried this and seems to work… until the alarm time comes. Then my website goes black and does not do anything. How does the alarm show?
        After reloading the page it’s back and working with the alarm passed by.

        just in case it is needed, my config:

                        {
                                module: "MMM-AlarmClock",
                                position: "top_right",
                                config: {
                                        alarms: [
                                                {time: "20:18", days: [1,2,3,4,5,6,7], title: "Test", message: "Es geht!!!"},
                                        ],
                                }
                        },
        
        M S 2 Replies Last reply Dec 9, 2017, 9:53 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @AnduriI
          last edited by Mykle1 Dec 10, 2017, 3:14 AM Dec 9, 2017, 9:53 PM

          @AnduriI

          Does the alarm ring and is the alert module enabled? If so, have you looked at the config options in the readMe file?

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @AnduriI
            last edited by Dec 10, 2017, 1:26 PM

            @AnduriI could you run the alarm clock with npm start dev to see the developer console and check that for errors when the page goes black?

            Also you should check the config options to prevent surprises in the future. The day range is from 0 to 6, so there exists no day with the index 7

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 1
            • C Offline
              cowboysdude Module Developer
              last edited by cowboysdude Dec 10, 2017, 2:35 PM Dec 10, 2017, 2:35 PM

              @AnduriI said in Show notification on the MagicMirror:

              {time: “20:18”, days: [1,2,3,4,5,6,7], title: “Test”, message: “Es geht!!!”}

              Yes that part should be:

              {time: “20:18”, days: [0,1,2,3,4,5,6], title: “Test”, message: “Es geht!!!”}

              1 Reply Last reply Reply Quote 0
              • A Offline
                AnduriI
                last edited by Dec 10, 2017, 8:21 PM

                @mykle1 there is no sound ringing or similar. I think the alert module is enabled by default or is that wrong? As stated by strawberry in #2 it should be working the way it is now.
                @strawberry-3.141 I run the module with the mirror started as npm start dev but don’t see any. Here is my log:

                pi@Spieglein:~/MagicMirror $ npm start dev
                
                > magicmirror@2.1.3 start /home/pi/MagicMirror
                > sh run-start.sh "dev"
                
                Starting MagicMirror: v2.1.3
                Loading config ...
                Loading module helpers ...
                No helper found for module: alert.
                Initializing new module helper ...
                Module helper loaded: updatenotification
                No helper found for module: MMM-AlarmClock.
                No helper found for module: clock.
                Initializing new module helper ...
                Module helper loaded: calendar
                No helper found for module: compliments.
                No helper found for module: currentweather.
                No helper found for module: weatherforecast.
                Initializing new module helper ...
                Module helper loaded: newsfeed
                All module helpers loaded.
                Starting server on port 8080 ...
                You're using a full whitelist configuration to allow for all IPs
                Server started ...
                Connecting socket for: updatenotification
                Connecting socket for: calendar
                Starting node helper for: calendar
                Connecting socket for: newsfeed
                Starting module: newsfeed
                Sockets connected & modules started ...
                Launching application.
                Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/[XXX]/basic.ics - Interval: 300000
                Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/[XXX]/basic.ics - Interval: 300000
                Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
                Use existing news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml
                {here it went black, but no notification}
                

                @all sorry for taking the wrong config options for the module, didn’t read them carefully. Again here my config, just in case there is something wrong with other modules influencing this:

                        modules: [
                                {
                                        module: "alert",
                                },
                                {
                                        module: "updatenotification",
                                        position: "top_bar"
                                },
                                {
                                        module: "MMM-AlarmClock",
                                        position: "top_right",
                                        config: {
                                                alarms: [
                                                        {time: "21:14", days: [0,1,2,3,4,5,6], title: "Test", message: "Es geht!!!"},
                                                ],
                                        }
                                },
                                {
                                        module: "clock",
                                        position: "top_left"
                                },
                                {
                                        module: "calendar",
                                        header: "Termine",
                                        position: "top_left",
                                        config: {
                                                calendars: [
                                                        {
                                                                symbol: "calendar-check-o ",
                                                                url: "https://calendar.google.com/calendar/ical/[XXX]$
                                                        },
                                                        {
                                                                symbol: "calendar-check-o ",
                                                                url: "https://calendar.google.com/calendar/ical/[XXX]$
                                                        }
                                                ]
                                        }
                                },
                some more modules, but all standard without any changes
                
                M S 2 Replies Last reply Dec 10, 2017, 8:36 PM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer @AnduriI
                  last edited by Dec 10, 2017, 8:36 PM

                  @AnduriI said in Show notification on the MagicMirror:

                  I think the alert module is enabled by default or is that wrong?

                  Well, some people change things. For instance, you put a position for the alert module. I’ve never seen that done before. Have you changed or added anything else to the module files? alarm sound? any of the defaults in the js file?

                  Does your mirror work when you remove the AlarmClock entry?

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    strawberry 3.141 Project Sponsor Module Developer @AnduriI
                    last edited by Dec 10, 2017, 9:04 PM

                    @AnduriI I was more interested in the logs from the developer console in electron, because you said everything is working fine until the alarm goes off, so i guess there is a javascript exception in a render process

                    Please create a github issue if you need help, so I can keep track

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mykle1 Project Sponsor Module Developer
                      last edited by Mykle1 Dec 11, 2017, 2:23 AM Dec 11, 2017, 2:21 AM

                      I had plans for an alarm clock as soon as my brother gave me his old, “useless” 10 inch netbook. Started messing around with it just to see what I could do with it and to see if I had any issues with installation. Made a few modifications as well.

                      https://youtu.be/aU1sDPC1Qpw

                      Create a working config
                      How to add modules

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