MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. BKeyport
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 2
    • Topics 67
    • Posts 1,318
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: MMM-CalendarExt3Agenda - Two questions

      As for the #1 question, look at these config items:

      startDayIndex
      endDayIndex
      

      That will adjust your view to specific days - startDayIndex: 0 will set it to start on the current day, and then continue for the number of days listed in endDayIndex

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: How can I limit the width of a module that's crossing over from left to right?

      @Kelemvor the answers will lie within the following two CSS items. Using Sam’s link, feel free to play with the CSS then add whatever works to custom.css

      https://www.w3schools.com/cssref/css3_pr_word-wrap.php
      https://www.w3schools.com/cssref/pr_dim_max-width.php

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: MMM-CalendarExt3

      @sdetweil right, but once you have the changes you want, you have to figure out how to implement them, and I’ve noticed with CX3 and some other modules, sometimes the dev window flat out lies where to stuff the CSS for final.

      posted in Utilities
      BKeyportB
      BKeyport
    • RE: MMM-CalendarExt3

      @p1lspeda

      I think you’ll find that it’s because of the .cellDate property - it’s set to flex-grow: 3

      Almost everything on that line is also connected to .cellHeader.

      I disable the CW line manually (from habit, don’t know if it’s an option to do in config) along with a few other modifications (including eliminating weather through config):

      .CX3 .cellHeader {
        text-align: right;
        height: var(--cellheaderheight);
        padding: 2px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        font-size: 100%;
      }
      
      /* Disable CW date */
      .CX3 .cw {
      	display: none;
      }
      

      This results in the header taking up the entire space.

      Look for the .cellHeader properties in the main CSS file, and copy them over to your custom.css to mess with them all you want and see what happens.

      Pay special attention to justify-content in .cellHeader in combination with the flex-grow in .cellDate

      posted in Utilities
      BKeyportB
      BKeyport
    • RE: MMM-OpenWeatherForecast... CSS

      @sdetweil odd - I tried that before and it didn’t work. Now it does.

      CSS man.

      Thanks.

      posted in Custom CSS
      BKeyportB
      BKeyport
    • RE: MMM-OpenWeatherForecast... CSS

      @sdetweil I’ve tried everything I could think of, and can’t get it to translate to custom CSS.

      posted in Custom CSS
      BKeyportB
      BKeyport
    • MMM-OpenWeatherForecast... CSS

      I wanna move the wind icon to the right of it’s cell… How to do this?

      1b0c3d86-fdff-4ef4-9900-66a26b084d2b-image.png

      Custom CSS at present:

      /* Weather Alerts */
      
      .MMM-OpenWeatherForecast .weather-alert {
        display: none;
      }
      
      .MMM-OpenWeatherForecast .weather-alert .weather-alert-title {
        display: none;
      }
      .MMM-OpenWeatherForecast .weather-alert .weather-alert-description {
        display: none;
      }
      
      .MMM-OpenWeatherForecast .weather-alert .weather-alert-source {
        display: none;
      }
      
      .MMM-OpenWeatherForecast .module-content {
        width: 620px;
      }
      
      
      .MMM-OpenWeatherForecast .wrapper.tiled .forecast-container .forecast-item .time,
      .MMM-OpenWeatherForecast .wrapper.tiled .forecast-container .forecast-item .day-name {
        font-size: unset;
        
      }
      
      .MMM-OpenWeatherForecast .wrapper.tiled .forecast-container .forecast-item > *,
      .MMM-OpenWeatherForecast .wrapper.tiled .forecast-container .forecast-item > * {
        font-size: unset;
      }
      
      .MMM-OpenWeatherForecast .wrapper.tiled .forecast-container .forecast-item .temperature,
      .MMM-OpenWeatherForecast .wrapper.tiled .forecast-container .forecast-item .temperature-container {
        font-size: unset;
      }
      
      .MMM-OpenWeatherForecast .wrapper.table .forecast-container {
        font-size: unset;
      }
      
      .MMM-OpenWeatherForecast .wrapper.table .forecast-container .forecast-item > span,
      .MMM-OpenWeatherForecast .wrapper.table .forecast-container .header-row > span {
        font-size: unset;
      }
      
      .MMM-OpenWeatherForecast .wrapper.table .forecast-container .header-row > span {
        font-size: unset;
      }
      
      posted in Custom CSS
      BKeyportB
      BKeyport
    • RE: How do I display an RTSP camera stream?

      @sdetweil yes. Of course it’s not significant. What is significant is that features get removed without a replacement, or the replacement not being able to do the same thing the original did. Short sighted things like that. I get it, onward and upward, but fill out the replacement before eliminating the original.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: How do I display an RTSP camera stream?

      @hrmax23 I have a feeling that was a module by an author that has pulled all his work and left the community over hurt feelings.

      Thanks to poorly thought out everything (outside of our control), we’re in a kind of hole and have to patch together a solution - just the way it is.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • UpdateNotification - Enhancement?

      For those of us that have lots of modules in the mirror, but not always using them in each config (IE: Server mode) - is there either a way to get Updatenotification to hunt down changes to any module, or can we get that added to the module?

      I’d like to use the space on my 2nd screen to show if I have any updates available, even if it’s not on my 2nd mirror.

      thanks!

      posted in Feature Requests
      BKeyportB
      BKeyport
    • RE: Logging issues

      @sdetweil It now is working as expected. Thanks for the help.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

      @sdetweil OK. It’s now changing pages correctly, but it will resume rotation if pause is already set and you request it again.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

      @sdetweil Yeah, I was looking into the code myself.

      Maybe a re-write to see if it’s a string, then parseint(this.curPage) - and if it’s not NaN, run it?

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

      @sdetweil FWIW, it worked before the latest changes, just didn’t pause as requested.

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

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

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

      @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/
      
      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

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

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

      @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
      
      posted in Troubleshooting
      BKeyportB
      BKeyport
    • RE: Logging issues

      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

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • Logging issues

      I’m having trouble with logging issues again - and want to get some feedback on why and how it’s not working -

      Trying to get a module (MMM-pages) to work the way I want it to - and notice in the code that it’s using Log.warn to try and log errors and whatnot.

      I’m launching MM with pm2, in a server/client enviroment.

      PM2 logs show nothing from this module, either on the server or the client.

      my config.js has log level set at logLevel: ["INFO", "LOG", "WARN", "ERROR", "DEBUG"],

      where is this actually logging to?

      posted in Troubleshooting
      BKeyportB
      BKeyport
    • 1 / 1