Read the statement by Michael Teeuw here.
MMM-MyWastePickup (Toronto waste collection schedule)
-
Hi, how can i change the date format? I live in Germany. Thank you.
-
@KamiSchami My module doesn’t support this. But if you want to modify it for your needs, the lines in particular are 116 and 118:
//determine how close pickup day is and formats accordingly. var today = moment().startOf("day"); var pickUpDate = moment(pickup.pickupDate); if (today.isSame(pickUpDate)) { dateContainer.innerHTML = this.translate("TODAY"); } else if (moment(today).add(1, "days").isSame(pickUpDate)) { dateContainer.innerHTML = this.translate("TOMORROW"); } else if (moment(today).add(7, "days").isAfter(pickUpDate)) { dateContainer.innerHTML = pickUpDate.format("dddd"); // here... } else { dateContainer.innerHTML = pickUpDate.format("MMMM D"); //...and here }
This will help figure out your formatting options:
https://momentjs.com/docs/#/displaying/- Jeff
-
@j-e-f-f Thank you, it works. Great Modul. Nice Icons.
-
@KamiSchami Can you show how to change that successfuly …I’m from Germany too
-
Zeile 116 dateContainer.innerHTML = pickUpDate.format(“dddd”);
Zeile 118 dateContainer.innerHTML = pickUpDate.format(“DD. MMM YYYY”); -
@KamiSchami Ok Danke
-
I had this working fine on my Magic Mirror with a custom schedule, but now that I’ve started from scratch and created a new Magic Mirror install - MMM-MyWastePickup shows ‘No Schedule’ on the main page.
Here’s my config:
{ module: 'MMM-MyWastePickup', position: 'upper_third', header: 'Bin Schedule', config: { collectionCalendar: 'Custom', } },```
And my schedule:
Calendar,WeekStarting,GreenBin,Garbage,Recycling,YardWaste,ChristmasTree
Custom,02/07/21,0,0,1,0,0
Custom,02/14/21,1,0,0,0,0
Custom,02/21/21,0,0,1,0,0
Custom,02/28/21,1,0,0,0,0And a pic of how it looks on the Magic Mirror
-
@mike2323 ```
Calendar, WeekStarting, GreenBin, Garbage, Recycling, YardWaste, ChristmasTree
Custom, 01/07/21, 0, 1, 0, 0, 0
Custom, 01/14/21, 0, 0, 0, 1, 0
Custom, 01/15/21, 1, 0, 0, 0, 0
Custom, 01/21/21, 0, 1, 0, 0, 0
Custom, 01/28/21, 0, 0, 0, 1, 0
Custom, 02/04/21, 0, 1, 0, 0, 0
Custom, 02/11/21, 0, 0, 0, 1, 0
Custom, 02/12/21, 1, 0, 0, 0, 0
Custom, 02/18/21, 0, 1, 0, 0, 0
Custom, 02/25/21, 0, 0, 0, 1, 0
Custom, 03/04/21, 0, 1, 0, 0, 0
Custom, 03/11/21, 0, 0, 0, 1, 0
Custom, 03/12/21, 1, 0, 0, 0, 0
Custom, 03/18/21, 0, 1, 0, 0, 0
Custom, 03/25/21, 0, 0, 0, 1, 0
Custom, 04/01/21, 0, 1, 0, 0, 0
Custom, 04/09/21, 0, 0, 0, 1, 0
Custom, 04/10/21, 1, 0, 0, 0, 0
Custom, 04/15/21, 0, 1, 0, 0, 0
Custom, 04/22/21, 0, 0, 0, 1, 0
Custom, 04/29/21, 0, 1, 0, 0, 0
Custom, 05/06/21, 0, 0, 0, 1, 0
Custom, 05/07/21, 1, 0, 0, 0, 0
Custom, 05/14/21, 0, 1, 0, 0, 0
Custom, 05/20/21, 0, 0, 0, 1, 0
Custom, 05/28/21, 0, 1, 0, 0, 0
Custom, 06/03/21, 0, 0, 0, 1, 0
Custom, 06/04/21, 1, 0, 0, 0, 0
Custom, 06/10/21, 0, 1, 0, 0, 0
Custom, 06/17/21, 0, 0, 0, 1, 0
Custom, 06/24/21, 0, 1, 0, 0, 0
Custom, 07/01/21, 0, 0, 0, 1, 0
Custom, 07/02/21, 1, 0, 0, 0, 0
Custom, 07/08/21, 0, 1, 0, 0, 0
Custom, 07/15/21, 0, 0, 0, 1, 0
Custom, 07/22/21, 0, 1, 0, 0, 0
Custom, 07/29/21, 0, 0, 0, 1, 0
Custom, 07/30/21, 1, 0, 0, 0, 0
Custom, 08/05/21, 0, 1, 0, 0, 0
Custom, 08/12/21, 0, 0, 0, 1, 0
Custom, 08/19/21, 0, 1, 0, 0, 0
Custom, 08/26/21, 0, 0, 0, 1, 0
Custom, 08/27/21, 1, 0, 0, 0, 0
Custom, 09/02/21, 0, 1, 0, 0, 0
Custom, 09/09/21, 0, 0, 0, 1, 0
Custom, 09/16/21, 0, 1, 0, 0, 0
Custom, 09/23/21, 0, 0, 0, 1, 0
Custom, 09/24/21, 1, 0, 0, 0, 0
Custom, 09/30/21, 0, 1, 0, 0, 0
Custom, 10/07/21, 0, 0, 0, 1, 0
Custom, 10/14/21, 0, 1, 0, 0, 0
Custom, 10/21/21, 0, 0, 0, 1, 0
Custom, 10/22/21, 1, 0, 0, 0, 0
Custom, 10/28/21, 0, 1, 0, 0, 0
Custom, 11/04/21, 0, 0, 0, 1, 0
Custom, 11/11/21, 0, 1, 0, 0, 0
Custom, 11/19/21, 0, 0, 0, 1, 0
Custom, 11/20/21, 1, 0, 0, 0, 0
Custom, 11/25/21, 0, 1, 0, 0, 0
Custom, 12/02/21, 0, 0, 0, 1, 0
Custom, 12/09/21, 0, 1, 0, 0, 0
Custom, 12/16/21, 0, 0, 0, 1, 0
Custom, 12/17/21, 1, 0, 0, 0, 0
Custom, 12/23/21, 0, 1, 0, 0, 0
Custom, 12/30/21, 0, 0, 0, 1, 0 -
@mike2323
that works fine for me …
if it does not work in your case…there would be another problem. -
may’i ask how you edit the file??? I got the same problem last week whit the Dutch variant mmm-MyGarbage
I help @leentje whit the problem.If you trey to edit the file in Grany or excel or something else its keep saying “No schedule”
You must edit the file on the mirror i’t selfThis is the way of the Dutch variant…
in the Terminalcd ~/MagicMirror/modules/MMM-MyGarbage
sudo rm garbage_schedule.csv. (deletet corrupted file)
sudo nano garbage_schedule.csv (make new file)Copy past…
WeekStarting,green,gray,blue,orange
11/18/20,0,1,0,1
11/25/20,1,0,0,0
12/02/20,0,1,0,0
12/09/20,1,0,0,0
12/16/20,0,1,0,1
enz…
Save the fileThan
sudo reboot (the mirror must reboot not cntr+r) hard reset!!Thats work whit the dutch variant…