Changes in / [2913846:c6e74c2]
- Files:
-
- 2 added
- 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 (added)
-
src/webapp/webclient/lib/css/resources/layers.png (added)
Legend:
- Unmodified
- Added
- Removed
-
debian/changelog
r2913846 rc6e74c2 1 gnuboat (0.5.1) jessie; urgency=low2 3 * Fixed python error in dpt and temp logging4 * Improved error handling in gpsdpoller.py5 * Cleanup leaflet css files in webclient6 7 -- EngSaS - Maintainer <info@engsas.de> Sun, 24 Sep 2017 16:00:00 +02008 1 gnuboat (0.5.0) jessie; urgency=low 9 2 -
src/python/bin/gnuboat
r2913846 rc6e74c2 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
r2913846 rc6e74c2 38 38 39 39 def latitude(self): 40 if self._currentValue is None or self.gpsFix() < 2 or 'lat' not in self._currentValue:40 if self._currentValue == None or self.gpsFix() < 2: 41 41 return 0 42 42 return self._currentValue.lat … … 46 46 47 47 def longitude(self): 48 if self._currentValue is None or self.gpsFix() < 2 or 'lon' not in self._currentValue:48 if self._currentValue == None or self.gpsFix() < 2: 49 49 return 0 50 50 return self._currentValue.lon … … 54 54 55 55 def speedOverGround(self): 56 if self._currentValue is None or self.gpsFix() < 2 or 'speed' not in self._currentValue:56 if self._currentValue == None or self.gpsFix() < 2: 57 57 return 0 58 58 return self._currentValue.speed 59 59 60 60 def courseOverGround(self): 61 if self._currentValue is None or self.gpsFix() < 2 or 'track' not in self._currentValue:61 if self._currentValue == None or self.gpsFix() < 2: 62 62 return 0 63 63 return self._currentValue.track 64 64 65 65 def gpsFix(self): 66 if self._currentValue isNone or 'mode' not in self._currentValue:66 if self._currentValue == 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 isNone or self.gpsFix() < 2:71 if self._currentValue == None or self.gpsFix() < 2: 72 72 return 'V' 73 73 return 'A' 74 74 75 75 def timeUtc(self): 76 if self._currentValue is None or self.gpsFix() < 2 or 'time' not in self._currentValue:76 if self._currentValue == None or self.gpsFix() < 2: 77 77 return None 78 78 currentTime = self._currentValue.time -
src/webapp/webclient/index.html
r2913846 rc6e74c2 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 /leaflet.css"/>32 <link rel="stylesheet" content="text/css" href="lib/css/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.
