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

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.
  • M Offline
    Mykle1 Project Sponsor Module Developer
    last edited by Feb 3, 2017, 11:01 PM

    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

    M 1 Reply Last reply Feb 3, 2017, 11:10 PM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @Mykle1
      last edited by Feb 3, 2017, 11:10 PM

      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
      • B Offline
        broberg Project Sponsor
        last edited by Feb 4, 2017, 12:39 PM

        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)

        M 1 Reply Last reply Feb 5, 2017, 3:35 PM Reply Quote 2
        • M Offline
          Mykle1 Project Sponsor Module Developer @broberg
          last edited by Feb 5, 2017, 3:35 PM

          @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
          1 / 1
          • First post
            1/4
            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