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

Conditional formatting of config (e.g., MMM-Unsplash)

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 759 Views 2 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.
  • K Offline
    kazanjig
    last edited by Feb 18, 2019, 6:37 PM

    Is it possible to have conditional statements in the config? For example, for MMM-Unsplash, to have separate image collections for time of day, season, etc.?

    S 1 Reply Last reply Feb 18, 2019, 6:50 PM Reply Quote 0
    • S Offline
      Seann Module Developer @kazanjig
      last edited by Feb 18, 2019, 6:50 PM

      @kazanjig If you edit the module “MMM-Unsplash” then yes. It’s a lot easier than it sounds honestly.

      K 1 Reply Last reply Feb 18, 2019, 6:56 PM Reply Quote 0
      • K Offline
        kazanjig @Seann
        last edited by Feb 18, 2019, 6:56 PM

        @seann good point, I could just put the collections directly in the module rather than the config, that would do it. @parnic suggested using profile switcher, or at least there may be functionality to grab. I should be able to take it from here – pretty simple. The most time-consuming part will be creating the collection of collections.

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        1 / 1
        • First post
          2/3
          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