[% IF lat < 0 %]
[% SET lat = lat * -1 %][% SET ns = "S" %]
[% ELSE %]
[% SET ns = "N" %]
[% END %]
[% IF lon < 0 %]
[% SET lon = lon * -1 %][% SET ew = "W" %]
[% ELSE %]
[% SET ew = "E" %]
[% END %]
[% SET times = hours.keys.sort %]
[% SET cols = [times.slice(0, 23), times.slice(24, 47), times.slice(48, 71), times.slice(72, 95)] %]
[% date.day %] [% date.mday %] [% date.month %] [% date.year %] (GMT [% tz %]) at [% lat %]° [% ns %], [% lon %]° [% ew %]
[% FOREACH halfday = cols %]
| Time | Satellites Visible |
[% FOREACH hour = halfday %]
[% IF loop.index % 2 %]
[% SET bgcolor = "background-color: #ccc;" %]
[% ELSE %]
[% SET bgcolor = "background-color: #fff;" %]
[% END %]
[% IF hours.$hour.size < 4 %]
[% SET css = "gpsBad" %]
[% ELSIF hours.$hour.size >= 6 %]
[% SET css = "gpsGood" %]
[% ELSE %]
[% SET css = "gpsOk" %]
[% END %]
| [% hour %] |
[% hours.$hour.size %] |
[% END %]
|
[% END %]