MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Using SimpleLogo twice? (or more)?

    Troubleshooting
    2
    4
    1752
    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.
    • Mykle1
      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

      Mykle1 1 Reply Last reply Reply Quote 0
      • Mykle1
        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
        • broberg
          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)

          Mykle1 1 Reply Last reply Reply Quote 2
          • Mykle1
            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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy