## exfoliation for weewx - Copyright 2012-2013 Matthew Wall ## $Id: forecast.html.tmpl 1639 2016-12-27 02:33:45Z mwall $ #errorCatcher Echo #encoding UTF-8 #if $encoding == 'utf8' #end if $station.location Forecast #include "header.inc"
#if $varExists('Extras') and $Extras.has_key('forecast_page_forecast_settings') #set global $forecast_table_settings = dict() #for $k in $Extras.forecast_page_forecast_settings #set global $forecast_table_settings[$k] = $Extras.forecast_page_forecast_settings[$k] #end for #end if #include "forecast_table.inc"

NWS

#set global $forecast_strip_settings = dict() #set global $forecast_strip_settings['source'] = 'NWS' #set global $forecast_strip_settings['num_periods'] = 10 #include "forecast_strip.inc"

#if $Extras.has_key('current_show_tides') and $Extras.current_show_tides == 'true' and $varExists('forecast') #set $tstart = time.time() - 3600 #set $tend = $tstart + 26*14400 ##set $tend = $tstart + 26*14400 #set $tides = $forecast.xtides(from_ts=$tstart, max_events=6) #if len($tides) > 0 #for $tide in $tides #if $tstart <= $tide.event_ts.raw < $tend #end if #end for
TIDES
$tide.event_ts $tide.event_ts.format('%H:%M') $tide.hilo $tide.offset.nolabel('%.1f') $unit.label.altitude
#end if #end if ## Display tide graph
Hover your mouse over the image to see the larger version.

#if $varExists('forecast')

Tides

#set $tides = $forecast.xtides #if len($tides) > 0 #for $tide in $tides #end for
$tide.event_ts $tide.hilo $tide.offset
#else Tide forecast is not available. #end if

tides for $tides[0].location issued on $tides[0].issued_ts

#else

The forecast search list extension is not installed.

#end if