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 57.6k 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.
    • kruemelK Offline
      kruemel
      last edited by kruemel

      Hey jeff

      I tried out your Module but it doesn’t work correctly for me.
      Just showing up “loading…”
      0_1520180532441_1ce2ec62-3de5-4af9-b318-28eaff593e93-image.png

      I changed your schedule.csv to match my collection schedule.

      Calendar,WeekStarting,GreenBin,Garbage,Recycling,YardWaste, ChristmasTree
      Thursday1,01/04/18,0,R,0,0,0
      Thursday1,01/13/18,0,0,R,0,0
      Thursday1,02/01/18,0,R,0,0,0
      Thursday1,03/01/18,0,R,0,0,0
      Thursday1,03/08/18,0,R,0,0,0
      Thursday1,03/15/18,0,R,0,0,0
      Thursday1,03/22/18,0,R,0,0,0
      Thursday1,03/28/18,0,R,0,0,0
      Thursday1,04/05/18,0,R,0,0,0
      Thursday1,04/12/18,0,R,0,0,0
      Thursday1,04/19/18,0,R,0,0,0
      Thursday1,04/26/18,0,R,0,0,0
      Thursday1,05/03/18,0,R,0,0,0
      Thursday1,05/05/18,0,0,R,0,0
      Thursday1,05/09/18,0,R,0,0,0
      Thursday1,05/17/18,0,R,0,0,0
      Thursday1,05/24/18,0,R,0,0,0
      Thursday1,05/30/18,0,R,0,0,0
      Thursday1,06/07/18,0,R,0,0,0
      Thursday1,06/14/18,0,R,0,0,0
      Thursday1,06/21/18,0,R,0,0,0
      Thursday1,06/28/18,0,R,0,0,0
      Thursday1,07/05/18,0,R,0,0,0
      Thursday1,07/12/18,0,R,0,0,0
      Thursday1,07/19/18,0,R,0,0,0
      Thursday1,07/26/18,0,R,0,0,0
      Thursday1,08/02/18,0,R,0,0,0
      Thursday1,08/09/18,0,R,0,0,0
      Thursday1,08/16/18,0,R,0,0,0
      Thursday1,08/23/18,0,R,0,0,0
      Thursday1,08/30/18,0,R,0,0,0
      Thursday1,09/06/18,0,R,0,0,0
      Thursday1,09/13/18,0,R,0,0,0
      Thursday1,09/20/18,0,R,0,0,0
      Thursday1,09/22/18,0,0,R,0,0
      Thursday1,09/27/18,0,R,0,0,0
      Thursday1,10/04/18,0,R,0,0,0
      Thursday1,10/11/18,0,R,0,0,0
      Thursday1,10/18/18,0,R,0,0,0
      Thursday1,10/25/18,0,R,0,0,0
      Thursday1,10/31/18,0,R,0,0,0
      Thursday1,11/08/18,0,R,0,0,0
      Thursday1,11/15/18,0,R,0,0,0
      Thursday1,11/22/18,0,R,0,0,0
      Thursday1,11/29/18,0,R,0,0,0
      Thursday1,12/06/18,0,R,0,0,0
      Thursday1,12/13/18,0,R,0,0,0
      Thursday1,12/20/18,0,R,0,0,0
      Thursday1,12/27/18,0,R,0,0,0
      

      With this config:

      {
      		module: 'MMM-MyWastePickup',
      		position: 'top_right',
      		header: 'Entsorgungsplan',
      			config: {
      				collectionCalendar: 'Thursday1'
      			}
      		},
      

      Is my language (german) the problem or should this work?
      Regards

      J 2 Replies Last reply Reply Quote 0
      • J Offline
        j.e.f.f Project Sponsor Module Developer @onetwankyfive
        last edited by

        @onetwankyfive I’ve updated the module with 2018’s schedule. You should be good to go now.

        1 Reply Last reply Reply Quote 0
        • J Offline
          j.e.f.f Project Sponsor Module Developer @kruemel
          last edited by

          @kruemel said in MMM-MyWastePickup (Toronto waste collection schedule):

          I changed your schedule.csv to match my collection schedule.

          I’m trying to do the same thing myself for a spin off of this for my collection schedule here in the UK. I’m having the same issue as you at the moment. When I figure it out, I’ll post back here.

          1 Reply Last reply Reply Quote 0
          • J Offline
            j.e.f.f Project Sponsor Module Developer @kruemel
            last edited by

            @kruemel I honestly have no idea why yours isn’t working. I thought it might be because you used a collection day name that’s not valid, but Thursday1 is in the list. I also thought maybe your date format didn’t match, but that seems to be fine too.

            Just to be sure, are you fully restarting Magic Mirror after these changes? The module only loads the schedule once at startup. Refreshing the browser won’t reload the schedule.

            1 Reply Last reply Reply Quote 0
            • kruemelK Offline
              kruemel
              last edited by

              Yes i did.

              Now i git pulled your latest relase.
              Also tried npm install and got this:

              pi@mm:~/MagicMirror/modules/MMM-MyWastePickup $ npm install
              npm WARN mmmmywastepickup@1.0.0 No repository field.
              

              But, with your 2018, its working.
              I will try again after this update and will report to you :-)

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                j.e.f.f Project Sponsor Module Developer @kruemel
                last edited by

                @kruemel You can ignore that error message. It just means I’ve omitted some information from the package.json file, but none of what I’ve left out is critical to the operation of this module.

                1 Reply Last reply Reply Quote 0
                • kruemelK Offline
                  kruemel
                  last edited by

                  it works now.
                  Just your update and my svg file, and now it works…
                  i dont know why :D

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    j.e.f.f Project Sponsor Module Developer @kruemel
                    last edited by

                    @kruemel For what it’s worth, I’ve just added official support for a custom schedule file. Check the README for instructions to do so. What you’ve done should and does work, but you risk having your schedule file overwritten if you update the module. With a quick tweak, you can have your schedule work within the new system and it won’t get overwritten when you update the module.

                    I just pushed v1.3 to GitHub a few moments ago, so you’ll need to pull again.

                    1 Reply Last reply Reply Quote 2
                    • kruemelK Offline
                      kruemel
                      last edited by

                      @j.e.f.f works as usual, thanks for your quick work :-)

                      1 Reply Last reply Reply Quote 0
                      • kruemelK Offline
                        kruemel
                        last edited by

                        @j.e.f.f i have one more thing (just a detail):
                        Week day shown correctly in german like “Donnerstag” but it shows “Tomorrow” instead of “Morgen”.
                        Maybe this will also be “Today” instead of “Heute” but that i will know tomorrow ;-)

                        Regards

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          j.e.f.f Project Sponsor Module Developer @kruemel
                          last edited by

                          @kruemel This should be fixed now. Do a pull for v1.4. Also run npm install as I updated Moment.js to resolve a security vulnerability.

                          1 Reply Last reply Reply Quote 0
                          • twosquirrelsT Offline
                            twosquirrels
                            last edited by

                            Yesterday, my pickup schedule looked like this:
                            alt text

                            Today, it looks like this:
                            alt text

                            Is there a way to have it always display the next 3 events? My waste pickup is weekly, but recycling is every 2 weeks and I’d like to always see when the next recycling pickup is.

                            Thanks for another great module!

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              j.e.f.f Project Sponsor Module Developer @twosquirrels
                              last edited by

                              @twosquirrels Sure. I added a config parameter weeksToDisplay. Do a git pull to update. Set it to 3 for your use.

                              twosquirrelsT 1 Reply Last reply Reply Quote 0
                              • twosquirrelsT Offline
                                twosquirrels @j.e.f.f
                                last edited by

                                @j.e.f.f

                                Wow, that was fast! Thanks!

                                I believe I have it setup right, but it looks like it’s giving me +1 than what I’m asking for, perhaps because it’s not including tomorrow?:

                                Setting ‘2’ gives me 3 total:
                                alt text

                                Setting ‘3’ gives me 4 total:
                                alt text

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  j.e.f.f Project Sponsor Module Developer @twosquirrels
                                  last edited by

                                  @twosquirrels No it’s correct. It’s 3 weeks by date – this will show any and all pickup dates between now and three weeks from now. Three weeks from today is April 18, which is why you’re seeing all pickup days between now and April 18.

                                  twosquirrelsT 1 Reply Last reply Reply Quote 0
                                  • twosquirrelsT Offline
                                    twosquirrels @j.e.f.f
                                    last edited by

                                    @j.e.f.f

                                    Ohh right, number of weeks. I was thinking it was number of events. Makes sense!

                                    1 Reply Last reply Reply Quote 0
                                    • WayneRigleyW Offline
                                      WayneRigley
                                      last edited by

                                      OK, First off Jeff, thank you for this. i cloned and installed and ran the test file you had and everything is working perfectly. So i started to make my own Custom file exactly how you said and no matter what i still continue to get a “loading” so i switch back to your file and it works. I have no idea what im doing wrong.!0_1527603197851_Custom.jpg

                                      Wayne R

                                      twosquirrelsT 1 Reply Last reply Reply Quote 0
                                      • twosquirrelsT Offline
                                        twosquirrels @WayneRigley
                                        last edited by twosquirrels

                                        @waynerigley The screenshot of your google drive isn’t helpful, because the final result likely has leading/trailing blank spaces, or some other issue that prevents it from parsing correctly. Edit schedule_custom.csv directly at the command line on your raspberry pi.

                                        WayneRigleyW 1 Reply Last reply Reply Quote 0
                                        • WayneRigleyW Offline
                                          WayneRigley @twosquirrels
                                          last edited by

                                          @twosquirrels Thank you for the FAST reply… as im new to this please bare with me. im using putty and VNC and FIleZilla while using this. I made the excel on google and downloaded it to my laptop in CSV with the correct name. then filezilla to get it to the folder. can you give me a command to check what you need me to do. thanks in advance !

                                          Wayne R

                                          twosquirrelsT 1 Reply Last reply Reply Quote 0
                                          • twosquirrelsT Offline
                                            twosquirrels @WayneRigley
                                            last edited by twosquirrels

                                            @waynerigley

                                            In putty, once you ssh into your raspberry pi, do:

                                            cd /home/pi/MagicMirror/modules/MMM-MyWastePickup
                                            

                                            Then:

                                            sudo nano schedule_custom.csv
                                            

                                            You’re now viewing the contents of schedule_custom.csv. I don’t remember if it included a sample or not, but just edit/type/paste your data here. When done, press Control X to exit. It will ask to save, and say “Y” for yes. The contents of the file should look like my post above from 2 months ago.

                                            WayneRigleyW 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • 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