summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/mmd/MmdSatellite.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/mmd/MmdSatellite.py b/tools/mmd/MmdSatellite.py
index bd11d40..ab75c53 100644
--- a/tools/mmd/MmdSatellite.py
+++ b/tools/mmd/MmdSatellite.py
@@ -168,7 +168,7 @@ class Satellite:
def _createOrbtrackTLEFile (self):
tle_file = open (self.tle_filename)
orbtrack_file = open ("/var/www/hofos.at/mmd/static/tle.js", "w")
- orbtrack_file.write ("//{0}\nPLib.tleData = \n[\n".format (time.strftime ("%Y%m%d - %H%M%S")))
+ orbtrack_file.write ("//Created by MmdSatellite.py\n//{0}\nPLib.tleData = \n[\n".format (time.strftime ("%Y-%m-%d - %H:%M:%S")))
count = 0
for line in tle_file.readlines ():
l = line[:-2]
@@ -216,11 +216,11 @@ if __name__ == "__main__":
# print satellite.longitude, satellite.latitude
# print satellite.getTrajectoryAsJavaArray ('test', 100)
try:
- # assert satellite.cronJob (), 'executing cronjob failed'
- satellite._createOrbtrackTLEFile ()
- next_pass = satellite.getNextPass ()
- assert next_pass, 'getting next pass failed'
- print next_pass
+ assert satellite.cronJob (), 'executing cronjob failed'
+ # satellite._createOrbtrackTLEFile ()
+ # next_pass = satellite.getNextPass ()
+ # assert next_pass, 'getting next pass failed'
+ # print next_pass
except AssertionError as e:
print 'Error: {0}'.format (e)
sys.exit (1)