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-SimpleTides - (Replaced by MMM-SORT)

    Scheduled Pinned Locked Moved Education
    6 Posts 2 Posters 3.3k Views 2 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer
      last edited by Mykle1

      Description:

      • A simple tide module that rotates through 7 days of tides.

      • Based on your latitude and longitude.

      • Extremely small footprint won’t crowd your mirror.

      Examples:

      Annotated .css file included for position, sizing, and coloring. Default is white.

      • One colored with header, one plain white with no header.

      0_1507333611590_1.jpg 0_1507333684701_2.JPG

      • Display only the info that you want to see, line by line.

      0_1507333723825_4.JPG 0_1507333736807_5.JPG

      Download:

      [card:mykle1/MMM-SimpleTides]

      Version 1.0.0

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 1
      • Mykle1M Offline
        Mykle1 Project Sponsor Module Developer
        last edited by

        Thanks to @yawns for the green light! :^)

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by Mykle1

          Ok, so I went a bit mental. ;^)

          I couldn’t decide if I wanted the tides rotating or static and my pitiful programming skills don’t include making a module that does both. So, I made MMM-StaticTIdes. It’s basically a rewrite of MMM-SimpleTides with some formatting changes and less info to keep screen real estate to a minimum. However, a quick glance gives you the next 8 tides, whereas MMM-SimpleTides gives a full week of tides and other information in rotation.

          0_1507423807703_1.JPG 0_1507423827574_2.JPG

          Create a working config
          How to add modules

          yawnsY 1 Reply Last reply Reply Quote 0
          • yawnsY Offline
            yawns Moderator @Mykle1
            last edited by

            @Mykle1 said in MMM-SimpleTides:

            my pitiful programming skills don’t include making a module that does both

            Simplest way would be this:
            Add a config attribute

            {
            	disabled: false,
            	module: "MMM-SimpleTides",
            	position: "top_left",
            	config: {
            ...
            		outputLayout: "simple"
            	}
            },
            

            and in getDom: function() { after preparing/modifying your data you add a simple if/else clause.

            if (this.config.outputLayout == "simple") {
            // print the data as in SimpleTides
            } else {
            // print the data as in StaticTides
            }
            
            Mykle1M 2 Replies Last reply Reply Quote 1
            • Mykle1M Offline
              Mykle1 Project Sponsor Module Developer @yawns
              last edited by

              @yawns said in MMM-SimpleTides:

              Simplest way would be this:

              Oh snap! Of course! Thanks yawns!

              I will give that a shot today. :^)

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 1
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @yawns
                last edited by Mykle1

                @yawns said in MMM-SimpleTides:

                and in getDom: function() { after preparing/modifying your data you add a simple if/else clause.

                I gave it the old college try, and I almost got there on my own. Two simple mistakes fixed and a Carousel() addition all made by @cowboysdude got me up and running. Thanks bro!

                MMM-SORT

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 2

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