FOWSR fails to update

122 views
Skip to first unread message

Mario Agostini

unread,
Sep 23, 2013, 3:04:36 PM9/23/13
to fo...@googlegroups.com
I have a clone of Fine Offset  WH1080 and i'm trying to have it on line using FOWSR

I have a TP LINK WR703N as router and I have OPEN WRT on it. 

I set the station to d a 5 minutes upgrade by WATHERSNOOP, then I set FOWSR doing these thing:

In OPENWRT cron I wrote :

*/1 * * * * /usr/bin/wunderground.sh USER PASSWORD  (1 minute instead 5 minutes having not to wait 5 minutes evry time...)
but I have to ask (don't know the language) is right ... wunderground.sh USER PASSWORD or i heve to use */1 * * * * /usr/bin/wunderground.sh <USER> <PASSWORD> ?

Then i have verified what is in WUONDERGROUND.SH an it is:

#!/bin/sh

# Call fowsr and upload data to Wunderground

wsr="/usr/bin/fowsr -w"
LOG=/var/wunderground.log
ID=$1
PASSWORD=$2


WGET="$WGET?action=updateraw&ID=ID&PASSWORD=PASSWORD&"

rm -f $LOG
$wsr

while read line
do
  WGET2="$WGET`echo $line`"

  echo $WGET2
  wget -O /dev/null "$WGET2"
done < $LOG


I thought everything was right but nothing happens on my wunderground accoun so i veryfied fowsr -w and teh result is:

root@OpenWrt:/usr/bin# fowsr -w
00414764 | 52 40 8F 39 __ __ __ __ __ __ __ __ __ __ __ __ | R@?9
usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
USB error: could not get bound driver: No data available
usb_get_driver_np returned -61
00414760 | 52 40 8F 5F __ __ __ __ __ __ __ __ __ __ __ __ | R@?_
failed to release interface: 0
failed to close interface: 0


It looks like there is an error but if I use FOWSR -d I have teh statione value correctly red

root@OpenWrt:/usr/bin# fowsr -d
00414764 | 52 40 8F B1 __ __ __ __ __ __ __ __ __ __ __ __ | R@??
usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 006 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
USB error: could not get bound driver: No data available
usb_get_driver_np returned -61
read_period=5.0
units0=40.0
units_wind_speed=4.0
display_format0=3.0
display_format1=9.0
alarm_enable0=8.0
alarm_enable1=0.0
alarm_enable2=0.0
timezone=0.0
data_refreshed=2304.000
data_count=9.000
current_pos=384.000
rel_pressure=1016.800
abs_pressure=1009.700
date_time=2013-09-23 20:59
alarm.hum_in.hi=70.0
alarm.hum_in.lo=35.0
alarm.temp_in.hi=35.000
alarm.temp_in.lo=0.000
alarm.hum_out.hi=85.0
alarm.hum_out.lo=40.0
alarm.temp_out.hi=42.000
alarm.temp_out.lo=-8.000
alarm.windchill.hi=36.000
alarm.windchill.lo=-17.800
alarm.dewpoint.hi=-12.200
alarm.dewpoint.lo=-23.300
alarm.abs_pressure.hi=1040.000
alarm.abs_pressure.lo=960.000
alarm.rel_pressure.hi=1040.000
alarm.rel_pressure.lo=960.000
alarm.wind_ave.bft=3.0
alarm.wind_gust.bft=5.0
alarm.wind_dir=0.0
alarm.rain.hour=3.000
alarm.rain.day=150.000
alarm.time=12:00
max.hum_in.val=65.0
max.hum_in.date=2013-09-16 22:05
max.hum_out.val=99.0
max.hum_out.date=2013-08-20 02:37
max.temp_in.val=31.900
max.temp_in.date=2013-08-02 10:18
max.temp_out.val=42.000
max.temp_out.date=2013-07-30 14:42
max.windchill.val=42.000
max.windchill.date=2013-07-30 14:42
max.dewpoint.val=21.700
max.dewpoint.date=2013-07-30 10:24
max.abs_pressure.val=1015.800
max.abs_pressure.date=2013-09-22 10:18
max.rel_pressure.val=1022.900
max.rel_pressure.date=2013-09-22 10:18
max.wind_ave.val=9.500
max.wind_ave.date=2013-08-20 13:08
max.wind_gust.val=12.600
max.wind_gust.date=2013-08-20 12:36
max.rain.hour.val=96.300
max.rain.hour.date=2013-07-30 20:08
max.rain.day.val=103.500
max.rain.day.date=2013-07-30 20:08
max.rain.week.val=177.300
max.rain.week.date=2013-09-16 00:44
max.rain.month.val=288.000
max.rain.month.date=2013-09-12 06:12
max.rain.total.val=355.500
max.rain.total.date=2013-09-17 09:34
min.hum_in.val=33.0
min.hum_in.date=2013-08-02 09:29
min.hum_out.val=12.0
min.hum_out.date=2013-07-30 14:42
min.temp_in.val=21.400
min.temp_in.date=2013-09-16 12:17
min.temp_out.val=12.200
min.temp_out.date=2013-09-18 07:09
min.windchill.val=12.200
min.windchill.date=2013-09-18 07:09
min.dewpoint.val=6.200
min.dewpoint.date=2013-07-30 14:46
min.abs_pressure.val=990.800
min.abs_pressure.date=2013-09-17 06:18
min.rel_pressure.val=997.900
min.rel_pressure.date=2013-09-17 06:18
00414760 | 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ | ....
failed to release interface: 0
failed to close interface: 0




So I think the isuue is in the updating soft but I have no idea how to solve it, may you help me

Thanks very much to everybody and excuse for very bad english


Mario Agostini 

Mario Agostini

unread,
Sep 30, 2013, 4:27:52 PM9/30/13
to fo...@googlegroups.com
So, at the end it looks like I have success and I think that it is for the right wunderground.sh file 
these is the one that is working for me:

#!/bin/sh

# Call fowsr and upload data to Wunderground


wsr="/usr/bin/fowsr -w"

LOG=/tmp/wunderground.log
ID=$1
PASSWORD=$2

WGET="$WGET?action=updateraw&ID=$ID&PASSWORD=$PASSWORD&"

rm -f $LOG
$wsr
while read line
do
  WGET2="$WGET`echo $line | sed "s/ /%20/g"`"
    echo $WGET2
      wget -O /dev/null "$WGET2"
      done < $LOG

Mario

Josch

unread,
Oct 5, 2013, 6:03:37 PM10/5/13
to fo...@googlegroups.com
Hi Mario,

the current version 2.0.131005 should solve the problem with the spaces.

Josch
Reply all
Reply to author
Forward
0 new messages