Changes in / [04de4a4:2925c4a]


Ignore:
Files:
3 added
6 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • externals/epaper-driver/debian/changelog

    r04de4a4 r2925c4a  
    1 epd-fuse (0.1-4) unstable; urgency=low
    2 
    3   * Added auto switch to systemd for debian jessie (8.0) or initd for
    4     version before jessie
    5   * Added Apache 2.0 as license and also added copyright information
    6   * epd-fuse-* provides virtual package epd-fuse and python-epd depends on that virtual package
    7 
    8  -- EngSaS - Joachim Langenbach <info@engsas.de>  Thu, 21 Jul 2016 17:00:00 +0000
    9 
    101epd-fuse (0.1-3) unstable; urgency=low
    112
  • externals/epaper-driver/debian/control

    r04de4a4 r2925c4a  
    33Priority: optional
    44Maintainer: EngSaS - Joachim Langenbach <info@engsas.de>
    5 Build-Depends: debhelper (>= 9), lsb-release, dh-python, dh-systemd (>= 1.5), python-all, python3-all, python-all-dbg, python3-all-dbg, python-setuptools, python3-setuptools, python-support (>= 0.90), python-pil
     5Build-Depends: debhelper (>= 9), dh-python, python-all, python3-all, python-all-dbg, python3-all-dbg, python-setuptools, python3-setuptools, python-support (>= 0.90), python-pil
    66Standards-Version: 3.9.5
    77Homepage: https://github.com/repaper/gratis
    … …  
    1313Package: epd-fuse-v230-g2
    1414Architecture: any
    15 Provides: epd-fuse
    1615Depends: ${shlibs:Depends}, ${misc:Depends}, libfuse-dev
    1716Description: EPD driver for repaper display
    … …  
    2120Section: python
    2221Architecture: any
    23 Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, epd-fuse
     22Depends: ${python:Depends}, ${misc:Depends}, ${shlibs:Depends}, epd-fuse-v230-g2
    2423Description: Python module for the repaper display epd-fuse driver
    2524 It provides an API to use the repaper displays with epd-fuse driver
    … …  
    2928Section: python
    3029Architecture: any
    31 Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}, epd-fuse
     30Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}, epd-fuse-v230-g2
    3231Description: Python module for the repaper display epd-fuse driver (Python 3)
    3332 It provides an API to use the repaper displays with epd-fuse driver
  • externals/epaper-driver/debian/copyright

    r04de4a4 r2925c4a  
    11Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
    22Upstream-Name: epd-fuse
    3 Source: https://github.com/repaper/gratis
     3Source: <url://example.com>
    44
    55Files: *
    6 Copyright: Copyright 2013-2015 Pervasive Displays, Inc
    7 License: Apache-2.0
    8  Licensed to the Apache Software Foundation (ASF) under one or more
    9  contributor license agreements.  See the NOTICE file distributed with
    10  this work for additional information regarding copyright ownership.
    11  The ASF licenses this file to You under the Apache License, Version 2.0
    12  (the "License"); you may not use this file except in compliance with
    13  the License.  You may obtain a copy of the License at
     6Copyright: <years> <put author's name and email here>
     7           <years> <likewise for another author>
     8License: <special license>
     9 <Put the license of the package here indented by 1 space>
     10 <This follows the format of Description: lines in control file>
    1411 .
    15       http://www.apache.org/licenses/LICENSE-2.0
     12 <Including paragraphs>
     13
     14# If you want to use GPL v2 or later for the /debian/* files use
     15# the following clauses, or change it to suit. Delete these two lines
     16Files: debian/*
     17Copyright: 2016 EngSaS - Joachim Langenbach <info@engsas.de>
     18License: GPL-2+
     19 This package is free software; you can redistribute it and/or modify
     20 it under the terms of the GNU General Public License as published by
     21 the Free Software Foundation; either version 2 of the License, or
     22 (at your option) any later version.
    1623 .
    17  Unless required by applicable law or agreed to in writing, software
    18  distributed under the License is distributed on an "AS IS" BASIS,
    19  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    20  See the License for the specific language governing permissions and
    21  limitations under the License.
     24 This package is distributed in the hope that it will be useful,
     25 but WITHOUT ANY WARRANTY; without even the implied warranty of
     26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     27 GNU General Public License for more details.
    2228 .
    23  On Debian systems, the full text of the Apache Software License version 2 can
    24  be found in the file `/usr/share/common-licenses/Apache-2.0'.
     29 You should have received a copy of the GNU General Public License
     30 along with this program. If not, see <http://www.gnu.org/licenses/>
     31 .
     32 On Debian systems, the complete text of the GNU General
     33 Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
     34
     35# Please also look if there are files or directories which have a
     36# different copyright/license attached and list them here.
     37# Please avoid to pick license terms that are more restrictive than the
     38# packaged work, as it may make Debian's contributions unacceptable upstream.
  • externals/epaper-driver/debian/patches/series

    r04de4a4 r2925c4a  
    11add-python-setup.diff
    22fix-make-gnu-standards.diff
    3 switch-service-file.diff
  • externals/epaper-driver/debian/rules

    r04de4a4 r2925c4a  
    44export PYBUILD_NAME = epd
    55PANEL_VERSION := V230_G2
    6 DESTDIR := $(CURDIR)/debian/epd-fuse-v230-g2
     6DESTDIR := $$(pwd)/debian/epd-fuse-v230-g2
    77PREFIX := /usr
    8 RELEASE := $(shell lsb_release -rs)
    9 
    10 SERVICE = initd
    11 ifeq "8.0" "$(word 1, $(sort 8.0 $(RELEASE)))"
    12         SERVICE = systemd
    13 endif
    148
    159%:
    16         dh $@ --with quilt,systemd,python2,python3 --buildsystem=pybuild
     10        dh $@ --with quilt,python2,python3 --buildsystem=pybuild
    1711
    1812override_dh_auto_build:
    1913        dh_auto_build
    20         $(MAKE) PANEL_VERSION=$(PANEL_VERSION) PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) SERVICE=$(SERVICE) rpi-epd_fuse
     14        $(MAKE) PANEL_VERSION=$(PANEL_VERSION) PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) rpi-epd_fuse
    2115
    2216override_dh_auto_install:
    2317        dh_auto_install
    24         $(MAKE) PANEL_VERSION=$(PANEL_VERSION) PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) SERVICE=$(SERVICE) rpi-install
     18        $(MAKE) PANEL_VERSION=$(PANEL_VERSION) PREFIX=$(PREFIX) DESTDIR=$$(pwd)/debian/epd-fuse-v230-g2 rpi-install
    2519
    2620#override_dh_strip:
  • externals/epaper-driver/epaper-package

    r04de4a4 r2925c4a  
    1818
    1919echo "Installing dependencies"
    20 sudo apt-get install debhelper lsb-release dh-python dh-systemd python-all python3-all python-all-dbg python3-all-dbg python-setuptools python3-setuptools python-support python-pil
     20sudo apt-get install debhelper dpkg-dev lintian libfuse-dev
    2121echo "Preparebuild environment"
    2222mkdir "${BUILD_DIR}"
  • src/daemon/gnuboat

    r04de4a4 r2925c4a  
    3131import getopt
    3232import sys
    33 
    34 try:
    35   from EPD import EPD
    36   from PIL import Image
    37   from PIL import ImageDraw
    38   from PIL import ImageFont
    39   epdEnabled = True
    40 except:
    41   epdEnabled = False
     33from EPD import EPD
     34from PIL import Image
     35from PIL import ImageDraw
     36from PIL import ImageFont
    4237
    4338WHITE=1
    … …  
    4742
    4843# default values for command line arguments
    49 rrdfile = "/usr/share/gnuboat/webservice/data/log-webservice.rrd"
     44rrdfile = "/var/www/html/webservice/data/log-webservice.rrd"
    5045shutdownfile = "/var/spool/gnuboat/shutdown.request"
    5146logperiod = 1
    … …  
    5348
    5449shutdownRequested = None
    55 latitude = None
    56 longitude = None
    57 speedThroughWater = None
    58 speedOverGround = None
    59 waterDepth = None
    60 waterTemperature = None
    61 gpsFix = None
    6250
    6351# Copied from https://gist.github.com/wolfg1969/4653340
    … …  
    9381      pass
    9482
    95 """@class DisplayHandler
    96 """
    97 class DisplayHandler(threading.Thread):
    98   def __init__(self, displayperiod):
    99     threading.Thread.__init__(self)
    100     self._epd = EPD()
    101     self._epd.clear()
    102     self._updatePeriod = displayperiod
    103     self._running = True
    104    
    105   def stop(self):
    106     self._running = False
    107    
    108   def run(self):
    109     global latitude
    110     global longitude
    111     global speedThroughWater
    112     global speedOverGround
    113     global waterDepth
    114     global waterTemperature
    115     global gpsFix
    116 
    117     try:
    118       while self._running:
    119         self.displayValues(epd, speedThroughWater, speedOverGround, waterDepth, waterTemperature, gpsFix)
    120         time.sleep(self._updatePeriod)
    121     except StopIteration:
    122       pass
    123 
    124   def displayValues(epd, speedThroughWater, speedOverGround, waterDepth, waterTemperature, gpsFix):
    125     if not epdEnabled:
    126       return
    127 
    128     # requires dejavu package!!!!
    129     fontValues = ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf', 34)
    130     fontTitles = ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', 24)
    131 
    132     # initially set all white background
    133     image = Image.new('1', epd.size, WHITE)
    134     width, height = image.size
    135 
    136     rowHeightTitles = 25
    137     rowHeightValues = float(height - 2 * rowHeightTitles - 3 * marginVertical) / 2.0
    138     columnWidthUnit = 30
    139     columnWidthValues = int(float(width - 3 * marginHorizontal - 2 * columnWidthUnit) / 2.0)
    140 
    141     draw = ImageDraw.Draw(image)
    142     # draw.rectangle((0, 0, width, height), fill=WHITE, outline=WHITE)
    143 
    144     x = marginHorizontal
    145     y = marginVertical
    146     draw.text((x, y), "STW", fill=BLACK, font=fontTitles)
    147     if speedThroughWater is not None:
    148       draw.text((x, y + rowHeightTitles), str(speedThroughWater), fill=BLACK, font=fontValues)
    149     draw.text((x + columnWidthValues, y + rowHeightTitles * 1.4), "kts", fill=BLACK, font=fontTitles)
    150 
    151     x = x + marginHorizontal + columnWidthValues + columnWidthUnit
    152     draw.text((x, y), "SOG", fill=BLACK, font=fontTitles)
    153     if speedOverGround is not None:
    154       draw.text((x, y + rowHeightTitles), str(speedOverGround), fill=BLACK, font=fontValues)
    155     draw.text((x + columnWidthValues, y + rowHeightTitles * 1.4), "kts", fill=BLACK, font=fontTitles)
    156 
    157     x = marginHorizontal
    158     y = y + rowHeightTitles + rowHeightValues + marginVertical
    159     draw.text((x, y), "Depth", fill=BLACK, font=fontTitles)
    160     if waterDepth is not None:
    161       draw.text((x, y + rowHeightTitles), str(waterDepth), fill=BLACK, font=fontValues)
    162     draw.text((x + int(float(columnWidthValues) / 1.5), y + rowHeightTitles * 1.4), "m", fill=BLACK, font=fontTitles)
    163 
    164     x = x + marginHorizontal + columnWidthValues + columnWidthUnit
    165     draw.text((x, y), "Water", fill=BLACK, font=fontTitles)
    166     if waterTemperature is not None:
    167       draw.text((x, y + rowHeightTitles), str(waterTemperature), fill=BLACK, font=fontValues)
    168     draw.text((x + int(float(columnWidthValues) / 1.5), y + rowHeightTitles * 1.4), "C", fill=BLACK, font=fontTitles)
    169 
    170     x = int((x + marginHorizontal + columnWidthValues) * 0.93)
    171     draw.text((x, y), "Fix", fill=BLACK, font=fontTitles)
    172     if gpsFix is not None:
    173       draw.text((x, y + rowHeightTitles), str(gpsFix), fill=BLACK, font=fontValues)
    174  
    175     epd.display(image)
    176     epd.update()
    177 
    17883def createDatabase(databaseFile):
    17984  rrdDataSources = [ 'DS:latitude:GAUGE:15:-90:90',
    … …  
    199104                   rrdDataSources,
    200105                   rrdArchives)
     106
     107def displayValues(epd, speedThroughWater, speedOverGround, waterDepth, waterTemperature, gpsFix):
     108  # requires dejavu package!!!!
     109  fontValues = ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf', 34)
     110  fontTitles = ImageFont.truetype('/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf', 24)
     111
     112  # initially set all white background
     113  image = Image.new('1', epd.size, WHITE)
     114  width, height = image.size
     115
     116  rowHeightTitles = 25
     117  rowHeightValues = float(height - 2 * rowHeightTitles - 3 * marginVertical) / 2.0
     118  columnWidthUnit = 30
     119  columnWidthValues = int(float(width - 3 * marginHorizontal - 2 * columnWidthUnit) / 2.0)
     120
     121  draw = ImageDraw.Draw(image)
     122  # draw.rectangle((0, 0, width, height), fill=WHITE, outline=WHITE)
     123
     124  x = marginHorizontal
     125  y = marginVertical
     126  draw.text((x, y), "STW", fill=BLACK, font=fontTitles)
     127  draw.text((x, y + rowHeightTitles), str(speedThroughWater), fill=BLACK, font=fontValues)
     128  draw.text((x + columnWidthValues, y + rowHeightTitles * 1.4), "kts", fill=BLACK, font=fontTitles)
     129
     130  x = x + marginHorizontal + columnWidthValues + columnWidthUnit
     131  draw.text((x, y), "SOG", fill=BLACK, font=fontTitles)
     132  draw.text((x, y + rowHeightTitles), str(speedOverGround), fill=BLACK, font=fontValues)
     133  draw.text((x + columnWidthValues, y + rowHeightTitles * 1.4), "kts", fill=BLACK, font=fontTitles)
     134
     135  x = marginHorizontal
     136  y = y + rowHeightTitles + rowHeightValues + marginVertical
     137  draw.text((x, y), "Depth", fill=BLACK, font=fontTitles)
     138  draw.text((x, y + rowHeightTitles), str(waterDepth), fill=BLACK, font=fontValues)
     139  draw.text((x + int(float(columnWidthValues) / 1.5), y + rowHeightTitles * 1.4), "m", fill=BLACK, font=fontTitles)
     140
     141  x = x + marginHorizontal + columnWidthValues + columnWidthUnit
     142  draw.text((x, y), "Water", fill=BLACK, font=fontTitles)
     143  draw.text((x, y + rowHeightTitles), str(waterTemperature), fill=BLACK, font=fontValues)
     144  draw.text((x + int(float(columnWidthValues) / 1.5), y + rowHeightTitles * 1.4), "C", fill=BLACK, font=fontTitles)
     145
     146  x = int((x + marginHorizontal + columnWidthValues) * 0.93)
     147  draw.text((x, y), "Fix", fill=BLACK, font=fontTitles)
     148  draw.text((x, y + rowHeightTitles), str(gpsFix), fill=BLACK, font=fontValues)
     149 
     150  epd.display(image)
     151  epd.update()
    201152
    202153def checkShutdownRequest(shutdownFile):
    … …  
    230181  global logperiod
    231182  global displayperiod
    232   global latitude
    233   global longitude
    234   global speedThroughWater
    235   global speedOverGround
    236   global waterDepth
    237   global waterTemperature
    238   global gpsFix
    239183
    240184  try:                               
    … …  
    285229  createDatabase(rrdfile)
    286230
    287   displayHandler = None
    288   if epdEnabled:
    289     displayHandler = DisplayHandler(displayperiod)
     231  epd = EPD()
     232  epd.clear()
    290233
    291234  gpsp = GpsdPoller()
    … …  
    306249      # update rrd database for the webservice
    307250      rrdtool.update(rrdfile, "N:%s:%s:%s:%s:%s:%s:%s" % (latitude, longitude, speedThroughWater, speedOverGround, waterDepth, waterTemperature, gpsFix))
     251      # update display, if needed
     252      if round(time.time(),0) % displayperiod == 0:
     253        displayValues(epd, speedThroughWater, speedOverGround, waterDepth, waterTemperature, gpsFix)
    308254      #check for shutdown request
    309255      checkShutdownRequest(shutdownfile)
    … …  
    312258    gpsp.stop()
    313259    gpsp.join() # wait for the thread to finish what it's doing
    314     if displayHandler is not None:
    315       displayHandler.stop()
    316       displayHandler.join() # wait for the thread to finish what it's doing
    317260
    318261if __name__ == "__main__":
  • src/webapp/build.xml

    r04de4a4 r2925c4a  
    1616                <fileset dir="./webclient/javascript" id="filesJavascript"/>
    1717                <fileset dir="./webclient/resources" id="filesResources"/>
    18                 <fileset dir="../icon/" id="filesGnuboatIcons">
    19                         <include name="gnuboat-256-256-transparent.png"/>
    20                 </fileset>
    2118
    2219                <copy todir="${builddir}/webclient">
    … …  
    3128                <copy todir="${builddir}/webclient/resources">
    3229                        <fileset refid="filesResources"/>
    33                         <fileset refid="filesGnuboatIcons"/>
    3430                </copy>
    3531        </target>
    3632        <target name="buildwebservice" depends="prepare">
    37                 <fileset dir="./webservice" id="filesWebservice">
    38                         <exclude name="mbtiles/*"/>
    39                 </fileset>
     33                <fileset dir="./webservice" id="filesWebservice"/>
    4034                <fileset dir="./webservice/mbtiles" id="filesWebserviceMaps">
    4135                        <!-- <exclude name=""/> -->
  • src/webapp/webclient/css/main.css

    r04de4a4 r2925c4a  
    1818body {
    1919        margin: 1em;
    20         width: 14em;
    21         border-color: 1px solid black;
     20        width: 58.3mm;
    2221}
    2322
    … …  
    2524        background-color: #93C0C0;
    2625        background-image: linear-gradient(#BCD9D9, #93C0C0);
    27 }
    28 
    29 .backgroundgreen {
    30         background-color: #ACDFAC;
    31         background-image: linear-gradient(#CCECCC, #ACDFAC);
    3226}
    3327
    … …  
    4034}
    4135
    42 #title img {
    43         height: 2em;
    44         width: auto;
    45         vertical-align: middle;
    46         margin: 0.1em;
    47         padding-left: 0em;
    48         margin-left: -0.3em;
    49 }
    50 
    5136#display {
    5237        background-color: #E6E6E6;
    5338        width: 100%;
    54         height: 9em;
     39        height: 38.2mm;
    5540        font-size: 12pt;
    5641        font-weight: normal;
    … …  
    7661#display #speedthroughwater {
    7762        position: absolute;
    78         top: 0.5em;
    79         left: 0.5em;
     63        top: 2mm;
     64        left: 2mm;
    8065}
    8166
    … …  
    8772#display #speedoverground {
    8873        position: absolute;
    89         top:  0.5em;
    90         left: 7em;
     74        top: 2mm;
     75        left: 30mm;
    9176}
    9277
    9378#display #waterdepth {
    9479        position: absolute;
    95         top: 5em;
    96         left: 0.5em;
     80        top: 21mm;
     81        left: 2mm;
     82}
     83
     84#display #gpsfix {
     85        position: absolute;
     86        top: 21mm;
     87        left: 46mm;
    9788}
    9889
    9990#display #watertemperature {
    10091        position: absolute;
    101         top: 5em;
    102         left: 7em;
    103 }
    104 
    105 #display #gpsfix {
    106         position: absolute;
    107         top: 5em;
    108         left: 11em;
     92        top: 21mm;
     93        left: 30mm;
    10994}
    11095
    11196#map {
    11297        width: 100%;
    113         height: 24em;
     98        height: 76mm;
    11499        border: 1px solid black;
    115100        margin-top: 1em;
    … …  
    120105}
    121106
    122 form h2 {
    123         text-align: center;
    124         margin-top: 2em;
    125         margin-bottom: 0.5em;
    126         padding-top: 0.6em;
    127         height: 2em;
    128 }
    129 
    130107form p {
     108        margin-top: 1em;
    131109        height: 3em;
    132         margin: 0em;
    133110}
    134111
    … …  
    137114        height: 3em;
    138115        width: 100%;
    139         font-weight: normal;
    140         margin-top: 1em;
    141116}
    142117
    143118.formButtons {
    144119        text-align: center;
    145         margin-top: 3em;
     120        margin-top: 2em;
    146121}
    147122
  • src/webapp/webclient/javascript/main.js

    r04de4a4 r2925c4a  
    3838                        var value = lastValid[key];
    3939                        if($.isNumeric(value)){
    40                                 var text = value.toFixed(1);
    4140                                if(key == "watertemperature"){
    42                                         text = value.toFixed(0);
     41                                        value = Math.round(value);
    4342                                }
    44                                 $("#display #"+ keys[i] +" #value").text(text);
     43                                $("#display #"+ keys[i] +" #value").text(value.toString());
    4544                        }
    4645                        else if(key == "gpsfix"){
  • src/webapp/webclient/root/inc/header.php

    r04de4a4 r2925c4a  
    3737        <!DOCTYPE HTML>
    3838        <html>
    39                 <head profile="http://www.w3.org/2005/10/profile">
     39                <head>
    4040                        <meta charset="utf-8"/>
    41                         <link rel="icon" type="image/png" href="resources/gnuboat-256-256-transparent.png"/>
    4241                        <title>GNUBoat <?php echo (empty($headerTitle)) ? "" : " - ". $headerTitle; ?></title>
    4342                        <link rel="stylesheet" href="css/main.css" type="text/css"/>
  • src/webapp/webclient/root/index.php

    r04de4a4 r2925c4a  
    6565require_once("inc/header.php");
    6666?>
    67         <h2 id="title" class="backgroundblue"><img src="resources/gnuboat-256-256-transparent.png" />Boat</h2>
     67        <h2 id="title" class="backgroundblue">GNUBoat</h2>
    6868        <div id="display">
    6969                <div id="speedthroughwater">
    … …  
    8989        </div>
    9090        <div id="map"></div>
    91         <div id="shutdown">
    92                 <p id="shutdownMessage"/>
    93                 <form>
    94                         <button type="button" id="shutdownButton">SHUTDOWN</button>
    95                 </form>
    96         </div>
    9791        <form method="post" action="./" enctype="multipart/form-data">
    9892                <div class="formTable">
    99                         <h2 class="backgroundgreen">Map Upload</h2>
    10093                        <p>
    101                                 <label>MBTiles File:</label><br/>
     94                                <label>Upload Map (mbtiles format):</label><br/>
    10295                                <input class="file" type="file" name="mapFile" value=""/>
    10396                        </p>
    … …  
    107100                </div>
    108101        </form>
     102        <div id="shutdown">
     103                <p id="shutdownMessage"/>
     104                <form>
     105                        <button type="button" id="shutdownButton">SHUTDOWN</button>
     106                </form>
     107        </div>
    109108<?php
    110109require_once("inc/footer.php");
  • src/webapp/webservice/inc/Config.php

    r04de4a4 r2925c4a  
    3838        }
    3939       
    40         public function shutdownRequestFile(){
    41                 if(array_key_exists("shutdownfile", $this->_config))
    42                         return $this->_config["shutdownfile"];
    43                 return "/var/spool/gnuboat/shutdown.request";
    44         }
    45        
    4640        public function dataDirectory(){
    4741                if(array_key_exists("datadirectory", $this->_config))
  • src/webapp/webservice/index.php

    r04de4a4 r2925c4a  
    9292                                if(!is_numeric($tmp[$key]) || is_nan($tmp[$key])){
    9393                                        $allValid = false;
    94                                         if($debug > 1){
    95                                                 echo "Invalid value ". $key ." (". $tmp[$key] .") at time ". $time ."<br/>";
    96                                         }
    9794                                }
    9895                                elseif(array_key_exists($key, $configRound) && is_integer($configRound[$key]))
    … …  
    10198                }
    10299                // only add the timeframe to the track, if the values are valid and we had a gps fix at that time
    103                 if($allValid){
    104                         if(!array_key_exists($time, $result["track"])){
     100                if($allValid && $tmp["gpsfix"] != "-"){
     101                        echo "want to add ". $time ."<br/>\n";
     102                        if(!array_key_exists($time, $result["track"])){
    105103                                $result["track"][$time] = $tmp;
    106                         }
     104                        }
    107105                        $lastTime = $time;
    108106                }
    … …  
    133131$result = array();
    134132if($request == REQUEST_SHUTDOWN){
    135         $handle = @fopen($config->shutdownRequestFile(), "w");
     133        $handle = @fopen("/var/spool/gnuboat/shutdown.request", "w");
    136134        if($handle === false){
    137                 $message = "Could not create file (". $config->shutdownRequestFile() .") to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
     135                $message = "Could not create file to indicate shutdown to the daemon (Timezone: ". date_default_timezone_get() .")";
    138136                if($debug > 0)
    139137                        echo $message;
Note: See TracChangeset for help on using the changeset viewer.