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.

    birthdaylist

    Scheduled Pinned Locked Moved Solved Requests
    module
    41 Posts 3 Posters 35.0k Views 3 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.
    • M Offline
      MyMirror @sdetweil
      last edited by

      @sdetweil

      Sure …

              {
                      module: "birthdaylist",
                      position:'top_left',
                      header:"Geburtstage",
                      config: {
                      language: "de",
                      dimmEntries: false,             // true: dims entries and the associated
                                                      //       symbol when the date has expired.
                                                      // false: dont display entries and the associated
                                                      //        symbol when the date has expired.
                      initialLoadDelay: 10,           // How many seconds to wait on a fresh start up.
                                                      // This is to prevent collision with all other modules also
                                                      // loading all at the same time. This only happens once,
                                                      // when the mirror first starts up.
                      updateDelay: 5,                 // How many seconds after midnight before a refresh
                                                      // This is to prevent collision with other
                                                      // modules refreshing at the same time.
                      currentMonthOnly: false,        // will show birthdays for the current month only if true
                      maxEntries: 10,                 // maximum entries to show, default is all
                      dateFormat: '',                 // date format for birthday (default is none), could be 'Do' for 'Sep 12th'
                      ageFormat:'',                   // some format string for the persons age, '[ n ]'  n will be replace by age value
                      debug:false
                      }
              },
      
      10 maxEntries just for the test, if this works, i would go to 4.
      On my screen I get this:
      ![screenshot](https://my.hidrive.com/lnk/CBHojVsL)
      So ... only 3 entries and i took your example
      
      BR
      Jens
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @MyMirror
        last edited by

        @MyMirror you have to use the 3rd icon from the right above the editor to include images

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          MyMirror @sdetweil
          last edited by MyMirror

          @sdetweil
          Sorry :flushed_face:Birthday_screenshot_2.jpg

          S 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @MyMirror
            last edited by

            @MyMirror

            I see 4 entries, u have dimmEntries: false, so the bd on the dec 19th doesn’t show…

            did u change the csv?

            Screenshot at 2023-12-29 12-38-21.png

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            M 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @MyMirror
              last edited by sdetweil

              @MyMirror I added Suzie to the new bdl.csv but it was part of the git pull …

              birth, name
              15/01/1987,suzie
              12/05/1951, Sam
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                MyMirror @sdetweil
                last edited by

                @sdetweil
                No, i took your example after getting no output of mine.
                So the only changes are in the config regarding the currentMonthOnly and the max Entries.
                Hmmm :confused_face:

                S 2 Replies Last reply Reply Quote 1
                • S Offline
                  sdetweil @MyMirror
                  last edited by

                  @MyMirror can u edit the birthdaylist/data/bdl.csv

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @MyMirror
                    last edited by

                    @MyMirror the sample file is in

                    DD/MM/YYYY format

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      MyMirror @sdetweil
                      last edited by

                      @sdetweil

                      Yes, of course.
                      What should i try?
                      Add this:
                      15/01/1987,suzie
                      12/05/1951, Sam

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @MyMirror
                        last edited by

                        @MyMirror that second line shouldbe there already, do this

                        cd ~/MagicMirror/modules/birthdaylist
                        git checkout data/bdl.csv
                        

                        then look at the file again

                        it should start like mine
                        suzie on the second line

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          MyMirror @sdetweil
                          last edited by

                          @sdetweil

                          my bdl.csv:
                          bdl_data.png

                          my output:
                          Birthday_screenshot_3.jpg

                          4 lines

                          M S 3 Replies Last reply Reply Quote 0
                          • M Offline
                            MyMirror @MyMirror
                            last edited by

                            @sdetweil

                            is a blank needed before “Suzie”?

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              sdetweil @MyMirror
                              last edited by sdetweil

                              @MyMirror correct

                              the bd on Dec 19th is in the past, and u have

                              dimmEntries: false

                              so, past BD’s are not dispplayed

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                sdetweil @MyMirror
                                last edited by

                                @MyMirror said in birthdaylist:

                                is a blank needed before “Suzie”?

                                no, I trim off blanks… allow for sloppy editing/pasting

                                all entries have to have the same date format

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sdetweil @MyMirror
                                  last edited by

                                  @MyMirror the csv file format is

                                  the header row,

                                  birth  ,  name
                                  

                                  and then
                                  rows for each person

                                  birthday , name
                                  

                                  the birthday format can be in whatever format you like
                                  MM/DD/YYYY
                                  DD/MM/YYYY
                                  YYYY/DD/MM
                                  YYYY/MM/DD

                                  using whatever separator you choose

                                  the layout and separator have to be the same for all birthday rows

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  M 1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    MyMirror @sdetweil
                                    last edited by MyMirror

                                    @sdetweil
                                    OK, my mistake :worried_face:
                                    I misinterpreted currentMonthOnly: and assumed that all maxEntries would then be displayed (for more than 2 month).
                                    But with “false”, the current and the following month are displayed.
                                    Sorry for the trouble :flushed_face:
                                    (There was no entrie for January in my data file)

                                    S 2 Replies Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @MyMirror
                                      last edited by

                                      @MyMirror yes, I already had support for next month dec=>jan
                                      just sort was broken.

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @MyMirror
                                        last edited by

                                        @MyMirror I just pushed a change to display a message
                                        when no birthdays are found to display given the current settings

                                        I also added support to translate that message into the language set in the MM config…

                                        I provided files for english, french, german, italian and spanish

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @sdetweil

                                          One more request/question:
                                          Could you add the month as a picture?
                                          If you set this option “currentMonthOnly: false” (which I find very good), then a month without an entry can lead to misunderstandings.

                                          Example:
                                          We have January and no entry for January in the bdl.csv.
                                          But on February 10.
                                          This would look like the next birthday is now on January 10, right?
                                          In this respect, is it possible to display the month as well?

                                          Jens

                                          S 2 Replies Last reply Reply Quote 0
                                          • S Offline
                                            sdetweil @MyMirror
                                            last edited by

                                            @MyMirror currently the module is designed only to display the day. IN THE CURENT MONTH.
                                            let me think about this

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            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
                                            • 1 / 3
                                            • 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