Tide app

Hello!

I already search for “tide” apps here and github, but i think there’s no one that can work and convert do garmin app, if i’m wrong, tell me.

I red about tide prediciton and is not so easy as it seems, there’s a lot variables… sun, moon… etc..

my question is:

(we have access to tide prediction table for a long year, but I only need for one week, or at least one day)

Is possible to create a app that I insert the high tide and low high by hand for one weak?? Or i need a database??

why i need tide prediciton?? I do windsurf and my local place is only “windsurfable” 3hours before and 3 hours after the high tide, and while i’m windsurfing i need to know the water level because I need almost 1meter of water.

Thanks!!

  • hello.

    how can i fill the clock numbers progressible??

    i saw the function "fillRoundedRectangle" and "fillRounded", but it will hide my numbers...

    example;

    apps.garmin.com/.../2fcce126-f5cc-4b3f-bd7e-36047612288c

    thanks!!

  • for now, everything is ok, but i only can "fill up" from up to down, when i increse the "water level" var alturaAgua = 30; i can put 40 or more, and is filling from top to the bottom, but i need to do the reverse, fill the "water" from bottom to the top.
    i already try to give negative number but not work.
    thanks!!
    var larguraRelogio = dc.getWidth();
    var alturaRelogio = dc.getHeight();
    var centroLarguraRelogio = larguraRelogio / 2;
    var centroAlturaRelogio = alturaRelogio / 2;
    var larguraAgua = 190;
    var alturaAgua = 30;


    //draw filled rectangle to represent text's color
    dc.setColor(Graphics.COLOR_WHITE, Graphics.COLOR_WHITE);
    dc.fillRectangle((centroLarguraRelogio-95), (centroAlturaRelogio-10), 190, 50);

    //draw filled rectangle to represent water level
    dc.setColor(Graphics.COLOR_BLUE, Graphics.COLOR_BLUE);
    dc.fillRectangle(
                    (centroLarguraRelogio-(larguraAgua/2)), //coordenadas largura
                    (centroAlturaRelogio-30), //coordenadas altura
                    larguraAgua,
                    alturaAgua);

    //posicaoemx,posicaoemY largura_bloco, altura_bloco

    var clockTime = System.getClockTime();
    var timeString = Lang.format("$1$:$2$", [clockTime.hour, clockTime.min.format("%02d")]);
           

    //create and draw the clipping mask
    dc.setColor(Graphics.COLOR_TRANSPARENT, Graphics.COLOR_BLACK);

    //escrever as horas no centro do ecrã
      dc.drawText(
            centroLarguraRelogio,
            (centroAlturaRelogio-55),
            Graphics.FONT_NUMBER_THAI_HOT,
            timeString,
            Graphics.TEXT_JUSTIFY_CENTER
                    );
  • The Tide Time watchface displays the tide level for the next 16 hours:  apps.garmin.com/.../6709ed63-a52e-44d3-b369-cb8dd6c3c46e