## Australian Index Forecast panel ## Included in index.html.tmpl ## ## Depending of your location and XML file in skin.conf ## you will need to adjust this file in a few places ## #import dateutil.parser

#set $FC = $aus.FC_LOCAL.forecast('area',description=str($aus.index_locality))
#set $issueDateTime = $aus.FC_LOCAL.amoc.issue__time__local.string #if $aus.FC_LOCAL.amoc.phase.string == "NEW" #set $fcIssueLocal = "Issued " #else #set $fcIssueLocal = "Updated " #end if Forecast for $aus.index_locality
$fcIssueLocal at $dateutil.parser.parse($issueDateTime).strftime("%I:%M%p") $aus.FC_LOCAL.amoc.issue__time__local.tz on $dateutil.parser.parse($issueDateTime).strftime("%a %-d %b %Y")
#for $fcCount in range(8) #set $fcIndex = str($fcCount) #if $FC.getNode('forecast-period',index=$fcIndex) is not None #if $fcIndex == "0" #else #end if #end if #end for
Forecast for the rest of $dateutil.parser.parse($FC.getNode('forecast-period',index=$fcIndex).start__time__local).strftime("%A") $dateutil.parser.parse($FC.getNode('forecast-period',index=$fcIndex).start__time__local).strftime("%A %-d %b")
$FC.getNode('forecast-period',index=$fcIndex).text #if $FC.getNode('forecast-period',index=$fcIndex).getNode('element',type="air_temperature_minimum") is not None
Min $FC.getNode('forecast-period',index=$fcIndex).getNode('element',type="air_temperature_minimum") #else
#end if #if $FC.getNode('forecast-period',index=$fcIndex).getNode('element',type="air_temperature_maximum") is not None Max $FC.getNode('forecast-period',index=$fcIndex).getNode('element',type="air_temperature_maximum") #end if
Full Forecast
#set $nextIssueDateTime = $aus.FC_LOCAL.amoc.next__routine__issue__time__local.string The next routine forecast will be issue at $dateutil.parser.parse($nextIssueDateTime).strftime("%I:%M%p") $aus.FC_LOCAL.amoc.next__routine__issue__time__local.tz $dateutil.parser.parse($nextIssueDateTime).strftime("%A")