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

Logging issues

Scheduled Pinned Locked Moved Solved Troubleshooting
22 Posts 2 Posters 2.0k 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.
  • B Offline
    BKeyport Module Developer @sdetweil
    last edited by Mar 7, 2025, 12:02 AM

    Ended up loading it up on my PC to get the console.

    So, here’s what I got…

    1. Apparently, MMM-pages will resume the rotation if you tell it to pause, but it’s already paused.
    2. It should be documented that MMM-pages will pause as part of the hidden pages routine.

    While I was looking and debugging

    Out of curiosity, why would calendar try to update the DOM without being given a location to display

    The "E" in "Javascript" stands for "Easy"

    S 1 Reply Last reply Mar 7, 2025, 12:42 AM Reply Quote 0
    • S Offline
      sdetweil @BKeyport
      last edited by Mar 7, 2025, 12:42 AM

      @BKeyport module doesn’t know its position (or lack thereof)
      it signals updateDom() which calls getDom()
      oops no place to put it. oh well

      hidden pages stop rotation

      IMG_0832.png .

      i think it says that ‘not in the normal rotation’

      pause while paused restarts is a bug i think, will review
      as i just fixed that area too

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Mar 7, 2025, 1:57 AM Reply Quote 0
      • S Offline
        sdetweil @sdetweil
        last edited by sdetweil Mar 7, 2025, 2:18 AM Mar 7, 2025, 1:57 AM

        @BKeyport i looked thru the code and dont SEE a path where pause while paused restarts, but i will test later tonight

        can you show any part of what you logged?

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Mar 7, 2025, 3:37 AM Reply Quote 0
        • B Offline
          BKeyport Module Developer @sdetweil
          last edited by Mar 7, 2025, 3:37 AM

          @sdetweil While this is broken up to explain what is sent where, there’s no lines in between other than the diagnostics on the error for “already paused”

          Sent: curl -X GET http://mirrorserv:8080/api/notification/PAGE_CHANGED/0

          [MMM-pages] received a notification to change to page 0 of type string. 
          module.js:189 MMM-pages is suspended.
          module.js:189 MMM-CalendarExt3Agenda is suspended.
          module.js:189 MMM-OpenWeatherForecast is suspended.
          module.js:189 MMM-CalendarExt3 is suspended.
          module.js:196 alert is resumed.
          module.js:196 calendar is resumed.
          module.js:196 MMM-Remote-Control is resumed.
          module.js:196 clock is resumed.
          module.js:196 MMM-Worldclock is resumed.
          module.js:196 MMM-Wallpaper is resumed.
          module.js:196 MMM-CalendarExt3 is resumed.
          module.js:196 MMM-CalendarExt3Agenda is resumed.
          module.js:196 MMM-Multimonth is resumed.
          

          Sent: curl -X GET http://mirrorserv:8080/api/notification/PAUSE_ROTATION/

          MMM-pages.js:311 [MMM-pages] pausing rotation
          

          Sent: curl -X GET http://mirrorserv:8080/api/notification/PAGE_CHANGED/2

          [MMM-pages] received a notification to change to page 2 of type string.
          module.js:189 MMM-pages is suspended.
          module.js:189 MMM-CalendarExt3Agenda is suspended.
          3module.js:189 MMM-Multimonth is suspended.
          module.js:189 MMM-CalendarExt3Agenda is suspended.
          module.js:189 MMM-CalendarExt3 is suspended.
          module.js:196 alert is resumed.
          module.js:196 calendar is resumed.
          module.js:196 MMM-Remote-Control is resumed.
          module.js:196 clock is resumed.
          module.js:196 MMM-Worldclock is resumed.
          module.js:196 MMM-Wallpaper is resumed.
          module.js:196 MMM-CalendarExt3 is resumed.
          module.js:196 MMM-OpenWeatherForecast is resumed.
          

          Sent: curl -X GET http://mirrorserv:8080/api/notification/PAUSE_ROTATION/

          MMM-pages.js:309 [MMM-pages] was asked to pause but rotation is already paused!
          MMM-pages.js:100 [MMM-pages] received a notification to increment pages!
          module.js:189 MMM-pages is suspended.
          

          etc.

          The diagnostics:

          MMM-pages.js:309 [MMM-pages] was asked to pause but rotation is already paused!
          setRotation	@	MMM-pages.js:309
          notificationReceived	@	MMM-pages.js:123
          sendNotification	@	main.js:99
          sendNotification	@	main.js:649
          sendNotification	@	module.js:350
          socketNotificationReceived	@	MMM-Remote-Control.js:159
          (anonymous)	@	module.js:240
          (anonymous)	@	socketclient.js:32
          Emitter.emit	@	index.js:136
          emitEvent	@	socket.js:553
          onevent	@	socket.js:540
          MMSocket.socket.onevent	@	socketclient.js:26
          onpacket	@	socket.js:508
          Emitter.emit	@	index.js:136
          (anonymous)	@	manager.js:217
          Promise.then		
          (anonymous)	@	globals.js:4
          ondecoded	@	manager.js:216
          Emitter.emit	@	index.js:136
          add	@	index.js:142
          ondata	@	manager.js:203
          Emitter.emit	@	index.js:136
          _onPacket	@	socket.js:259
          Emitter.emit	@	index.js:136
          onPacket	@	transport.js:99
          onData	@	transport.js:91
          ws.onmessage	@	websocket.js:48
          

          The "E" in "Javascript" stands for "Easy"

          S 1 Reply Last reply Mar 7, 2025, 4:05 AM Reply Quote 0
          • S Offline
            sdetweil @BKeyport
            last edited by Mar 7, 2025, 4:05 AM

            @BKeyport sent message

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            B 1 Reply Last reply Mar 7, 2025, 4:36 AM Reply Quote 0
            • B Offline
              BKeyport Module Developer @sdetweil
              last edited by BKeyport Mar 7, 2025, 4:38 AM Mar 7, 2025, 4:36 AM

              @sdetweil Got message - nothing critical, as usual. and if you have a better way to set page & pause (stop), then later resuming (start) the rotation, I’m all ears.

              For reference, same configuration as before.

              The "E" in "Javascript" stands for "Easy"

              S 1 Reply Last reply Mar 7, 2025, 3:34 PM Reply Quote 0
              • S Offline
                sdetweil @BKeyport
                last edited by sdetweil Mar 7, 2025, 3:37 PM Mar 7, 2025, 3:34 PM

                @BKeyport git pull for update
                I think you can set page (will resume rotation)
                then immediately (or before rotationTime) pauseRotation

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Mar 7, 2025, 9:18 PM Reply Quote 0
                • B Offline
                  BKeyport Module Developer @sdetweil
                  last edited by Mar 7, 2025, 9:18 PM

                  @sdetweil – Pausing is working perfectly, but we moved the bug elsewhere.

                  [MMM-pages] received a notification to change to page 0 of type string.
                  MMM-pages.js:192 [MMM-pages] cannot change to a named page 0'
                  updatePages	@	MMM-pages.js:192
                  notificationReceived	@	MMM-pages.js:102
                  sendNotification	@	main.js:99
                  sendNotification	@	main.js:649
                  sendNotification	@	module.js:350
                  socketNotificationReceived	@	MMM-Remote-Control.js:159
                  (anonymous)	@	module.js:240
                  (anonymous)	@	socketclient.js:32
                  Emitter.emit	@	index.js:136
                  emitEvent	@	socket.js:553
                  onevent	@	socket.js:540
                  MMSocket.socket.onevent	@	socketclient.js:26
                  onpacket	@	socket.js:508
                  Emitter.emit	@	index.js:136
                  (anonymous)	@	manager.js:217
                  Promise.then		
                  (anonymous)	@	globals.js:4
                  ondecoded	@	manager.js:216
                  Emitter.emit	@	index.js:136
                  add	@	index.js:142
                  ondata	@	manager.js:203
                  Emitter.emit	@	index.js:136
                  _onPacket	@	socket.js:259
                  Emitter.emit	@	index.js:136
                  onPacket	@	transport.js:99
                  onData	@	transport.js:91
                  
                  curl -X GET http://mirrorserv:8080/api/notification/PAGE_CHANGED/0
                  curl -X GET http://mirrorserv:8080/api/notification/PAUSE_ROTATION/
                  

                  The "E" in "Javascript" stands for "Easy"

                  S 1 Reply Last reply Mar 7, 2025, 10:18 PM Reply Quote 0
                  • S Offline
                    sdetweil @BKeyport
                    last edited by Mar 7, 2025, 10:18 PM

                    @BKeyport can you show me the actual request for page 0

                    its a number, 0 , not a string “0” or ‘0’

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    B 1 Reply Last reply Mar 8, 2025, 12:41 AM Reply Quote 0
                    • B Offline
                      BKeyport Module Developer @sdetweil
                      last edited by Mar 8, 2025, 12:41 AM

                      @sdetweil it’s through MMM-Remote-Control - the curl statements above is what is sent to trigger.

                      The "E" in "Javascript" stands for "Easy"

                      S 1 Reply Last reply Mar 8, 2025, 12:50 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      2 / 3
                      • First post
                        7/22
                        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