• 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-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.
  • Y Offline
    yawns Moderator
    last edited by yawns Jan 17, 2017, 9:38 AM Sep 19, 2016, 6:49 PM

    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 Sep 26, 2016, 7:59 PM

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

      Y 1 Reply Last reply Sep 29, 2016, 5:07 AM Reply Quote 0
      • Y Offline
        yawns Moderator
        last edited by Sep 26, 2016, 8:15 PM

        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
        • Y Offline
          yawns Moderator @onetwankyfive
          last edited by Sep 29, 2016, 5:07 AM

          @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 Oct 29, 2016, 8:59 AM

            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?
            }

            B 1 Reply Last reply Oct 29, 2016, 1:45 PM Reply Quote 0
            • B Offline
              bhepler Module Developer @Guest
              last edited by Oct 29, 2016, 1:45 PM

              @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 Oct 29, 2016, 1:55 PM Reply Quote 0
              • ? Offline
                A Former User @bhepler
                last edited by A Former User Oct 29, 2016, 1:55 PM Oct 29, 2016, 1:55 PM

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

                Now to change those icons

                Y 1 Reply Last reply Oct 30, 2016, 9:35 AM Reply Quote 0
                • Y Offline
                  yawns Moderator @Guest
                  last edited by Oct 30, 2016, 9:35 AM

                  @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 Oct 30, 2016, 10:06 AM

                    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)?

                    Y 1 Reply Last reply Oct 30, 2016, 10:36 AM Reply Quote 0
                    • Y Offline
                      yawns Moderator @Guest
                      last edited by Oct 30, 2016, 10:36 AM

                      @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