MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    UNSOLVED Trashday modules based on ICAL

    Requests
    2
    4
    461
    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.
    • Screwyoudriver
      Screwyoudriver last edited by

      I see enough trash day moduls based on excel documents etc.
      The garbage collector here uses ICAL
      Is there a module based on ICAL? Or does someone else have a good idea? or has made one?
      I could not find anything that is based on ICAL.

      Thanks!

      *Random link to garbage collector website ical *
      https://inzamelkalender.hvcgroep.nl/ical/0441200000002545

      1 Reply Last reply Reply Quote 0
      • lavolp3
        lavolp3 Module Developer last edited by

        If you just want to show the day the trash is picked up you could as well include the ical into the calendar module…

        How to troubleshoot modules
        MMM-soccer v2, MMM-AVStock

        Screwyoudriver 1 Reply Last reply Reply Quote 0
        • Screwyoudriver
          Screwyoudriver @lavolp3 last edited by

          @lavolp3 That’s right, I already have that. I only want it in a separate module. Because that’s nicer.

          lavolp3 1 Reply Last reply Reply Quote 0
          • lavolp3
            lavolp3 Module Developer @Screwyoudriver last edited by

            @Screwyoudriver OK makes sense. I thought about some module like this as well.

            BTW: Another workaround would be to fetch the notification that is distributed by calendar:

            	broadcastEvents: function () {
            		var eventList = [];
            		for (var url in this.calendarData) {
            			var calendar = this.calendarData[url];
            			for (var e in calendar) {
            				var event = cloneObject(calendar[e]);
            				event.symbol = this.symbolsForUrl(url);
            				event.calendarName = this.calendarNameForUrl(url);
            				event.color = this.colorForUrl(url);
            				delete event.url;
            				eventList.push(event);
            			}
            		}
            
            		eventList.sort(function(a,b) {
            			return a.startDate - b.startDate;
            		});
            
            		this.sendNotification("CALENDAR_EVENTS", eventList);
            
            	}
            

            calendar could do the conversion work for the trash module, and the trash module could just fetch and filter the events for trash-related ones.

            How to troubleshoot modules
            MMM-soccer v2, MMM-AVStock

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy