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

Scheduled Pinned Locked Moved Utilities
83 Posts 11 Posters 37.2k 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.
  • B Offline
    blackeaglece @DeanoNoire
    last edited by blackeaglece Apr 16, 2021, 8:52 AM Apr 16, 2021, 8:16 AM

    @deanonoire said in MMM-DumpsterDay:

    @blackeaglece I’m quite certain you have to create functions and instances for every landscape reccuring date. Act like second and third landscape instances are different kind of trash with the same image.

    Hi, but it doesn’t display me landscape but glass or organic. I created a new instance called landscape1 but it still shows me all the images . This is the code of config.js. How can I do?

    {	
    	module:"MMM-DumpsterDay",
    	position:"top_left",
    	header: "Raccola Differenziata",
      
    	config: {
    		refreshInterval: 18000000, // Default: 18000000 = 5 hours
    		pulse: false, 			   // Default: true - Makes the module pulsating
    
    	enableBasic: true, 				// Abilita indifferenziata trashcan 
    		basicStartDate: "09.04.2021", 		// 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
    	enablePaper: true,			// Abilita bidoncino carta bianco
    		paperStartDate: "06.04.2021",
    		paperDateDiff_1: 7,
    		paperNotifyDayBefore: true,
    	enablePlastic: true,			// Same values as basic but for Plastic
    		plasticStartDate: "13.04.2021", 
    		plasticDateDiff_1: 7,
    		plasticNotifyDayBefore: true,
    	enableVetro: true,			// Same values as basic but for Plastic
    		vetroStartDate: "08.04.2021", 
    		vetroDateDiff_1: 7,
    		vetroNotifyDayBefore: true,
    	enableLandscape: true,			// Abilita bidoncino umido
    		landscapeStartDate: "04.04.2021",
    		landscapeDateDiff_1: 7,		
    		landscapeNotifyDayBefore: true,
    	enableLandscape1: true,			// Abilita bidoncino umido
    		landscape1StartDate: "06.04.2021",
    		landscape1DateDiff_1: 7,		
    		landscape1NotifyDayBefore: true,
    }
    },
    
    

    and this is how it is displayed

    garbage.jpg

    D 1 Reply Last reply Apr 16, 2021, 9:08 AM Reply Quote 0
    • D Offline
      DeanoNoire @blackeaglece
      last edited by Apr 16, 2021, 9:08 AM

      @blackeaglece I see. What is in the log? There should be evaluations if its trashday or not.
      Also can you inspect the elements if .non_today class is present on the divs? If yes, check if the css file is loaded properly, as it should be hiding the images when it’s not dumpster day.

      https://github.com/DeanoNoire/MMM-DumpsterDay/blob/master/MMM-DumpsterDay.css

      B 1 Reply Last reply Apr 16, 2021, 4:14 PM Reply Quote 0
      • B Offline
        blackeaglece @DeanoNoire
        last edited by Apr 16, 2021, 4:14 PM

        @deanonoire Ok now it’s all ok i was wrong, some lines of css code had disappeared
        Thank you very much

        D 1 Reply Last reply Apr 17, 2021, 8:09 AM Reply Quote 0
        • D Offline
          DeanoNoire @blackeaglece
          last edited by Apr 17, 2021, 8:09 AM

          @blackeaglece Glad I could help ;) stay safe ;)

          B 1 Reply Last reply Apr 18, 2021, 9:07 AM Reply Quote 0
          • B Offline
            blackeaglece @DeanoNoire
            last edited by Apr 18, 2021, 9:07 AM

            @deanonoire said in MMM-DumpsterDay:

            @blackeaglece Glad I could help ;) stay safe ;)

            Thank you :ok_hand:

            1 Reply Last reply Reply Quote 0
            • B Offline
              blackeaglece @DeanoNoire
              last edited by Apr 19, 2021, 5:02 PM

              @deanonoire How do I create instances and functions? Also, to make them work, do I have to create different images even if they serve the same thing? e.g. landscape.png landscape-1.png and landscape-2.png, with relative css code?
              thank you very much

              1 Reply Last reply Reply Quote 0
              • D Offline
                Dinschal
                last edited by Nov 9, 2021, 2:51 PM

                Hi Deanonoire,

                is it possible to show the can only the day before collecting? In Germany we put our trash cans outside the day before. So the notification on the collection day is not nessesary?

                Greetings

                D 1 Reply Last reply Nov 15, 2021, 1:55 PM Reply Quote 0
                • D Offline
                  DeanoNoire @Dinschal
                  last edited by Nov 15, 2021, 1:55 PM

                  @dinschal Hey there, it’s not possible to set it via config right now, but it’s quite easy to modify it in the MMM-DumpsterDay.js file:

                  Find folloing code (about row 167)

                  // Trashday today
                  if (difference%datediff_1 == 0) {
                  result = 1
                  Log.info(“It’s trashday !!”);
                  }

                  and change the value of result to 0.
                  So it’s:

                  // Trashday today
                  if (difference%datediff_1 == 0) {
                  result = 0
                  Log.info(“It’s trashday !!”);
                  }

                  Please let me know if this solution worked as desired.
                  Have a good one; Greetings from Czechia.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BD0G
                    last edited by BD0G Oct 26, 2022, 1:34 AM Oct 26, 2022, 1:32 AM

                    I have been working on scaling the use of this great module. I thought about what other reoccurring things that I might need notification of. It came to mind that my front loading Washing Machine indicates that I need to clean the pump screen every 30 days! I also like to do a “tub clean” at about the same interval.
                    The washer has a setting that is named “tub clean” where one adds a bit of bleach or other detergent made for cleaning the inside of the stainless tub to make sure that there is not any bacteria and gunk that builds up.

                    In that vein I created a custom icon that can be used for notification. I wanted to share it with the community in case anyone else wanted to be notified as well.

                    Since I dont use the Recycle Can I just substituted this icon for the Recycle Can and set the reoccurring notification to be every 30 days!! Click the link and then Right Click - Save Image As
                    TubClean.png

                    D 1 Reply Last reply Oct 30, 2022, 6:19 AM Reply Quote 1
                    • D Offline
                      DeanoNoire @BD0G
                      last edited by Oct 30, 2022, 6:19 AM

                      @BD0G awesome mate! So glad the module is used :)

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