cloudy cloudy

Author Topic: Tides Processor Script  (Read 57320 times)

0 Members and 1 Guest are viewing this topic.

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 26,890
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: Tides Processor Script
« Reply #255 on: January 12, 2018, 09:49:31 PM »
Assuming this line 39 refers to the dates in tideprediction.html I think you need to change $yearDate to "no", or whatever it was originally, since your dates do not have the year:

Code: [Select]
//   If your tide dates include years (Monday 2008-09-10) change this to "yes"  //
$yearDate = "yes";                                                               //

Quote
Wednesday 01-10   
Sunrise 0713, Sunset 1623
Moonrise 0113, Moonset 1221
  High Tide:  0559   9.3
   Low Tide:  1217   0.6
  High Tide:  1829   8.5






Offline Matthew Conklin

  • Signature 1
  • Posts: 82
  • South Turner, Maine
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.132
    • South Turner Maine Weather
Re: Tides Processor Script
« Reply #256 on: January 12, 2018, 10:01:10 PM »
got part of the tides back now still showing issues with sun and moon
Matthew Conklin
Robert Conklin
Webmasters
www.southturnermaineweather.com
CoCoRAHS
SkyWarn observer
Weather Display Ver. 10.37S 47

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 26,890
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 63.0.3239.132
Re: Tides Processor Script
« Reply #257 on: January 12, 2018, 10:22:52 PM »
Try changing line 43 to "yes"

Code: [Select]
$convertRF = "no";

Offline Matthew Conklin

  • Signature 1
  • Posts: 82
  • South Turner, Maine
  • OS/Browser:
  • Win NT 10.0
  • Chrome 63.0.3239.132
    • South Turner Maine Weather
Re: Tides Processor Script
« Reply #258 on: January 12, 2018, 10:37:23 PM »
did not fix it
Matthew Conklin
Robert Conklin
Webmasters
www.southturnermaineweather.com
CoCoRAHS
SkyWarn observer
Weather Display Ver. 10.37S 47

Offline R_o_B

  • Posts: 176
  • Maple Bay, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Tzouhalem-Maple Bay Weather
Re: Tides Processor Script
« Reply #259 on: January 14, 2018, 01:53:50 PM »
Matthew, I am working on the script you have posted a few days ago.

There are many variables that have not been 'declared' (such as, for example, setting the default value of the variable $moon to null). So, when an 'if' statement only check if the variable within (the 'if' statement) is 'yes' and does not provide an option in case the variable within (the 'if' statement) is 'no', then errors are produced and they prevent the script from continuing and producing the expected results...
R_o_B
---
eMail: weather@tzweather.org

 

cumulus