debian/0002755000000000000000000000000012134722510007165 5ustar debian/rules0000755000000000000000000000242212134722510010243 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 build: build-stamp build-stamp: dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_prep -k dh_installdirs # Install wfrog executables and default config mkdir -p $(CURDIR)/debian/wfrog/usr/lib/wfrog mkdir -p $(CURDIR)/debian/wfrog/usr/bin mkdir -p $(CURDIR)/debian/wfrog/etc/init.d mkdir -p $(CURDIR)/debian/wfrog/etc/wfrog touch $(CURDIR)/debian/wfrog/etc/wfrog/settings.yaml cp -r bin/ wfcommon/ wfdriver/ wflogger/ wfrender/ init.d/ $(CURDIR)/debian/wfrog/usr/lib/wfrog dh_link /usr/lib/wfrog/bin/wfrog /usr/bin/wfrog #ln -s /usr/lib/wfrog/init.d/wflogger $(CURDIR)/debian/wfrog/etc/init.d/wflogger #ln -s /usr/lib/wfrog/init.d/wfrender $(CURDIR)/debian/wfrog/etc/init.d/wfrender # Prepare data directory mkdir -p $(CURDIR)/debian/wfrog/var/lib/wfrog binary-indep: build install dh_testdir dh_testroot dh_installdocs dh_installinit dh_installchangelogs dh_fixperms dh_installdeb dh_compress dh_gencontrol dh_md5sums dh_builddeb binary-arch: build install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/compat0000644000000000000000000000000212134722510010361 0ustar 7 debian/delete_blobs.sh0000755000000000000000000000041212134722510012142 0ustar #!/bin/sh set -e echo -n "$0 : where am I : " pwd if test $(basename $(pwd)) != 'wfrog-tmp' ; then echo I dont like it exit 33 fi echo -n "$0 : what I see : " ls -a echo $0: Delete xsd pkg if test -d xsd ; then rm -r xsd ; fi if test -d pkg ; then rm -r pkg ; fi debian/wfrog.init0000755000000000000000000000551412134722510011204 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: wfrog # Required-Start: $local_fs $remote_fs # Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: wfrog # Description: wfrog - Weather Station Software ### END INIT INFO # Author: Laurent bovet , mennucc1@debian.org # Do NOT "set -e" # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/usr/sbin:/usr/bin:/sbin:/bin NAME=wfrog DESC="wfrog program - Weather Station Software " PROGRAM_DIR=/usr/lib/wfrog/bin PROGRAM=wfrog PROGRAM_ARGS="" PIDFILE_PROGRAM=/var/run/wfrog.pid SCRIPTNAME=/etc/init.d/wfrog USER=root # Exit if the package is not installed [ -x "$PROGRAM_DIR/$PROGRAM" ] || exit 0 # Read configuration variable file if it is present [ -r /etc/default/$NAME ] && . /etc/default/$NAME # Load the VERBOSE setting and other rcS variables [ -f /etc/default/rcS ] && . /etc/default/rcS # Define LSB log_* functions. # Depend on lsb-base (>= 3.0-6) to ensure that this file is present. . /lib/lsb/init-functions # # Function that starts the daemon/service # do_start_program() { # Return # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE_PROGRAM -d $PROGRAM_DIR --exec $PROGRAM_DIR/$PROGRAM --test > /dev/null \ || return 1 start-stop-daemon --start --background --make-pidfile --pidfile $PIDFILE_PROGRAM -d $PROGRAM_DIR --exec $PROGRAM_DIR/$PROGRAM -- $PROGRAM_ARGS \ || return 2 } # # Function that stops the daemon/service # do_stop_program() { # Return # 0 if daemon has been stopped # 1 if daemon was already stopped # 2 if daemon could not be stopped # other if a failure occurred start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --pidfile $PIDFILE_PROGRAM --name $PROGRAM RETVAL="$?" [ "$RETVAL" = 2 ] && return 2 rm -f $PIDFILE return "$RETVAL" } case "$1" in start) if test ! -f /etc/wfrog/settings.yaml -o ! -s /etc/wfrog/settings.yaml ; then log_warning_msg "Please call 'wfrog -S' to create the configuration file" else log_daemon_msg "Starting $DESC" "$NAME" do_start_program log_end_msg $? fi ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" do_stop_program log_end_msg $? ;; restart|force-reload) # # If the "reload" option is implemented then remove the # 'force-reload' alias # log_daemon_msg "Restarting $DESC" "$NAME" do_stop_program do_start_program log_end_msg $? ;; *) #echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 3 ;; esac : debian/changelog0000644000000000000000000000367212134722510011045 0ustar wfrog (0.8.2+svn953-1) unstable; urgency=low * prepared version to upload into Debian (Closes: #702376) - bump standards-version to 3.9.3 (no changes) - reformatted debian/copyright to DEP-5 - some corrections in debian/rules - created /etc/init.d/wfrog - do not ship LICENSE.txt (GPL-3) * ship empty /etc/wfrog/settings.yaml * update 0.8.2 to svn953 - it works with python2.7 - supports WH3080 and WS28xx - 7 days graphs in web page, more graphs - sqlite3 for storing weather data -- A Mennucc1 Tue, 05 Mar 2013 21:40:33 +0100 wfrog (0.8.2-1) maverick; urgency=low * * New template with date picker and tabs for charts and numerical data. Support for several TH sensors. Configuration files improved. Several fixes in station drivers and many small bugs fixed. * See http://code.google.com/p/wfrog/wiki/ReleaseNotes -- Jordi Puigsegur Figueras Sat, 18 Feb 2012 10:57:58 +0100 wfrog (0.8.1-1) unstable; urgency=low * Dramatically simplified the configuration by choosing the station in startup settings. Some fixes. * See http://code.google.com/p/wfrog/wiki/ReleaseNotes -- Laurent Bovet Tue, 22 Mar 2011 20:47:28 +0100 wfrog (0.8-1) UNRELEASED; urgency=low * Many fixes and improvements, added upload to wunderground, numerical data summary and improved support of WH1081-like and VantagePro stations. * See http://code.google.com/p/wfrog/wiki/ReleaseNotes -- Laurent Bovet Fri, 04 Mar 2011 21:47:06 +0100 wfrog (0.7-1) UNRELEASED; urgency=low * WMR200 driver, .deb packaging, better configurability, many small fixes and improvements. * See http://code.google.com/p/wfrog/wiki/ReleaseNotes -- Laurent Bovet Wed, 25 Aug 2010 21:57:37 +0200 wfrog (0.6-1) UNRELEASED; urgency=low * Initial release. -- Laurent Bovet Tue, 27 Jul 2010 23:28:30 +0200 debian/gbp.conf0000644000000000000000000000055012134722510010602 0ustar [DEFAULT] # this is the upstream-branch: upstream-branch=git-svn-dfsg [git-buildpackage] upstream-tag = wfrog-%(version)s # use a build area relative to the git repository export-dir=../build-area # to use the same build area for all packages use an absolute path: #export-dir=/home/debian-packages/build-area # postexport=../../trunk/debian/delete_blobs.sh debian/README.Debian0000644000000000000000000000131412134722510011223 0ustar The package ships an empty config file /etc/wfrog/settings.yaml , use # sudo wfrog -S to create a working configuration. After that, # sudo service wfrog start The weather data are accessible (by default) at the web page http://localhost:7680/ 'wfrog' by default saves weather data in /var/lib/wfrog/wfrog.csv , but only if that file is present: if you wish to, # sudo touch /var/lib/wfrog/wfrog.csv and restart 'wfrog' # sudo service wfrog restart (if you don't , you won't see nice graphs) 'wfrog' logs into /var/log/wfrog.log 'wfrog' is highly customizable, read the documentation at http://code.google.com/p/wfrog/wiki/CustomizationGuide -- A Mennucc , Tue, 5 Mar 2013 21:38:35 +0100 debian/docs0000644000000000000000000000000012134722510010024 0ustar debian/control0000644000000000000000000000247012134722510010571 0ustar Source: wfrog Section: science Priority: optional Maintainer: A Mennucc1 Build-Depends: debhelper (>= 7) Standards-Version: 3.9.3 Homepage: http://www.wfrog.org Package: wfrog Architecture: all Depends: python (>=2.5), python-yaml (>=3.0), python-cheetah (>=2.0), python-pygooglechart (>=0.2.0), python-lxml (>=1.1.1), python-usb (>=0.4), python-serial (>=2.3), ${misc:Depends} Description: Web-based customizable weather station software wfrog is a software for logging weather station data and statistics, viewing them graphically on the web and sending them to a remote FTP site. The layout and behaviour is fully customizable through an advanced configuration system. It is written in python with an extensible architecture allowing new station drivers to be written very easily. wfrog supports many weather stations and is compliant with the WESTEP protocol. Supported stations: * Ambient Weather WS1080 * Davis VantagePro, VantagePro2 * Elecsa AstroTouch 6975 * Fine Offset Electronics WH1080, WH1081, WH1090, WH1091, WH2080, WH2081, WH3080 * Freetec PX1117 * LaCrosse 2300 series, WS28xx (in progress) * Oregon Scientific WMR100N, WMR200, WMRS200, WMR928X * PCE FWS20 * Scientific Sales Pro Touch Screen Weather Station * Topcom National Geographic 265NE * Watson W8681 debian/source/0002755000000000000000000000000012134722510010465 5ustar debian/source/format0000644000000000000000000000001512134722510011672 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000001015012134722510011113 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: wfrog Upstream-Contact: Laurent Bovet Jordi Puigsegur Source: http://code.google.com/p/wfrog/downloads/list Comment: This work was inspired from the documentation from: . http://www.ejeklint.se/development/wmr100n-driver-for-mac-os-x/wmr100n-usb-protocol/ http://wmrx00.sourceforge.net/ (WMR100 weather logger project) http://www.netsky.org/WMR/Protocol.htm http://www.cs.stir.ac.uk/~kjt/software/comms/wmr928.html http://www.castro.aus.net/~maurice/weather/ . Thanks to all of them. Files: * Copyright: 2010 Laurent Bovet, 2010 Jordi Puigsegur License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. Files: debian/* Copyright: 2010 Laurent Bovet License: GPL-3+ As above Comment: This work was originally packaged for Debian by: Laurent Bovet on Tue, 27 Jul 2010 23:28:30 +0200 Files: wfdriver/station/ws28xx.py Copyright: 2012 Eddi De Pieri License: GPL-3+ As above Files: wfrender/renderer/webcolors.py Copyright: 2008-2009, James Bennett License: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the author nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Comment: This work contains code from: webcolors (http://bitbucket.org/ubernostrum/webcolors/overview/) Copyright (c) 2008-2009, James Bennett All rights reserved. Files: wfcommon/meteo.py Copyright: Steve Hatchett, SoftWx, Inc. License: This source code may be freely used, including for commercial purposes Comment: This work contains python code ported from: uWxUtils (http://www.softwx.com/weather/uwxutils.html) This source code may be freely used, including for commercial purposes Steve Hatchett, SoftWx, Inc. http://www.softwx.com/ debian/patches/0002755000000000000000000000000012134722510010614 5ustar debian/patches/series0000644000000000000000000000001012134722510012016 0ustar gendoc debian/patches/gendoc0000644000000000000000000000020012134722510011764 0ustar --- a/wfcommon/gendoc/gendoc.sh +++ b/wfcommon/gendoc/gendoc.sh @@ -1,4 +1,4 @@ - #!/bin/sh +#!/bin/bash WFROG_HOME=../../