Announcement

Collapse
No announcement yet.

World Tides

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    World Tides

    Discussion thread for World Tides
    Package is located here: http://board.homeseer.com/showthread.php?t=158143

    Enjoy.
    Real courage is not securing your Wi-Fi network.

    #2
    Hi Wadenut,
    Thanks for developing this. I just installed and got this error in my log:

    <TABLE border=0 cellSpacing=2 cellPadding=0 width="100%"><TBODY><TR><TD class=LOGDateTime0 noWrap align=left>2/2/2013 8:32:14 AM </TD><TD class=LOGType0 colSpan=3 align=left>Tides </TD><TD class=LOGEntry0 colSpan=8 align=left>Next Tide Data: </TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2/2/2013 8:32:14 AM </TD><TD class=LOGType1 colSpan=3 align=left>Tides </TD><TD class=LOGEntry1 colSpan=8 align=left>Last Tide Data: </TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2/2/2013 8:32:14 AM </TD><TD class=LOGType0 colSpan=3 align=left>Tides </TD><TD class=LOGEntry0 colSpan=8 align=left>String was not recognized as a valid DateTime.</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2/2/2013 8:32:14 AM </TD><TD class=LOGType1 colSpan=3 align=left>Tides </TD><TD class=LOGEntry1 colSpan=8 align=left>Data Error</TD></TR><TR><TD class=LOGDateTime0 noWrap align=left>2/2/2013 8:32:14 AM </TD><TD class=LOGType0 colSpan=3 align=left>Event </TD><TD class=LOGEntry0 colSpan=8 align=left>Running script in background: WorldTides.vben</TD></TR><TR><TD class=LOGDateTime1 noWrap align=left>2/2/2013 8:32:14 AM </TD><TD class=LOGType1 colSpan=3 align=left>Event </TD><TD class=LOGEntry1 colSpan=8 align=left>Event Trigger "Get Tides Script"</TD></TR></TBODY></TABLE>


    and here is a copy of the config file:

    [Config]
    Site =http://tbone.biol.sc.edu/tide/tideshow.cgi?site=Cotuit+Bay+entrance+%28Bluff+Point%29%2C+M assachusetts+Current&type=mobile
    ShowNum = 6
    Device= V18
    Graphic = True
    [Data]
    LDL =2/2/2013 8:29:32 AM

    Any ideas what I should do differently?
    Could it be the parentheses in the name?
    Last edited by jono; February 2, 2013, 08:48 AM.

    Comment


      #3
      OK.
      The first thing that I notice when I check this site:
      [url]http://tbone.biol.sc.edu/tide/tideshow.cgi?site=Cotuit+Bay+entrance+%28Bluff+Point%29%2C+M assachusetts+Current&type=mobile

      is that there's a space in "M assachusetts"

      Try removing the space

      The second thing I see is that your location does not describe tides, but instead Currents (which I find odd, as that location ought to be tidal). The script won't handle this at the moment. I'll look at doing something about it, but the data might look a bit different.

      I'll need to trap that type of error as well.

      This might also occur if you attempt to use the script for the first time before there has been at least one low or high tide during the day. This is because the script needs to look at the previous tide AND the next tide in order to calculate the current level.
      I did include a caution to this effect in the documentation.

      I will add a trap to log this as a warning with an explanation.
      Last edited by Wadenut; February 2, 2013, 11:43 AM.
      Real courage is not securing your Wi-Fi network.

      Comment


        #4
        I saw that space too in Massachusetts, so I did go back and check the file and advanced through space by space. There isn't a space in my .ini file, even though it showed up that way in cut and paste, for some reason.

        I decided to try another close by location to address the "currents" issue:
        http://tbone.biol.sc.edu/tide/tidesh...=f&type=mobile

        I'm still getting the same errors and nothing in the data file.

        <TABLE style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT-FAMILY: Verdana, Arial, sans-serif; ORPHANS: 2; WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" border=0 cellSpacing=2 cellPadding=0 width="100%"><TBODY><TR><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGDateTime1 noWrap align=left>2/2/2013 12:43:46 PM </TD><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGType1 colSpan=3 align=left>Tides </TD><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGEntry1 colSpan=8 align=left>Next Tide Data:</TD></TR><TR><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGDateTime0 noWrap align=left>2/2/2013 12:43:46 PM </TD><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGType0 colSpan=3 align=left>Tides </TD><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGEntry0 colSpan=8 align=left>Last Tide Data:</TD></TR><TR><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGDateTime1 noWrap align=left>2/2/2013 12:43:46 PM </TD><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGType1 colSpan=3 align=left>Tides </TD><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGEntry1 colSpan=8 align=left>String was not recognized as a valid DateTime.</TD></TR><TR><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGDateTime0 noWrap align=left>2/2/2013 12:43:46 PM </TD><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGType0 colSpan=3 align=left>Tides </TD><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGEntry0 colSpan=8 align=left>Data Error</TD></TR><TR><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGDateTime1 noWrap align=left>2/2/2013 12:43:46 PM </TD><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGType1 colSpan=3 align=left>Event </TD><TD style="BACKGROUND-COLOR: rgb(223,223,223); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGEntry1 colSpan=8 align=left>Running script in background: WorldTides.vben</TD></TR><TR><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGDateTime0 noWrap align=left>2/2/2013 12:43:46 PM </TD><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGType0 colSpan=3 align=left>Event </TD><TD style="BACKGROUND-COLOR: rgb(239,239,239); PADDING-LEFT: 3px; PADDING-RIGHT: 3px; FONT-FAMILY: Verdana, Tahoma, Arial, Helvetica, sans-serif; FONT-SIZE: 8pt" class=LOGEntry0 colSpan=8 align=left>Event Trigger "Get Tides Script"</TD></TR></TBODY></TABLE>

        I did see your message about having to wait for a tide. But by 1pm I should have already seen a high and low tide today.
        Please let me know what I might be able to test. I'm really excited to get this working. Thanks.
        Jono

        Comment


          #5
          I'm dealing with the "Currents" issue right now. I just need to make sure my current formula will work there. I see no reason the flow rate shouldn't be sinusoidal as well.

          That second site should work regardless.
          The reason you still have no data is that the script thinks you've already downloaded the data today. It will only download once per day.
          In the INI, blank out the date under [DATA], key LDL=, or just change it to yesterdays date.
          I'll check this second location once I've determined the first issue is solved.
          Real courage is not securing your Wi-Fi network.

          Comment


            #6
            I changed the date to yesterday. Now getting a different error:

            2/2/2013 1:29:51 PM - Error - Scripting runtime error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: String was not recognized as a valid DateTime. at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style) at System.DateTime.ParseExact(String s, String format, IFormatProvider provider) at scriptcode5.scriptcode5.Daily(Object Parm) at scriptcode5.scriptcode5.Main(Object Parm) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)

            So then I just eliminated the date and I go back to the original error:
            String was not recognized as a valid DateTime.

            Here is my config file:
            [Config]
            Site = http://tbone.biol.sc.edu/tide/tidesh...=f&type=mobile
            ShowNum = 4
            Device= V18
            Graphic = True
            [Data]
            LDL =
            Units=

            Still nothing in the data file

            Comment


              #7
              Can't do anything else until the flow thing is solved. May be tomorrow.
              Real courage is not securing your Wi-Fi network.

              Comment


                #8
                Ok thanks. For what it is worth, I don't need to use the currents site, the nearby tide site is fine. Not sure what you mean by the flow issue.

                Comment


                  #9
                  Flood/Ebb = Flow.

                  Too late, I'm already nearly done, and I'm sure someone will eventually need it. Just need to watch it tonight to be sure the math is accurate.

                  Meantime, if you're used to 2.6 foot tides, try the default page for now... Watch some 50 foot (15 meter) tides.
                  Real courage is not securing your Wi-Fi network.

                  Comment


                    #10
                    I'm getting the same error with the default tide location. I'm sure I'm doing something wrong.

                    Here is my config w/ the default location:

                    [Config]
                    Site=http://tbone.biol.sc.edu/tide/tideshow.cgi?site=Scots+Bay%2C+Nova+Scotia&type=mobile
                    ShowNum = 4
                    Device= V18
                    Graphic = True
                    [Data]
                    LDL =
                    Units=

                    Comment


                      #11
                      What date format is Windows AND Homeseer using?
                      Real courage is not securing your Wi-Fi network.

                      Comment


                        #12
                        I think it's a dot net thing.
                        I may need to find a more foolproof method of converting the date string from the site.
                        Real courage is not securing your Wi-Fi network.

                        Comment


                          #13
                          Windows:
                          English (United States)
                          Date and time formats:
                          Short date: M/d/yyyy
                          Long date: dddd,MMMM dd,yyyy
                          Short time: h:mm tt
                          Long time: h;mm;ss tt


                          Homeseer: I don't know that I picked a format. Just Eastern time zone.

                          Comment


                            #14
                            so, aside from knowing that water will be in or out, what else can I use this for?

                            Just trying to see if this is something I want to get setup.

                            --Dan
                            Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

                            Comment


                              #15
                              Originally posted by drozwood90 View Post
                              so, aside from knowing that water will be in or out, what else can I use this for?

                              Just trying to see if this is something I want to get setup.

                              --Dan
                              So you're not a fisherman then Dan.
                              I plan to use it to plan my fishing trips and perhaps have HS remind me when the tide will be high. The sea bass come up river on the tides during the summer. I plan to land a 20 pounder this year.
                              Other than that, it's just a neat thing to add to the HST Almanac screen.

                              @ Jon. I think your problem with the date conversion may likely have something to do with dot NET. I may have it solved. I've used both of your sites here successfully.

                              The flow type data will work now.

                              I've also added a fix for the initial "early in the day" installation restriction. I found some of these sites update the data throughout the day, dropping the most recent data, which is necessary for the 'current level' calculation. The script will just wait now until it has sufficient data to continue. After the initial data downloads, there shouldn't be a problem with that.

                              I'll run overnight then perhaps post an update in the morning.
                              Real courage is not securing your Wi-Fi network.

                              Comment

                              Working...
                              X