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-suncalc - Text only display of sunrise, sunset and other sun events

    Scheduled Pinned Locked Moved Utilities
    29 Posts 8 Posters 15.4k Views 8 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.
    • LordyL Offline
      Lordy
      last edited by

      Hello,

      can sunrise and sunset be colored, if so, can you please tell me the line (command) for css?

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        retroflex Project Sponsor Module Developer @Lordy
        last edited by

        @Lordy There are no css names to distinguish sunrise and sunset. But you can add html directly to the config instead. See my previous answer to this thread for an example. So something like:

        text: 'Sunrise < span style="color: #ffff00" >< sunrise >< /span >
        

        Remove the extra spaces next to the brackets. Had to include them or otherwise the forum would show nothing.

        LordyL 1 Reply Last reply Reply Quote 1
        • LordyL Offline
          Lordy @retroflex
          last edited by

          @retroflex
          Where exactly? Here my config:

          text: ‘

          ’+‘’+‘’+‘
          ☀Sonnenaufgang: -
          ☾Sonnenuntergang: -
          ’

          LordyL 1 Reply Last reply Reply Quote 0
          • LordyL Offline
            Lordy @Lordy
            last edited by Lordy

            Sunrise.JPG

            1 Reply Last reply Reply Quote 0
            • R Offline
              retroflex Project Sponsor Module Developer
              last edited by

              @Lordy Aha. Then change one of the < td > to < td style=“color: #ffff00” >

              LordyL 1 Reply Last reply Reply Quote 1
              • LordyL Offline
                Lordy @retroflex
                last edited by

                @retroflex
                Thank U,that’s it. :thumbs_up_light_skin_tone:

                LordyL 1 Reply Last reply Reply Quote 0
                • LordyL Offline
                  Lordy @Lordy
                  last edited by Lordy

                  Corona Screen.JPG

                  R 1 Reply Last reply Reply Quote 1
                  • R Offline
                    retroflex Project Sponsor Module Developer @Lordy
                    last edited by

                    @Lordy Great that it worked out! I like the idea, I’ll colorize mine too now.

                    LordyL 1 Reply Last reply Reply Quote 0
                    • LordyL Offline
                      Lordy @retroflex
                      last edited by

                      @retroflex said in mmm-suncalc - Text only display of sunrise, sunset and other sun events:

                      Great that it worked out! I like the idea, I’ll colorize mine too now.

                      Enjoying working and i would like to see the results.:grinning_face_with_smiling_eyes:

                      R 1 Reply Last reply Reply Quote 0
                      • R Offline
                        retroflex Project Sponsor Module Developer @Lordy
                        last edited by

                        @Lordy b1274dcb-e80a-4904-adff-23b8f41dfdb6-image.png

                        LordyL 2 Replies Last reply Reply Quote 0
                        • LordyL Offline
                          Lordy @retroflex
                          last edited by

                          @retroflex
                          Nice:thumbs_up_light_skin_tone: That’s exactly how I put forward it.

                          1 Reply Last reply Reply Quote 0
                          • LordyL Offline
                            Lordy @retroflex
                            last edited by Lordy

                            @retroflex
                            I hope you can help me again?
                            I try to change the font size, but I can’t get any further. Can you please tell me my mistake?
                            At the moment the module is going under compared to the other modules.
                            My css entry:

                            .mmm-suncalc text {font-size: 30px}
                            
                            R S 2 Replies Last reply Reply Quote 0
                            • R Offline
                              retroflex Project Sponsor Module Developer @Lordy
                              last edited by

                              @Lordy Where does “text” come from? Try:

                              .mmm-suncalc {
                                font-size: 30px
                              }
                              
                              LordyL 1 Reply Last reply Reply Quote 0
                              • LordyL Offline
                                Lordy @retroflex
                                last edited by Lordy

                                @retroflex said in mmm-suncalc - Text only display of sunrise, sunset and other sun events:

                                .mmm-suncalc {
                                font-size: 30px
                                }

                                I had tried that too. Unfortunately without success. “Text” appears in the config.
                                Do you have another suggestion?

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  retroflex Project Sponsor Module Developer @Lordy
                                  last edited by

                                  @Lordy Maybe this:

                                  .mmm-suncalc table {
                                    font-size: 30px
                                  }
                                  

                                  Tip: You can use developer tools in the browser to check elements and change styles.

                                  1 Reply Last reply Reply Quote 1
                                  • S Do not disturb
                                    sdetweil @Lordy
                                    last edited by

                                    @Lordy said in mmm-suncalc - Text only display of sunrise, sunset and other sun events:
                                    how about

                                    .mmm-suncalc .text {font-size: 30px}
                                    

                                    notice the . in front of text (required to target prior element classes or element names)

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • LordyL Offline
                                      Lordy
                                      last edited by

                                      @sdetweil said in mmm-suncalc - Text only display of sunrise, sunset and other sun events:

                                      notice the . in front of text (required to target prior element classes or element names)

                                      I had tried that too. Unfortunately without success.

                                      Maybe this:
                                      
                                      .mmm-suncalc table {
                                        font-size: 30px
                                      }
                                      
                                      

                                      That was it to change the font size.

                                      I thank both of you for help. Thank U “sdetweil” and “retroflex”.:thumbs_up_light_skin_tone:

                                      In addition, I have to get used to the fact that I can also work with browsers. Not only with “Putty” and “WinSCP”.

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