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

    Posts

    Recent Best Controversial
    • RE: Default Calendar module // request to show events only if start date > today + 2 days

      @sdetweil
      Works like a charm.
      Thank you very much, I’ve learnt something thanks to you and appreciated your support for debug.
      See you around.

      posted in Development
      B
      bolish
    • RE: MMM-iFrame-Ping

      @AgP42
      Hi, Thanks for the work, good module.
      Would it be possible to update the module by adding notification mgt to move to next url, .ie :

      • upon “IFRAMEPING_NEXT_URL” : display the next url of the list
      • Same with previous
      • Add Start / Pause option through notification also.

      I’m using MMM-GroveGestures and would like to be able to switch from URL1 to URL2 with gestures.

      Regards

      posted in Utilities
      B
      bolish
    • RE: Interaction between MMM-Pages & MMM-GroveGestures

      Thanks. Will try that this evening. Keep you posted.

      posted in Requests
      B
      bolish
    • RE: Interaction between MMM-Pages & MMM-GroveGestures

      @Sean you’re fast.
      I’ve made several trials, everything seems to work perfectly with your new code. You rock.

      Nevertheless, I’m facing an issue…I believe it’s because I’m not able to write the payload thing right…Would you mind having a look :

      commandSetTrigger: {
      					  "TESTESTT": "0",
      					  "DEFAULT_MODE": "DEFAULT_MODE",
        					  "PAGE_NUMBER_IS": (payload) => { // You can use callback function to change set with conditional payload values.
      									    return payload.commandSetName
      											  }
      					},
      

      At one moment in time, I’m receiving “PAGE_NUMBER_IS” with payload=X.
      I’ve a commandset called “X”, but it’s not working…

      I’ve tried to send “PAGE_NUMBER_IS” + payload “X” manually = your code works fine. So no issue there.
      I’ve installed a notification reader = i’m sure I’m receiving the “PAGE_NUMBER_IS” notification. So that’s fine also.

      The only thing I maybe don’t know is what payload “X” (0 or 1 or 2 or 3) is included in the notification I’m receiving. I tried to transform this notification+payload into an alert+payload (through MMM-notification trigger) to check what the “X” payload is…But I also failed to do that because you need to deal with payload/return which I don’t know…
      Nevertheless, I’m quiet convinced X=0 because it’s how the MMM-PAGES works.

      Anyway, I’m stucked and I believe it’s because I’m writting the payload thing wrong.

      Would appreciate your support there.

      posted in Requests
      B
      bolish
    • RE: Default Calendar module // request to show events only if start date > today + 2 days

      @sdetweil
      Hi again, I just tried by modifying the createEventList “today” and “now” variable, but it didn’t work…

      createEventList: function () {
      		var events = [];
      		var someDate = new Date();
      		var numberOfDaysToAdd = 6;
      		someDate.setDate(someDate.getDate() + numberOfDaysToAdd);
      		var today = moment(someDate).startOf("day");
      		var now = someDate;
      		for (var c in this.calendarData) {
      
      posted in Development
      B
      bolish
    • RE: Default Calendar module // request to show events only if start date > today + 2 days

      @sdetweil
      Thanks, I will give it a try this evening and keep you guys posted.

      posted in Development
      B
      bolish
    • RE: Default Calendar module // request to show events only if start date > today + 2 days

      @ganget
      no problem. thanks for the idea.
      I was thinking about modifying the module code to change “today’s” date into “today’s date +2” but can’t yet figure out how too.

      posted in Development
      B
      bolish
    • RE: Default Calendar module // request to show events only if start date > today + 2 days

      hi @ganget
      Thanks for prompt reply.

      Maybe there is a misunderstanding as I can’t figure out what is forcing the calendar to start in 2 days only in your calendar.

      Your code will allow me to block max entries to 15 or to a certain number of days (365 or 2 or whatever) but not allow me to hide event from today + the day after.

      Let me try to rephrase my need : I need the calendar to hide (to not show) the 2 first days of event.

      Or maybe I missed something in your code.

      posted in Development
      B
      bolish
    • Default Calendar module // request to show events only if start date > today + 2 days

      Hi,

      Is there a way to make the calendar events show only when they are after after a certain number of days?

      Let’s say, do not show an event if date is < today + 2 days.

      I tried to use the ExcludedEvents + FilterBy “until” but didn’t worked.
      Also looked at modifying the calendar or fetcher.js but sounds like a bad idea…

      Regards

      Regards

      posted in Development
      B
      bolish
    • RE: Default Calendar // Multiple caldendar instances overwritting each other..(maximumNumberOfDays)

      yes indeed.

      posted in Troubleshooting
      B
      bolish
    • 1
    • 2
    • 8
    • 9
    • 10
    • 11
    • 12
    • 10 / 12