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-WorldTides - show high and low water for your region

    Scheduled Pinned Locked Moved Utilities
    12 Posts 5 Posters 8.1k Views 5 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.
    • yawnsY Offline
      yawns Moderator
      last edited by yawns

      Description:

      Since I was born in the north of Germany (Bremerhaven) and enjoy mudflat tours I wanted to generate a module showing high and low water. I tested it with some locations in Germany. This module derives predictions from worldtides.info for a given tide station

      Screenshots:

      0_1474309158747_MMM-WorldTides-Screenshot.PNG

      Download:

      [card:yawnsde/MMM-WorldTides]


      Version 1.0.0

      • initial release
      1 Reply Last reply Reply Quote 3
      • O Offline
        onetwankyfive
        last edited by

        Is there a way to make it 12 hour instead of 24 hour time?

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

          There should be. I use the time format which is set in config.js but I did not check. I simply forgot about that. I will check tomorrow evening and let you know what to do.

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

            @onetwankyfive said in MMM-WorldTides - show high and low water for your region:

            Is there a way to make it 12 hour instead of 24 hour time?

            Hi, sorry it took a bit longer than expected to find some time. It actually used 12 hour format, I just forgot the “am/pm” extension.

            So I replaced this:

            time: ((this.config.timeFormat === 24) ? moment(t.dt, "X").format("HH:mm") : moment(t.dt, "X").format("hh:mm")), 
            

            with this:

            time: ((this.config.timeFormat === 24) ? moment(t.dt, "X").format("HH:mm") : moment(t.dt, "X").format("hh:mm a")),
            
            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by

              Hmm… like the sound of the mod as live on the water, and would be handy, but git cloned repository and installed, added to config

                  {
              		module: 'MMM-WorldTides',
              		position: 'top_right',
              		config: {
              		longitude: '8.134', //longitude and latitude need to be written with . instead of ,
              		latitude: '98.299',
              		appid: 'APIKEY' //appid needs to be requested from worldtides.info
              },
              

              And well getting the MM error … Any thoughts?
              }

              bheplerB 1 Reply Last reply Reply Quote 0
              • bheplerB Offline
                bhepler Module Developer @Guest
                last edited by

                @wjdw87 Just based on what you quoted, you have not properly closed your config section. You’re missing a close bracket just after the API KEY value.

                {
                	module: 'MMM-WorldTides',
                	position: 'top_right',
                	config: {
                	longitude: '8.134', //longitude and latitude need to be written with . instead of ,
                	latitude: '98.299',
                	appid: 'APIKEY' //appid needs to be requested from worldtides.info
                	}
                },
                
                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @bhepler
                  last edited by A Former User

                  @bhepler Oops my bad, many thanks for spotting that @bhepler

                  Now to change those icons

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

                    @wjdw87
                    Hi,
                    I moved the symbols to config section and updated the module on github
                    Just do a git pull in the MMM-WorldTides directory and afterwards you can define own css symbols (existing in weathericons or fontawesome) in your magic mirror config.js file

                    read.me was also updated to explain the change

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by

                      Many thanks, though i did update manually in the scripts yesterday, will look at options and update accordingly if the icons are more in line that are on offer, great mod.

                      BTW any plans to go more indepth with the feeds (tidal range, depth etc)?

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

                        @wjdw87
                        Currently not, although the API provides this information. Maybe I could add a switch to enable more information. It’s just a matter of space available on screen … and free time of course :-)

                        1 Reply Last reply Reply Quote 0
                        • 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
                          OSZAR »