MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. cjkj_06
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 0

    cjkj_06

    @cjkj_06

    0
    Reputation
    392
    Profile views
    2
    Posts
    0
    Followers
    1
    Following
    Joined
    Last Online

    cjkj_06 Unfollow Follow

    Latest posts made by cjkj_06

    • RE: MMM-ImageSlideshow need help adding an interesting feature

      @cowboysdude
      True that, Thank you very much for replying

      Either if or switch, which variable from the default calendar module gives me the event name in text format ?
      and can I use that variable at config.js level ?

      Appreciate your time
      Chirantan

      posted in Troubleshooting
      cjkj_06C
      cjkj_06
    • MMM-ImageSlideshow need help adding an interesting feature

      Greetings !
      Very useful module by @MYKLE1
      It puts images on the mirror based on the path given
      Basically it works fine for me !!

      I want to add following feature
      -> Based on my calendar event, the module should choose which path to grab images from
      e.g. If my today’s event is “Jack’s birthday”, then it should pick images from the path: module/imageslideshow/Jack_Birthday
      in other cases, the module should pick images from designated default area
      Isn’t that interesting ? :)

      I am currently trying to edit top config.js file with something like this
      Obviously it is incorrect, but still putting it out

      if (calendar.event == "Holi") {
      	var imagePath  = "modules/MMM-ImageSlideshow/Holi";
      } else {
      	var imagePath = "modules/MMM-ImageSlideshow/exampleImages", 
      }
      

      Which is the variable of “calendar” module, which gets me the event name, and how to use that var on config.js file ?
      PS: I dont know javascript , but i know C, python etc
      Appreciate any help
      Thanks
      Chirantan

      posted in Troubleshooting imageslideshow mykle1 newfeature config.js
      cjkj_06C
      cjkj_06