Skip to content

Commit

Permalink
Merge pull request #457 from JaredF/Weather_Tides_Fix
Browse files Browse the repository at this point in the history
Fixes #456
  • Loading branch information
JaredF committed Jul 30, 2014
2 parents 8f27b65 + 2e23252 commit ad78ad2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions bin/mh.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2144,6 +2144,15 @@ Insteon_PLM_disable_throttling=0
@ messages received from an Insteon device in response to a command.
Insteon_PLM_reconnect_count=99
# ******************************************************************************
# Category = Weather
@ Used by the common code file weather_tides.pl to specify the nearest coastal region
@ from which to obtain tide data. Enter a location from the list at <a href="http://tbone.biol.sc.edu/tide/">http://tbone.biol.sc.edu/tide</a>,
@ for example, weather_tide_site=San Diego, San Diego Bay, California
weather_tide_site=
******************************************************************************
# Category = Misc
Expand Down
7 changes: 4 additions & 3 deletions code/common/weather_tides.pl
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Category = Weather

#@ This script collects information about ocean tides, moonrise and moonset from the
#@ <a href=http://tbone.biol.sc.edu/tide>University of Southern Carolina Tide Predictor<a>.
#@ <a href="http://tbone.biol.sc.edu/tide">University of Southern Carolina Tide Predictor</a>.
#@ Set the weather_tide_site ini parameter to the tide site closest to you.

# 12/04/05 created by David Norwood based on idea by Joey French
# Version 1.1 07/29/14 Fixed description and ini parameter reference - Jared J. Fernandez
# Version 1.0 12/04/05 created by David Norwood based on idea by Joey French


#noloop=start
Expand All @@ -15,7 +16,7 @@
$v_read_tides = new Voice_Cmd 'When is the next [High Tide,Low Tide,Moonrise,Moonset]?';
$v_read_tides ->set_info('Show tide, moonrise and moonset information from the Internet');
$p_get_tides = new Process_Item;
$tide_site = $config_parms{'weather_tide_site'} if $config_parms{'weather_tide_site'};
$tide_site = $config_parms{weather_tide_site} if $config_parms{weather_tide_site};
$tide_site = &escape($tide_site);
set $p_get_tides "get_url http://tbone.biol.sc.edu/tide/tideshow.cgi?site=$tide_site $f_tides";
trigger_delete "get tide info";
Expand Down

0 comments on commit ad78ad2

Please sign in to comment.