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

720p TV - Re-adjust Region Sections?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 3 Posters 4.4k Views 1 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.
  • M Offline
    MechMatt
    last edited by May 8, 2016, 11:13 PM

    Playing around with the font sizes I realized the regions can be controlled by how long the text across goes.

    I guess my question now changes to this: is it possible to change the style of the calendar text? For example “Tomorrow at 9:30 AM” takes up a lot of space. It would be nice to change it to something like “Tmw at 9:30AM” or just “Tomorrow”

    Also, while we wait for the folks at moment.js to hopefully find a solution for the 12 hour overflow problem I had tried to set everything to 24 hr format. However, I cant get the calendar to go to a 24 hr format. I changed the timeformat variable to 24 in the config, but it doesn’t affect the calendar times (just changes the clock). Is there a different way to change these?

    I realized this turned into more of a calendar module post. I can repost in that section if necessary.

    1 Reply Last reply Reply Quote 0
    • K Offline
      KirAsh4 Moderator
      last edited by May 8, 2016, 11:36 PM

      So the Tomorrow at 9:30AM is how moment.js displays it. We’re not doing the formatting, moment.js is. However, what you CAN control is the amount of characters the event itself displays. So for example, if you happen to have an event with a rather long title, you can tell the Calendar module to limit that (by truncating the text). Look for the maxTitleLength config option to do that. The default is 25 characters.

      As for whether to display Tomorrow or Tomorrow at 9:30AM, that’s a difference in events. All day events are displayed simply as Tomorrow. However an event at a specific time, will be displayed with the time it will happen.

      And the calendar module itself does not change between 12 or 24 hour display. At least, as far as memory serves me. I’ll have to go back and look in the code.

      A Life? Cool! Where can I download one of those from?

      M 1 Reply Last reply May 8, 2016, 11:54 PM Reply Quote 0
      • M Offline
        MechMatt @KirAsh4
        last edited by May 8, 2016, 11:54 PM

        @KirAsh4 ah okay that makes sense.

        Since all the calendar stuff is controlled by moment.js, does that mean there is currently no temporary work around to the overflow issue in the calendar?
        0_1462751544235_upload-31e42c20-518b-42b8-9f87-64d0cb349911

        Thanks for the help!

        1 Reply Last reply Reply Quote 0
        • K Offline
          KirAsh4 Moderator
          last edited by May 8, 2016, 11:59 PM

          I know someone said to switch to 24 hours, but I am not certain that actually affects the calendar itself, or the overall display of time (and therefore time calculations) in general. That’s something I need to go check on in the code. And right now I’m in the middle of another project that’s preventing me from diving into the module code.

          A Life? Cool! Where can I download one of those from?

          1 Reply Last reply Reply Quote 0
          • K Offline
            KirAsh4 Moderator
            last edited by May 9, 2016, 12:02 AM

            By the way, while inconvenient every time, you can issue a 'pm2 restart <MM>' (where <MM> is whatever you called your process) to refresh the display and those times would display properly again.

            A Life? Cool! Where can I download one of those from?

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