• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-MyWastePickup (Toronto waste collection schedule)

Scheduled Pinned Locked Moved Productivity
69 Posts 16 Posters 42.1k Views 17 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.
  • J Offline
    j.e.f.f Project Sponsor Module Developer @twosquirrels
    last edited by May 5, 2019, 3:27 PM

    @twosquirrels any errors show up either in the log or in Electron’s console?

    1 Reply Last reply Reply Quote 0
    • M Offline
      MYLE-01
      last edited by MYLE-01 Jun 18, 2019, 11:28 PM Jun 18, 2019, 11:27 PM

      Thanks alsum

      BUT took me 3 hours to get it going

      and it was me

      weeksToDisplay: 4 
       to 
      weeksToDisplay: "4"
      

      THANKS GUYS :clinking_beer_mugs:

      1 Reply Last reply Reply Quote 0
      • U Offline
        uppynz
        last edited by Jul 26, 2019, 3:49 AM

        I’m loving this simple little module! I’m just trying to work out how I show only collections and not the blank days in between. I’ve tried adjusting the config variables but don’t seem to be getting the desired results. Ideally I only want to see the next two upcoming collections (what ever they may be)

        1_1564112903473_MM Waste.PNG 0_1564112903473_MM Waste CSV.PNG

        		module: 'MMM-MyWastePickup',
        		position: 'top_left',
        		header: 'Wheelie Bin Collections',
        		config: {
        			collectionCalendar: 'Custom'
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          Stoffbeuteluwe Project Sponsor @twosquirrels
          last edited by Jul 26, 2019, 6:45 AM

          @twosquirrels for me it works …

          1 Reply Last reply Reply Quote 0
          • K Offline
            KamiSchami
            last edited by Jul 30, 2020, 6:00 AM

            Hi, how can i change the date format? I live in Germany. Thank you.

            Real programmers never work 9 to 5. If they are around at 9 AM, it's because they were up all night.

            J 1 Reply Last reply Aug 2, 2020, 10:22 AM Reply Quote 0
            • J Offline
              j.e.f.f Project Sponsor Module Developer @KamiSchami
              last edited by j.e.f.f Aug 2, 2020, 10:23 AM Aug 2, 2020, 10:22 AM

              @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
              K 1 Reply Last reply Aug 3, 2020, 10:35 AM Reply Quote 0
              • K Offline
                KamiSchami @j.e.f.f
                last edited by Aug 3, 2020, 10:35 AM

                @j-e-f-f Thank you, it works. Great Modul. Nice Icons.

                Real programmers never work 9 to 5. If they are around at 9 AM, it's because they were up all night.

                S 1 Reply Last reply Aug 3, 2020, 6:50 PM Reply Quote 0
                • S Offline
                  Stoffbeuteluwe Project Sponsor @KamiSchami
                  last edited by Aug 3, 2020, 6:50 PM

                  @KamiSchami Can you show how to change that successfuly …I’m from Germany too

                  K 1 Reply Last reply Aug 5, 2020, 5:51 AM Reply Quote 0
                  • K Offline
                    KamiSchami @Stoffbeuteluwe
                    last edited by Aug 5, 2020, 5:51 AM

                    @Stoffbeuteluwe

                    Zeile 116 dateContainer.innerHTML = pickUpDate.format(“dddd”);
                    Zeile 118 dateContainer.innerHTML = pickUpDate.format(“DD. MMM YYYY”);

                    Real programmers never work 9 to 5. If they are around at 9 AM, it's because they were up all night.

                    S 1 Reply Last reply Aug 5, 2020, 7:18 PM Reply Quote 0
                    • S Offline
                      Stoffbeuteluwe Project Sponsor @KamiSchami
                      last edited by Aug 5, 2020, 7:18 PM

                      @KamiSchami Ok Danke

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 6 / 7
                      • 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