Read the statement by Michael Teeuw here.
MMM-DumpsterDay
-
I also needed to change the date on each of the cans within the same MagicMirror/config/config.js file
basicStartDate: “11.13.2019”,
plasticStartDate: “11.13.2019”,
landscapeStartDate: “11.13.2019”,Please note the date format in the config should be DD.MM.YYYY, the only format making sense :P
If you were testing this on 11.11.2019, the month and day commutable :D
-
@DeanoNoire Thats not how the default dates in the MagicMirror/config/config.js were listed from what I recall. They were/are MM.DD.YYYY.
Here is the sample entry that is on the github repository and it lists 24.10.2019 which has to be MM:DD:YYYY. There is no 24th month. :)
enableBasic: true, // Enable basic trashcan basicStartDate: "24.10.2019", // The first dumpster day (Always use 2 digit dates (01 instead of 1)) basicDateDiff_1: 14, // Trashday reoccurance - Default: 14 (every 14 days) basicNotifyDayBefore: true, //Default: true - If you want the notification to appear also the day before the dumpster day enablePlastic: true, // Same values as basic but for Plastic plasticStartDate: "16.01.2019", plasticDateDiff_1: 28, plasticNotifyDayBefore: true, enableLandscape: false, // Same values as basic but for Landscape landscapeStartDate: "29.10.2019", landscapeDateDiff_1: 28, landscapeNotifyDayBefore: true,
-
@BD0G That would be playing with the width of the elements in the css file. I will check the options of making it a config key as well. But later today - just got to work :)
Thanks for all the ideas and work done! :) -
@BD0G
added :) -
@DeanoNoire Just saw that! Thanks!
Error in spelling of the word clone in the instructions. Its spelled colne.Just FYI.
-
@BD0G Exactly: 24 = DD, 10=MM, 2019=YYYY, so 24.10.2019 is DD.MM.YYYY, an European standard format :)
What I quoted from your post: 11.13.2019 is not applicable as there is no 13th month :)var startDateYear = startDate.substring(6,10);
var startDateMonth = startDate.substring(3,5);
var startDateDay = startDate.substring(0,2);That’s the exact code that cuts the date to year, month and day variables, so day is the first two numbers, month are another two numbers and year are last four numbers :)
-
This post is deleted! -
@DeanoNoire Ahh , thats what is causing the issue.
US Format is Month:Day:Year and not
the European Standard Day:Month:Year. -
@BD0G
i thought i had it working but no,all the icons show up ok but i can’t get them showing on the correct days,either all or basic.
what did you change on the date?both entries look the same to me,also,did you leave the entry at false?does it still show on the expected day? -
I set up my config.js to todays date (for testing) so that I could see the trash can icons show up. The format that one needs to use is Day.Month.Year on the
basicStartDate:
plasticStartDate:
landscapeStartDate:
linesHere is my config.js which does display the cans as it should.
{ module:"MMM-DumpsterDay", position:"bottom_bar", config: { refreshInterval: 18000000, // Default: 18000000 = 5 hours pulse: true, // Default: true - Makes the module pulsating enableBasic: true, // Enable basic trashcan basicStartDate: "11.11.2019", // The first dumpster day (Always use 2 digit dates (01 instead of 1)) basicDateDiff_1: 7, // Trashday reoccurance - Default: 14 (every 14 days) basicNotifyDayBefore: true, //Default: true - If you want the notification to appear also the day before the dumpster day enablePlastic: false, // Same values as basic but for Plastic plasticStartDate: "11.11.2019", plasticDateDiff_1: 28, plasticNotifyDayBefore: true, enableLandscape: true, // Same values as basic but for Landscape landscapeStartDate: "11.11.2019", landscapeDateDiff_1: 14, landscapeNotifyDayBefore: true, } },
When I change the dates to the 13th of this month then the trash cans are not shown as they should not be shown until the day BEFORE trash day and the DAY of trash day. Which would be tomorrow and the day after.