Changeset 2913846 for src


Ignore:
Timestamp:
Sep 24, 2017, 3:49:12 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
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)
Message:

Merge branch '0.5' into debian/jessie

Location:
src
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/python/bin/gnuboat

    rc6e74c2 r2913846  
    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

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

    rc6e74c2 r2913846  
    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.css"/>
     32                <link rel="stylesheet" content="text/css" href="lib/css/leaflet/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.