summaryrefslogtreecommitdiff
path: root/iss
diff options
context:
space:
mode:
Diffstat (limited to 'iss')
-rw-r--r--iss/predictions.py3
-rw-r--r--iss/templates/passes.html4
2 files changed, 4 insertions, 3 deletions
diff --git a/iss/predictions.py b/iss/predictions.py
index b62465d..3737760 100644
--- a/iss/predictions.py
+++ b/iss/predictions.py
@@ -1,7 +1,7 @@
from collections import defaultdict
from skyfield.api import Topos, load
-from .utils import chunks, deg_to_cardinal
+from .utils import chunks, deg_to_cardinal, seconds_to_minutes
ISS = "ISS (ZARYA)"
@@ -65,6 +65,7 @@ class Predictions(object):
length = int((zet - rise) * 86400)
return {
"length": length,
+ "length_mins": seconds_to_minutes(length),
"rise": self.get_position_details(rise),
"culminate": self.get_position_details(culminate),
"set": self.get_position_details(zet),
diff --git a/iss/templates/passes.html b/iss/templates/passes.html
index 5e4ce06..63ef325 100644
--- a/iss/templates/passes.html
+++ b/iss/templates/passes.html
@@ -28,7 +28,7 @@
<th>Azimuth</th>
</tr>
<tr class="pa1" v-for="pred in localizedPredictions">
- <td>[[ pred.length ]]</td>
+ <td class="f5">[[ pred.length_mins ]]</td>
<td>[[ pred.date ]]</td>
<td>[[ pred.rise.time ]]</td>
<td>
@@ -40,7 +40,7 @@
<span class="f4">[[ pred.culminate.direction ]]</span>
<span class="f6 mid-gray">[[ pred.culminate.azimuth ]]</span>
</td>
- <td>[[ pred.culminate.degrees ]]</td>
+ <td class="f4">[[ pred.culminate.degrees ]]</td>
<td>[[ pred.culminate.distance ]]</td>
<td>[[ pred.set.time ]]</td>
<td>