Skip to content

MagicMirror module for displaying Garbage pickup schedule


Notifications You must be signed in to change notification settings


Repository files navigation


This a module for Magic Mirror². This displays the schedule for your Garbage pickup. It supports multiple types of garbage bins.



Clone this repository in your modules folder, and install dependencies:

cd ~/MagicMirror/modules 
git clone
cd MMM-MyGarbage
npm install 


Go to the MagicMirror/config directory and edit the config.js file. Add the module to your modules array in your config.js.

  module: 'MMM-MyGarbage',
  position: 'top_left',
  header: 'My Garbage Calendar',
  config: {
          alert: 4,
          weeksToDisplay: 2,
          limitTo: 99,
          fade: true,
          dateFormat: "dddd D MMMM",
          fadePoint: 0.25

Module configuration

Here is the documentation of options for the modules configuration:

Option Description
weeksToDisplay How many weeks into the future to show collection dates.

Default: 2
limitTo Limit the display to the spcified number of pickups.

Default: 99
dateFormat Format to use for the date of events

Default: dddd D MMMM (e.g. January 18)
Possible values: See
alert (optional) Show alert, if remaining entries in csv file fall under this threshold

Default: false
fade Fade the future events to black. (Gradient).

Possible values: true or false
fadePoint Where to start fade?

Possible values: 0 (top of the list) - 1 (bottom of list)

Example config

Creating and using your Garbage Schedule

You can use this module by creating your own Garbage Schedule file with the name garbage_schedule.csv An example file garbage_schedule.csv is added.

Create a CSV based on the following template:


Default there are 3 bins defined (green, gray and blue) If you need more garbage bins, simply add an extra column in the garbage_schedule.csv file. The name is the color you like the bin to have.

Add lines for each garbage pickup date as needed. The date format needs to be specified as MM/DD/YY (e.g.: 05/28/18 for 28-May-2018)

Possible Values for colors:

  • Legacy Values:
    • GreenBin (defaults to #00A651)
    • GarbageBin (defaults to #787878)
    • PaperBin (defaults to #0059ff)
    • PMDBin (defaults to #ffff00)
    • OtherBin (defaults to #B87333)
  • Any CSS color string (red, chocolate, cornflowerblue, etc..)
  • Any HEX-Color (#FF0000, #8c8c8c, etc)
  • Any rgb, rgba or hsl value if in double quotes ("rgb(128,65,98)", "rgba(134,56,32,0.5)", "hsl(0, 100%, 50%)", etc.)

The following is VERY important:

  • The CSV file must be delimited using commas
  • The date format needs to be specified as MM/DD/YY (e.g.: 05/28/18 for 28-May-2018)
  • The remaining fields of each line specify whether the particular waste product is scheduled to be picked up on the given date. A value of 0 means no pick up. A value of ANYTHING ELSE means the product will be picked up. Using the first pick up date entry in the template above, 1,0,1 means that green and blue will be picked up on that date, while gray will not be picked up.

Save the file as garbage_schedule.csv in the MMM-MyGarbage directory and restart Magic Mirror²


The MIT License (MIT)

Copyright © 2019 Harm Tilburgs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.


The original script is from Jeff Clarke MMM-MyWastePickup and only for the Toronto area. Now it has become a general script, to use in all areas all over the world.