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.

    Using SimpleLogo twice? (or more)?

    Scheduled Pinned Locked Moved Troubleshooting
    4 Posts 2 Posters 2.2k 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer
      last edited by

      Hi,

      I want to use SimpleLogo more than once, to show different pictures/logos in different places on the mirror. Assuming that is possible, is it just a matter of entering it into the config.js for each use? e.g. The first instance for one picture and the second instance for another picture in a different location at the same time?

      I hope that was clear enough

      Create a working config
      How to add modules

      Mykle1M 1 Reply Last reply Reply Quote 0
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer @Mykle1
        last edited by

        I guess I should have looked at the SimpleLogo.js file before asking the above question. That’s where the path to the picture is. So I guess some modification here is needed to add another path to a second picture, although I wouldn’t know how to do that.

        Is it even possible? If so, please advise.

        Thanks

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • brobergB Offline
          broberg Project Sponsor
          last edited by

          You should be able to just load the module twice with different configurations.

          The url to the file is set in the configuration with fileUrl

          So basically add more of the same module in the config.js file but change the fileUrl in each one (and the position)

          Mykle1M 1 Reply Last reply Reply Quote 2
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer @broberg
            last edited by

            @broberg Thank you. That worked very nicely. Much appreciated

            Create a working config
            How to add modules

            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