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.

    Calendar Ext2 positionOrder

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 2 Posters 1.5k 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.
    • H Offline
      harmZj @MMRIZE
      last edited by

      @mmrize ok that makes sense. But then I guess which file do I edit to achieve this? B/c I was editing the CalendarExt2.js

      Only view I could change seemed to be daily. Which would change both upcoming, and daily…

      So in top_left bar it would be upcoming 1st and then clock next. Which I want it clock 1st and then upcoming calendar events next.

      Then my bottom_bar would be correct by changing positionOrder to 0 by placing the 5 day daily view 1st above the RSS feed.

      The issue is I just couldn’t achieve the position I wanted on both upcoming and daily.

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        MMRIZE @harmZj
        last edited by

        @harmzj NO!
        Users SHOULD NOT modify source at any reason. You HAVE TO adjust your config file.
        See the example; https://forum.magicmirror.builders/topic/15614/mmm-calendarext2-example-request/2

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          harmZj @MMRIZE
          last edited by

          @mmrize ok so I’ll revert to where it says positionOrder -1, but then you’re saying I set positionOrder where ? In the config.js file?

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            MMRIZE @harmZj
            last edited by

            @harmzj
            I am going on driving in a minute. So cannot reply detailly. If you don’t mind I’ll show you the example in 1-2 hours. Anyway, it will be better to show your current config.js MMM-CalendarExt2 parts here.

            H 1 Reply Last reply Reply Quote 0
            • H Offline
              harmZj @MMRIZE
              last edited by

              @mmrize sure thing. I will post in a few hours. Thanks :)

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                MMRIZE @harmZj
                last edited by

                @harmzj
                sample1.png

                I believe this is similar to what you want.

                {
                  module: "MMM-CalendarExt2",
                  config: {
                    calendars: [
                      {
                        name: "Tottenham",
                        url: "https://www.google.com/calendar/ical/ovb564thnod82u5c4njut98728%40group.calendar.google.com/public/basic.ics",
                        icon: "emojione:chicken"
                      },
                      {
                        name: "Leeds",
                        url: "https://www.google.com/calendar/ical/h2suh4c1iqvktk4olmfqtth4lg%40group.calendar.google.com/public/basic.ics",
                        icon: "emojione-v1:shield"
                      }
                    ],
                    views: [
                      {
                        name: "UPCOMING_GAME",
                        calendars: ["Tottenham", "Leeds"],
                        mode: "upcoming",
                        slotMaxHeight: "150px",
                        position: "top_left",
                        positionOrder: 1
                      },
                      {
                        name: "DAILY_GAME",
                        calendars: ["Tottenham", "Leeds"],
                        mode: "daily",
                        type: "row",
                        positionOrder: 0,
                        slotCount: 5,
                        slotMaxHeight: "100px",
                        slotSubTitleFormat: "MMM do",
                        position: "bottom_bar"
                      }
                    ],
                    scenes: [
                      {
                        name: "DEFAULT",
                        views: ["UPCOMING_GAME", "DAILY_GAME"],
                      }
                    ]
                  }
                }
                
                H 1 Reply Last reply Reply Quote 0
                • H Offline
                  harmZj @MMRIZE
                  last edited by

                  @mmrize you’re exactly right. I will plug in the position order like you have and see what I get. Thanks :)… I was up till 2AM very irritated I couldn’t get it right lol.

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