Changeset 12d7e6f for src/python


Ignore:
Timestamp:
Aug 10, 2017, 8:00:39 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
0.5, app-cordova, debian/bullseye, debian/jessie, master
Children:
85f32d8
Parents:
6fec060
git-author:
Joachim Langenbach <joachim.langenbach@…> (08/10/17 19:37:40)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (08/10/17 20:00:39)
Message:
  • Fixed gnuboat daemon logging errors
  • Fixed minor issues in Webservice classes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/python/bin/gnuboat

    r6fec060 r12d7e6f  
    3939
    4040# default values for command line arguments
    41 rrdfile = "/var/lib/gnuboat/log-webservice.rrd"
     41rrdfile = "/var/lib/gnuboat/gnuboat.rrd"
    4242shutdownfile = "/var/spool/gnuboat/shutdown.request"
    4343logdir = "/var/log/gnuboat"
    … …  
    118118def log(gpsFix, gpsTime, gpsStatus, latitude, latitudeDirection, longitude,
    119119        longitudeDirection, courseOverGround, speedOverGround, waterDepth, waterDepthValid):
     120    global logdir
    120121    global nmeafile
    121122   
    … …  
    127128    mode = 'A'
    128129    if nmeafile == None or nmeaFileDate != nmeaFileDateShould:
    129         if nmeaFile:
     130        if nmeafile:
    130131                nmeafile.close()
    131132        try:
    … …  
    151152    global displayperiod
    152153    global logdir
    153     global nmeaLogFile
     154    global nmeafile
    154155
    155156    try:
Note: See TracChangeset for help on using the changeset viewer.