summaryrefslogtreecommitdiff
path: root/tools/mmd
diff options
context:
space:
mode:
authorJogi Hofmüller <jogi@mur.at>2011-08-23 10:46:28 +0000
committerJogi Hofmüller <jogi@mur.at>2011-08-23 10:46:28 +0000
commit35df1231616dc3b122cc1d99c74e568b647e8151 (patch)
tree57d605b0656e0ebf77fb7651436b30dcddf52cdc /tools/mmd
parent- fixed stupid bug when writing TLE file to java array (diff)
- changed date string in tle.js file output
git-svn-id: https://svn.spreadspace.org/mur.sat@146 7de4ea59-55d0-425e-a1af-a3118ea81d4c
Diffstat (limited to 'tools/mmd')
-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)