MMM-WorldTides - show high and low water for your region


  • Moderator

    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:


    Version 1.0.0

    • initial release


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


  • Moderator

    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.


  • Moderator

    @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")),


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



  • @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
    	}
    },
    


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

    Now to change those icons


  • Moderator

    @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



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


  • Moderator

    @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 🙂