On 20/01/13 10:39, Alessandro Grechi wrote:
> Hello,
> I'm trying to setup pywws on my Raspberry Pi with PCE-FWS 20 (which is a
> WH-1080).
> I follow guides and tutorials, but I get stuck on storing data from
> LogData in /weather/data folder.
>
> Link with the station seems good:
>
> pi@raspberrypi ~/weather/code $ sudo python TestWeatherStation.py
>
> 0000 55 aa 00 01 24 c0 00 4d 01 00 41 25 03 07 00 06 01 20 02 20
> 09 00 00 00 01 00 00 01 00 00 00 01
Your station's 'logging interval' is set to one minute. pywws assumes
values larger than this, typically 5 minutes. I don't know how well
pywws handles one minute logging.
> So, then LogData:
>
> pi@raspberrypi ~/weather/code $ python RunModule.py LogData -vvv
> /home/pi/weather/data
>
> 11:30:13:pywws.WeatherStation.CUSBDrive:using pywws.device_cython_hidapi
>
> 11:30:14:pywws.LogData:Computer and weather station clocks disagree
> by 0:10:00 (H:M:S).
>
> 11:30:14:pywws.LogData:Synchronising to weather station
>
> 11:30:14:pywws.weather_station:delay 0, pause 0.5
>
[snip]
>
> 11:32:00:pywws.weather_station:delay 0, pause 0.5
It looks as if your station isn't moving on to a new memory location.
pywws is waiting for a pointer change which never happens.
> And this is my weather.ini:
>
> [fixed]
>
> ws type = 1080
>
> station clock = None
>
> sensor clock = None
>
> pressure offset = 63.7
>
> fixed block = {'data_changed': 0, 'unknown_18': 0, 'timezone': 1,
> 'data_count': 1, 'min': {'hum_out': {'date': '2010-01-01 12:00',
> 'val': 79}, 'wind$
'data_count' is 1 - your station has no historical data to read. It's
definitely not incrementing the pointer.
Try resetting the base station - disconnect USB and pull out the
batteries, wait 10 or 20 seconds then put the batteries back in. Wait
for readings from the outside sensors to be displayed before operating
the touch screen or connecting to a computer.
--
Jim Easterbrook <
http://www.jim-easterbrook.me.uk/>