• 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.
  • 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
              • A Offline
                AnduriI
                last edited by Dec 11, 2017, 7:07 PM

                @strawberry-3.141 well didn’t knew that… how do I get the dev console in electron? For installation I have the RPI sitting on my desktop and access it from my normal pc. But I think I can also run it on the rpi using vnc.

                @Mykle1 the mirror itself is working fine. It’s only the alarm module making all black on alert. I have not changed anything else, it is a fresh installation of jessie.

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