rwarren2 / fowsr

Automatically exported from code.google.com/p/fowsr
0 stars 1 forks source link

Double output? #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Small script:
***********
DATA=/tmp/WS.log #*(note - directory setting -n /tmp does not work, had to link 
/var/log/fowsr -> /tmp (openwrt device) using -n /tmp/%%S wont work good 
becouse the fowsr.dat isnt written)
while true
do
rm $DATA
fowsr -ff
{
read
while read line ;do
        echo $line
done }< $DATA
#ssh -T weather@192.168.0.101 -i ~/.ssh/id_rsa < $SQL
cat $SQL
echo "sleeping 60"
done
*********
output:
2014-01-02_18:41:00 WS 39.0 21.4 94.0 4.4 1006.3 4.4 5.4 180.0 76.3 00
sleeping 60
2014-01-02_18:42:00 WS 39.0 21.4 94.0 4.4 1006.3 4.4 5.4 180.0 76.3 00
2014-01-02_18:47:00 WS 39.0 21.4 94.0 4.4 1006.1 5.1 6.8 180.0 76.3 00
sleeping 60
2014-01-02_18:43:00 WS 39.0 21.4 94.0 4.4 1006.3 5.8 7.5 180.0 76.3 00
sleeping 60
2014-01-02_18:44:00 WS 39.0 21.4 94.0 4.4 1006.2 4.1 5.4 135.0 76.3 00
sleeping 60
2014-01-02_18:45:00 WS 39.0 21.4 94.0 4.4 1006.2 3.1 5.1 180.0 76.3 00
sleeping 60
2014-01-02_18:46:00 WS 39.0 21.4 94.0 4.4 1006.1 3.7 4.4 180.0 76.3 00
sleeping 60
2014-01-02_18:47:00 WS 39.0 21.4 94.0 4.4 1006.1 3.7 4.4 180.0 76.3 00
2014-01-02_18:52:00 WS 39.0 21.4 95.0 4.4 1006.2 3.7 5.1 135.0 76.3 00
sleeping 60
2014-01-02_18:48:00 WS 39.0 21.4 94.0 4.4 1006.1 4.4 5.4 180.0 76.3 00
sleeping 60

why are every 5:th minute entry double? and one of them 5minutes in future too. 
the single outputs displays correct time.

Thanks

Original issue reported on code.google.com by daniel.w...@gmail.com on 2 Jan 2014 at 6:57

GoogleCodeExporter commented 9 years ago
Please give a detailed description of your problem like mentioned in the 
template. I've at least the following questions:
1) what version of fowsr did you use?
2) How long ist the time interval in your weather station set?
3) the "n" option should be used in the described way:
   - specifiy full path and file name
   - no space
   - not "%%S" but "%%s"

Josch

Original comment by Josch600 on 9 Jan 2014 at 6:17

GoogleCodeExporter commented 9 years ago
closed because of insufficient informations

Original comment by Josch600 on 29 Mar 2014 at 9:05

GoogleCodeExporter commented 9 years ago
I see the same problem: some double entries with 5 minutes in future. The time 
interval is set to 5 minutes. (Lowest supported value last time I checked)

Original comment by b...@qqmail.nl on 10 Jun 2014 at 4:13