MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Using SimpleLogo twice? (or more)?


  • Module Developer

    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


  • Module Developer

    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


  • Module Developer

    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)


  • Module Developer

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