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-DumpsterDay

    Scheduled Pinned Locked Moved Utilities
    83 Posts 11 Posters 57.8k Views 12 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.
    • D Offline
      DeanoNoire
      last edited by

      @BD0G That’s actually pretty good idea!
      In my town Recycle cans are put every 28 days, so I will definitelly use that feature too.
      I will work that in.

      Have a good one :)

      1 Reply Last reply Reply Quote 0
      • B Offline
        BD0G
        last edited by BD0G

        Cant Wait! With these changes I can then simply walk by my Magic Mirror on trash day and if I see one White Icon then its Trash “only” day. Or if I see a white Trash Icon and a Green Icon I will know I can put both Trash and Landscape out on the street. Saves me from having to consult a schedule that the trash provider sends us.
        Maybe another option in code to change to constant or pulsing icons???

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          DeanoNoire @BD0G
          last edited by DeanoNoire

          @BD0G So I’ve made some changes:
          Now there are 3 possible cans, user can disable each one in config or change the image via css.
          Pulsing is now switchable and I also changed the startDate input format.

          alt text

          Check it out ;)

          EDIT: I also added a blue version of the recylcing can as you mentioned (In Czech Republic it’s yellow)

          B 1 Reply Last reply Reply Quote 0
          • M Offline
            mrdenmark
            last edited by

            could you post a working config for this? i’m having no luck writing it into mine

            1 Reply Last reply Reply Quote 0
            • B Offline
              BD0G @DeanoNoire
              last edited by BD0G

              @DeanoNoire

              You are awesome! .
              We will need a working config file with all the parameters listed so that it is apparent what settings control what features.

              You can comment out the features using // backslashes as you know and add what they do to the right of the line or above it using // backslashes

              Example :
              //Line below this one controls the day that one sets to count from
              //Line below this one controls pulsing or constant

              etc…

              Also is there the need to clone a module into the modules directory below MagicMirror/modules?

              Specific instructions would be helpful to add to the git hub repository as there are alot of places where people can get hung up.

              Questions that I have are where does one place the trashcan.css file? Where does one place the trashcan.js file?
              Does one clone a directory into the MagicMirror/modules directory?
              What does one add to the config.js file within MagicMirror/config?

              Also you mis-spelled Dumpster again within the Noted files on the git hub repository.
              0_1573266735959_2ecb7600-7b4d-4175-8033-bfa908c47909-image.png
              Thanks for the quick work!

              Let me know if you need assistance with writing the instructions and I can lend a hand if needed.

              D 1 Reply Last reply Reply Quote 0
              • StoffbeuteluweS Offline
                Stoffbeuteluwe Project Sponsor @DeanoNoire
                last edited by

                @DeanoNoire a blue can would be Perfect Thanks :folded_hands_medium-light_skin_tone:

                B 1 Reply Last reply Reply Quote 0
                • B Offline
                  BD0G @Stoffbeuteluwe
                  last edited by

                  @Stoffbeuteluwe Its included within the trashcan.css file , but waiting on configuration options and how to setup.

                  StoffbeuteluweS 1 Reply Last reply Reply Quote 0
                  • StoffbeuteluweS Offline
                    Stoffbeuteluwe Project Sponsor @BD0G
                    last edited by

                    @BD0G ok Thanks

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      DeanoNoire @BD0G
                      last edited by

                      @BD0G Hi there,
                      I added the install instructions and example of config with descriptions to the readme file.
                      I’ll copy it here also:

                      {
                      	module:"trashcan",
                      	position:"lower_third",
                      	config: {
                      		refreshInterval: 18000000, // Default: 18000000 = 5 hours
                      		pulse: true, 			   // Default: true - Makes the module pulsating
                      
                      		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,
                      	}
                      

                      I hope it’s clear now :)

                      Also note the module should not appear today, as it’s not a dumpster day :) Try changing the Start date in the config to make it appear it’s dumpster day today to test it. I may also implement a AlwaysOn config key for testing purposes. Maybe during the week :)

                      If anything is unclear or can be improved, please let me know :)

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        BD0G
                        last edited by BD0G

                        Many of the other modules that are published use the following syntax to copy the files needed to the MagicMirror/modules directory.

                        git clone https://github.com/DeanoNoire/MMM-DumpsterDay.git

                        So perhaps it would be advantageous to add the following as the first step.

                        1. Navigate to the MagicMirror/modules sub-directory
                        2. Run the following command “git clone https://github.com/DeanoNoire/MMM-DumpsterDay.git” (this will copy the needed files into the sub-directory)
                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          BD0G
                          last edited by

                          Also the code for the config.js appears to be missing

                          },

                          at the end.

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            BD0G
                            last edited by

                            I switched to the sub directory MagicMirror/modules and did a git clone git clone https://github.com/DeanoNoire/MMM-DumpsterDay.git

                            That created a directory named MMM-DumpsterDay with the files below that directory.

                            Then I added the code you posted to my MagicMirror/config/config.js file exactly as you posted. I found that there was a missing }, at the end of the code.

                            I modified the config.js to reflect today as trashday and launched Magic Mirror . Nothing was displayed onscreen.

                            Shoundlnt the config.js code for module be MMM-DumpsterDay
                            ?

                            1 Reply Last reply Reply Quote 0
                            • B Offline
                              BD0G
                              last edited by

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • B Offline
                                BD0G
                                last edited by

                                Here is my current config.js after renaming the module portion to MMM-DumpsterDay

                                {
                                	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.10.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: "16.01.2019", 
                                		plasticDateDiff_1: 28,
                                		plasticNotifyDayBefore: true,	
                                
                                		enableLandscape: true,			// Same values as basic but for Landscape
                                		landscapeStartDate: "11.10.2019",
                                		landscapeDateDiff_1: 14,		
                                		landscapeNotifyDayBefore: true,
                                		}		
                                		},
                                		
                                		{
                                			module: "alert",
                                		},
                                		{
                                			module: "updatenotification",
                                			position: "top_bar"
                                		},
                                		{
                                			module: "clock",
                                			position: "top_left"
                                		},
                                
                                D 1 Reply Last reply Reply Quote 0
                                • D Offline
                                  DeanoNoire @BD0G
                                  last edited by

                                  @BD0G this seems right :)
                                  Thanks for the tips! I will change the installation process :) I’m still new, this is my first real programming project, so this colaboration process is new to me.

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    BD0G
                                    last edited by

                                    Well I am kinda forced to collaborate if I want to use this awesome module . Right? :) LOL

                                    My config.js does not work so I want to get it going so we can all use this module!

                                    D 2 Replies Last reply Reply Quote 0
                                    • D Offline
                                      DeanoNoire @BD0G
                                      last edited by

                                      @BD0G i will give it a try with your config and check what’s wrong and let you know.

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        DeanoNoire @BD0G
                                        last edited by

                                        @BD0G Hey there, I changed the file names of the modules and the paths, so it can be used the way you described - via clone.
                                        Can pull the current version and give it a try? Also change the date accordingly :) I believe we’re getting there! :D

                                        Have a good one.

                                        B 1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          BD0G @DeanoNoire
                                          last edited by

                                          @DeanoNoire
                                          I deleted the sub-directory that was created under MagicMirror/modules named mmm-dumpsterday . All lowercase.

                                          I then used the command git clone https://github.com/DeanoNoire/MMM-DumpsterDay.git.

                                          This created the correct the directory named MMM-DumpsterDay . Capital letters in proper places.

                                          Then I modified my config.js under the MagicMirror/config directory to reflect today as being trash day . Turned off Recycle by using the false specifier. Turned on Landscape by using the specifier true. Set the Landscape date to todays date as well.

                                          Restarted the MagicMirror and I do see a pulsing white trash can ,BUT no can for Landscape. ???

                                          The trash can is displayed within the bottom_bar area of the screen and the trash can is quiet large onscreen. I am assuming that I can modify the MagicMirror/modules/MMM-DumpsterDay/MMM-DumpsterDay.css file to change the size to better fit the screen?

                                          Here is my current config.js file to troubleshoot the absence of the Landscape can. on screen

                                          	{
                                          	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: "16.01.2019", 
                                          		plasticDateDiff_1: 28,
                                          		plasticNotifyDayBefore: true,	
                                          
                                          		enableLandscape: true,			// Same values as basic but for Landscape
                                          		landscapeStartDate: "11.11.2019",
                                          		landscapeDateDiff_1: 14,		
                                          		landscapeNotifyDayBefore: true,
                                          		}		
                                          		},
                                          		
                                          		{
                                          			module: "alert",
                                          		},
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            BD0G
                                            last edited by

                                            Also, I dont know how much additional code would be needed to display the words
                                            Tomorrow is Trash Day
                                            for the day preceding what one sets for Trash Day and then the words Today is Trash Day
                                            for the day in which is actually trash day. This would be in small text (alterable within the .css file) below the trash can icons. That way one would know at a glance.

                                            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
                                            • 5
                                            • 2 / 5
                                            • 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