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.

    Trashday modules based on ICAL

    Scheduled Pinned Locked Moved Unsolved Requests
    4 Posts 2 Posters 846 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.
    • ScrewyoudriverS Offline
      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
      • lavolp3L Offline
        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

        ScrewyoudriverS 1 Reply Last reply Reply Quote 0
        • ScrewyoudriverS Offline
          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.

          lavolp3L 1 Reply Last reply Reply Quote 0
          • lavolp3L Offline
            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 Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy