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

MMM-Carousel Pagination Icons

Scheduled Pinned Locked Moved Development
48 Posts 8 Posters 3.2k Views 9 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 Away
    sdetweil @mumblebaj
    last edited by Apr 6, 2025, 1:28 PM

    @mumblebaj i will say, i think for humans. 0 based is unfriendly

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    M 1 Reply Last reply Apr 6, 2025, 2:00 PM Reply Quote 0
    • M Online
      mumblebaj Module Developer @sdetweil
      last edited by Apr 6, 2025, 2:00 PM

      @sdetweil Yeah, i would agree. Changing that logic now may have some repercussions for users already using the module.

      Check out my modules at: https://github.com/mumblebaj?tab=repositories

      S 1 Reply Last reply Apr 6, 2025, 2:16 PM Reply Quote 0
      • S Away
        sdetweil @mumblebaj
        last edited by Apr 6, 2025, 2:16 PM

        @mumblebaj page- was never there

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 2 Replies Last reply Apr 6, 2025, 2:33 PM Reply Quote 0
        • M Online
          mumblebaj Module Developer @sdetweil
          last edited by mumblebaj Apr 6, 2025, 2:33 PM Apr 6, 2025, 2:33 PM

          @sdetweil Yes, that is correct. I added a classname page-${i}. But the standard code was always zero based and I do not want to update that. It is tied in with MMM-pages and seems like it works with others as well.

          start() {
            this.curPage = 0;
            this.mmmPagesDetected = false;
          },
          

          Check out my modules at: https://github.com/mumblebaj?tab=repositories

          1 Reply Last reply Reply Quote 0
          • M Online
            mumblebaj Module Developer @sdetweil
            last edited by mumblebaj Apr 6, 2025, 2:42 PM Apr 6, 2025, 2:39 PM

            @sdetweil And just to note, MMM-pages is zero based. This will need to be updated as well. If I understand MMM-Carousel correct, it is also zero based.

            Check out my modules at: https://github.com/mumblebaj?tab=repositories

            S 1 Reply Last reply Apr 6, 2025, 8:34 PM Reply Quote 0
            • S Away
              sdetweil @mumblebaj
              last edited by Apr 6, 2025, 8:34 PM

              @mumblebaj one small step!

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • C Offline
                com1cedric @sdetweil
                last edited by 29 days ago

                @sdetweil Hello Sam, may I ask you one question about this topic? do you know how it would be possible to show an image stored on the Raspberry or linked from the web, instead of showing an icon from Fontawesome?

                S 1 Reply Last reply 29 days ago Reply Quote 0
                • S Away
                  sdetweil @com1cedric
                  last edited by sdetweil 29 days ago 29 days ago

                  @com1cedric just point the url() to the file

                  url('/folder_in_mm_tree/xxx.jpg/png/gif as appropriate')
                  

                  note the MM web server root is ~/MagicMirror

                  so the files have to be in THAT folder tree
                  you can LINK files/folders outside into the MM tree with the -->ln<-- command

                  so, assume you made a

                  MagicMirror/icons
                  

                  folder and in it is

                  circle.png
                  

                  then you could use

                  url('/icons/circle.png')
                  

                  or

                  url('http://localhost:mm_port/icons/circle.png')  /* not this ONLY works IF the browser is on the SAME MACHINE as MM..*/
                  

                  if not you need the relative(url(‘/…’), OR have to hard code the MM machine address
                  like this

                  url('http://MM_IP_address:mm_port/icons/circle.png')
                  

                  if linked from the web use its complete url path

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  C 1 Reply Last reply 28 days ago Reply Quote 0
                  • C Offline
                    com1cedric @sdetweil
                    last edited by 28 days ago

                    @sdetweil said in MMM-Carousel Pagination Icons:

                    url(‘/icons/circle.png’)

                    Thank you very much Sam.

                    currently, I have the following command (which works well and shows an icon from FontAwesom) in custom.css:

                    .MMM-page-indicator div.module-content div i:nth-child(7)::after {
                    content: “\f207”;
                    font-family: FontAwesome;
                    color: #FF4433;
                    }

                    After putting an image called “olympic.png” in the “MagicMirror/icons” folder, it still does not appear if I write:

                    .MMM-page-indicator div.module-content div i:nth-child(7)::after {
                    url(‘/icons/olympics.png’);
                    }

                    Do I habe to still use “content:” before or something else?

                    PS. sorry for asking, I am quite new in this CSS topic

                    S 2 Replies Last reply 28 days ago Reply Quote 0
                    • S Away
                      sdetweil @com1cedric
                      last edited by 28 days ago

                      @com1cedric i will test this out and get back

                      icons are very small images

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 4 / 5
                      4 / 5
                      • First post
                        33/48
                        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