Changeset 2913846
- Timestamp:
- Sep 24, 2017, 3:49:12 PM (9 years ago)
- Branches:
- debian/bullseye, debian/jessie
- Children:
- e86d691
- Parents:
- c6e74c2 (diff), 584d29a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Joachim Langenbach <joachim.langenbach@…> (09/24/17 15:44:18)
- git-committer:
- Joachim Langenbach <joachim.langenbach@…> (09/24/17 15:49:12)
- Files:
-
- 2 deleted
- 4 edited
-
debian/changelog (modified) (1 diff)
-
src/python/bin/gnuboat (modified) (1 diff)
-
src/python/gnuboat/daemon/gpsdpoller.py (modified) (3 diffs)
-
src/webapp/webclient/index.html (modified) (1 diff)
-
src/webapp/webclient/lib/css/leaflet.css (deleted)
-
src/webapp/webclient/lib/css/resources/layers.png (deleted)
Legend:
- Unmodified
- Added
- Removed
-
debian/changelog
rc6e74c2 r2913846 1 gnuboat (0.5.1) jessie; urgency=low 2 3 * Fixed python error in dpt and temp logging 4 * Improved error handling in gpsdpoller.py 5 * Cleanup leaflet css files in webclient 6 7 -- EngSaS - Maintainer <info@engsas.de> Sun, 24 Sep 2017 16:00:00 +0200 1 8 gnuboat (0.5.0) jessie; urgency=low 2 9 -
src/python/bin/gnuboat
rc6e74c2 r2913846 114 114 gpsTime.strftime("%d%m%y"), '', '', mode))))) 115 115 if transducerValid: 116 nmeafile.write('{}{}\r\n'.format(logsystemtime, str(pynmea2.DPT('SD', 'DPT', ('{:05.2f}'.format(waterDepth , '00.00'))))))117 nmeafile.write('{}{}\r\n'.format(logsystemtime, str(pynmea2.MTW('YX', 'MTW', ('{:04.1f}'.format(waterTemperature , 'C'))))))116 nmeafile.write('{}{}\r\n'.format(logsystemtime, str(pynmea2.DPT('SD', 'DPT', ('{:05.2f}'.format(waterDepth), '00.00'))))) 117 nmeafile.write('{}{}\r\n'.format(logsystemtime, str(pynmea2.MTW('YX', 'MTW', ('{:04.1f}'.format(waterTemperature), 'C'))))) 118 118 except: 119 119 print('Failed writing to logfile {}'.format(nmeaLogFile)) -
src/python/gnuboat/daemon/gpsdpoller.py
rc6e74c2 r2913846 38 38 39 39 def latitude(self): 40 if self._currentValue == None or self.gpsFix() < 2:40 if self._currentValue is None or self.gpsFix() < 2 or 'lat' not in self._currentValue: 41 41 return 0 42 42 return self._currentValue.lat … … 46 46 47 47 def longitude(self): 48 if self._currentValue == None or self.gpsFix() < 2:48 if self._currentValue is None or self.gpsFix() < 2 or 'lon' not in self._currentValue: 49 49 return 0 50 50 return self._currentValue.lon … … 54 54 55 55 def speedOverGround(self): 56 if self._currentValue == None or self.gpsFix() < 2:56 if self._currentValue is None or self.gpsFix() < 2 or 'speed' not in self._currentValue: 57 57 return 0 58 58 return self._currentValue.speed 59 59 60 60 def courseOverGround(self): 61 if self._currentValue == None or self.gpsFix() < 2:61 if self._currentValue is None or self.gpsFix() < 2 or 'track' not in self._currentValue: 62 62 return 0 63 63 return self._currentValue.track 64 64 65 65 def gpsFix(self): 66 if self._currentValue ==None or 'mode' not in self._currentValue:66 if self._currentValue is None or 'mode' not in self._currentValue: 67 67 return 0 68 68 return self._currentValue.mode 69 69 70 70 def status(self): 71 if self._currentValue ==None or self.gpsFix() < 2:71 if self._currentValue is None or self.gpsFix() < 2: 72 72 return 'V' 73 73 return 'A' 74 74 75 75 def timeUtc(self): 76 if self._currentValue == None or self.gpsFix() < 2:76 if self._currentValue is None or self.gpsFix() < 2 or 'time' not in self._currentValue: 77 77 return None 78 78 currentTime = self._currentValue.time -
src/webapp/webclient/index.html
rc6e74c2 r2913846 30 30 <link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-min.css"> 31 31 <!--<![endif]--> 32 <link rel="stylesheet" content="text/css" href="lib/css/leaflet .css"/>32 <link rel="stylesheet" content="text/css" href="lib/css/leaflet/leaflet.css"/> 33 33 34 34 <script src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
Note:
See TracChangeset
for help on using the changeset viewer.
