Changes in / [2913846:c6e74c2]


Ignore:
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • debian/changelog

    r2913846 rc6e74c2  
    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
    81gnuboat (0.5.0) jessie; urgency=low
    92
  • src/python/bin/gnuboat

    r2913846 rc6e74c2  
    114114                                                     gpsTime.strftime("%d%m%y"), '', '', mode)))))
    115115        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'))))))
    118118    except:
    119119        print('Failed writing to logfile {}'.format(nmeaLogFile))
  • src/python/gnuboat/daemon/gpsdpoller.py

    r2913846 rc6e74c2  
    3838
    3939    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:
    4141            return 0
    4242        return self._currentValue.lat
    … …  
    4646
    4747    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:
    4949            return 0
    5050        return self._currentValue.lon
    … …  
    5454
    5555    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:
    5757            return 0
    5858        return self._currentValue.speed
    5959
    6060    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:
    6262            return 0
    6363        return self._currentValue.track
    6464
    6565    def gpsFix(self):
    66         if self._currentValue is None or 'mode' not in self._currentValue:
     66        if self._currentValue == None or 'mode' not in self._currentValue:
    6767            return 0
    6868        return self._currentValue.mode
    6969
    7070    def status(self):
    71         if self._currentValue is None or self.gpsFix() < 2:
     71        if self._currentValue == None or self.gpsFix() < 2:
    7272            return 'V'
    7373        return 'A'
    7474
    7575    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:
    7777            return None
    7878        currentTime = self._currentValue.time
  • src/webapp/webclient/index.html

    r2913846 rc6e74c2  
    3030                <link rel="stylesheet" content="text/css" href="lib/css/pure/grids-responsive-min.css">
    3131                <!--<![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"/>
    3333               
    3434                <script src="lib/js/jquery-3.2.1.min.js" type="text/javascript"></script>
Note: See TracChangeset for help on using the changeset viewer.