Re: [weewx-user] Re: No data from station

2017-04-05 Thread Cameron D


On Friday, 10 March 2017 21:58:21 UTC+10, Ruben Navarro Huedo wrote:
>
>
>
> In another vein: Have we some more information about clearing console 
> datalogger from weewx
>

Well, it's nearly a month now,  and I still cannot reply in the positive.

I have posted the command sequence to the development mailing list, but, 
when I tried to implement it in the weewx driver on a buffer 70 to 80% 
full, the console has ignored me.

Other bits I have since found:

   - the console will not clear the buffer (even for the Windows s/w) when 
   it is very low (I do not know the lower limit)
   - The windows s/w has cleared the buffer from completely full (0x7fe0) , 
   as well as the high byte being 0x33 and 0x6e

Now that I have used Windows s/w to clear the buffer, I am going to have to 
repeatedly test that until I know how small a buffer will clear.
Then I will have to wait for it to build up again to try with the weewx 
code.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-03-10 Thread Ruben Navarro Huedo
Hello wmr300 friends.
I want add a second wireless transmiter to my wmr300.
I will use :
One transmitter (Oregon *STC300)* using channel 1 for: Temp, Humid and Rain
Another transmitter (Also STC300) using channel 2 for: Wind
I need to read all this sensors like one only weather station.
WMR-300 console is reading it correctly (after adding channel 2), but 
wee_wx doesn't "read" wind information.
Can i do this with weewx?
How?

In another vein: Have we some more information about clearing console 
datalogger from weewx?

Thank's a lot.

El viernes, 24 de febrero de 2017, 18:48:16 (UTC+1), Ruben Navarro Huedo 
escribió:
>
> This could be a GREAT new addon !
>
> El viernes, 24 de febrero de 2017, 1:18:26 (UTC+1), Cameron D escribió:
>>
>> I have the captures of the windows software clearing the log, but have 
>> not yet had time to analyse them.
>>
>> On Friday, 24 February 2017 01:55:18 UTC+10, mwall wrote:
>>>
>>>
>>> if the logger is full, then you will 'lose' data.  apparently the wmr300 
>>> logger must be cleared by punching buttons on the console.  if someone 
>>> knows of software that can clear the logger, please let us know so we can 
>>> implement this in weewx.
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-24 Thread Ruben Navarro Huedo
This could be a GREAT new addon !

El viernes, 24 de febrero de 2017, 1:18:26 (UTC+1), Cameron D escribió:
>
> I have the captures of the windows software clearing the log, but have not 
> yet had time to analyse them.
>
> On Friday, 24 February 2017 01:55:18 UTC+10, mwall wrote:
>>
>>
>> if the logger is full, then you will 'lose' data.  apparently the wmr300 
>> logger must be cleared by punching buttons on the console.  if someone 
>> knows of software that can clear the logger, please let us know so we can 
>> implement this in weewx.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-23 Thread Cameron D
I have the captures of the windows software clearing the log, but have not 
yet had time to analyse them.

On Friday, 24 February 2017 01:55:18 UTC+10, mwall wrote:
>
>
> if the logger is full, then you will 'lose' data.  apparently the wmr300 
> logger must be cleared by punching buttons on the console.  if someone 
> knows of software that can clear the logger, please let us know so we can 
> implement this in weewx.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-23 Thread Ruben Navarro Huedo
I understand.
Problem was logger is FULL.


El jueves, 23 de febrero de 2017, 16:55:18 (UTC+1), mwall escribió:
>
> On Thursday, February 23, 2017 at 10:47:22 AM UTC-5, Ruben Navarro Huedo 
> wrote:
>>
>> Running now fine with last driver.
>> I has readed data from the datalogger from the wmr-300 installation.
>> This is OK, but if i disconnect it some time (for example 30 minutes) 
>> after starting weewx it begins to log real time data but looses these 30 
>> minutes.
>> Is this Ok?
>>
>
> if the logger is full, then you will 'lose' data.  apparently the wmr300 
> logger must be cleared by punching buttons on the console.  if someone 
> knows of software that can clear the logger, please let us know so we can 
> implement this in weewx.
>
> if the logger is not full, then it should continue to capture data during 
> the 30 minutes that weewx is not running.  when you start weewx, it should 
> read data from the logger.
>
> of course, if the logger's archive interval is set to 30 minutes, then you 
> might be 'losing' data because you sampled just less than 30 minutes.
>
> in any case, the weewx log will tell you how many records it retrieved 
> from the logger.
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-23 Thread mwall
On Thursday, February 23, 2017 at 10:47:22 AM UTC-5, Ruben Navarro Huedo 
wrote:
>
> Running now fine with last driver.
> I has readed data from the datalogger from the wmr-300 installation.
> This is OK, but if i disconnect it some time (for example 30 minutes) 
> after starting weewx it begins to log real time data but looses these 30 
> minutes.
> Is this Ok?
>

if the logger is full, then you will 'lose' data.  apparently the wmr300 
logger must be cleared by punching buttons on the console.  if someone 
knows of software that can clear the logger, please let us know so we can 
implement this in weewx.

if the logger is not full, then it should continue to capture data during 
the 30 minutes that weewx is not running.  when you start weewx, it should 
read data from the logger.

of course, if the logger's archive interval is set to 30 minutes, then you 
might be 'losing' data because you sampled just less than 30 minutes.

in any case, the weewx log will tell you how many records it retrieved from 
the logger.
m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-23 Thread Ruben Navarro Huedo
Running now fine with last driver.
I has readed data from the datalogger from the wmr-300 installation.
This is OK, but if i disconnect it some time (for example 30 minutes) after 
starting weewx it begins to log real time data but looses these 30 minutes.
Is this Ok?

A lot of thank's

El jueves, 23 de febrero de 2017, 8:41:22 (UTC+1), Ruben Navarro Huedo 
escribió:
>
> Excuse me it was an human error.
> We didn't update driver.
> After updating to last driver all is 100% fine.
>
> Thank's a lot.
>
> El jueves, 23 de febrero de 2017, 3:55:22 (UTC+1), Cameron D escribió:
>>
>>
>>
>> On Thursday, 23 February 2017 04:53:00 UTC+10, Ruben Navarro Huedo wrote:
>>>
>>>
>>> My stations has been running 40 days and data has nos been transfered to 
>>> PC.
>>> It is connected to a raspberry pi
>>>
>>
>> "nos"? did you mean "now" or "not"?
>>
>> What is the logging interval set on the WRM300 console?  at 1 minute you 
>> get fewer than 30 days storage then it stops recording.
>> If it is full, it does not discard old log data but stops recording new 
>> results.
>>
>> view the monthly or yearly summary and see what is recorded. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-22 Thread Ruben Navarro Huedo
Excuse me it was an human error.
We didn't update driver.
After updating to last driver all is 100% fine.

Thank's a lot.

El jueves, 23 de febrero de 2017, 3:55:22 (UTC+1), Cameron D escribió:
>
>
>
> On Thursday, 23 February 2017 04:53:00 UTC+10, Ruben Navarro Huedo wrote:
>>
>>
>> My stations has been running 40 days and data has nos been transfered to 
>> PC.
>> It is connected to a raspberry pi
>>
>
> "nos"? did you mean "now" or "not"?
>
> What is the logging interval set on the WRM300 console?  at 1 minute you 
> get fewer than 30 days storage then it stops recording.
> If it is full, it does not discard old log data but stops recording new 
> results.
>
> view the monthly or yearly summary and see what is recorded. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-22 Thread Cameron D


On Thursday, 23 February 2017 04:53:00 UTC+10, Ruben Navarro Huedo wrote:
>
>
> My stations has been running 40 days and data has nos been transfered to 
> PC.
> It is connected to a raspberry pi
>

"nos"? did you mean "now" or "not"?

What is the logging interval set on the WRM300 console?  at 1 minute you 
get fewer than 30 days storage then it stops recording.
If it is full, it does not discard old log data but stops recording new 
results.

view the monthly or yearly summary and see what is recorded. 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-22 Thread mwall


On Wednesday, February 22, 2017 at 1:53:00 PM UTC-5, Ruben Navarro Huedo 
wrote:
>
> A lot of thank's
>
> My stations has been running 40 days and data has nos been transfered to 
> PC.
>

40 days?

which version of the wmr300 driver are you running?
 

> Weewx has detected ok wmr300 but it is reading records.
> I can only read on log: "reading records since *NA**
>
> Is this ok?
> how many time could it take?
>

if the logger is full it could take a few hours.  the driver will update 
the log periodically as it reads from the logger.
 
set debug=1 in weewx.conf then post the log from just before you start 
weewx until after the first archive record.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-22 Thread Ruben Navarro Huedo
A lot of thank's

My stations has been running 40 days and data has nos been transfered to PC.
It is connected to a raspberry pi3

Weewx has detected ok wmr300 but it is reading records.
I can only read on log: "reading records since *NA**

Is this ok?
how many time could it take?

Thank's a lot.

El sábado, 18 de febrero de 2017, 20:04:09 (UTC+1), Miguel Iniesta escribió:
>
> Hi m,
>
> This last version works fine. Previous version as well.
> I've found out the error is caused by a usb cable.
> It is a usb 2.0 cable which works fine with other devices. 
> Quite strange.
>
> Thank you for your support.
>
>  
>
>> On Sunday, February 12, 2017 at 7:53:50 PM UTC+1, mwall wrote:
>>>
>>> miguel,
>>>
>>> please try the attached wmr300-0.18rc4.py
>>>
>>> m
>>>  
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-18 Thread Miguel Iniesta
Hi m,

This last version works fine. Previous version as well.
I've found out the error is caused by a usb cable.
It is a usb 2.0 cable which works fine with other devices. 
Quite strange.

Thank you for your support.

 

> On Sunday, February 12, 2017 at 7:53:50 PM UTC+1, mwall wrote:
>>
>> miguel,
>>
>> please try the attached wmr300-0.18rc4.py
>>
>> m
>>  
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-15 Thread Alberto Sánchez
Hi mwall,

I have tested your last driver and It seems to work well.

Thanks.

El 15 feb. 2017 3:34 AM, "Cameron D"  escribió:

> Hi MWall,
> The legacy pyusb interface used in the current wmr300 driver only talks to
> libusb0, as far as I can tell.
> Using the pyusb 1.0 interface I can specify which version of libusb to use
> or tell which one is called by default.  I have put that code in my
> "wmr300c" driver. I mainly use libusb1 and it seems reasonably robust.
>
> The only problem I have found since November was when I used the windows
> software to clear the history and restarted weewx with very few, if any,
> records in the history. I seem to have an off-by-one or two issue.
>
> The firmware of the wmr300 leaves a lot to be desired. There seems to be
> only one way to do anything and if you deviate from the path you are in
> trouble.
>
> I previously promised to check the rain counter filling, but, having seen
> how little control is available from the PC in other aspects, I an sure
> there will be no way to remotely clear it.
> The fact that I broke my wind vane shaft while having the system
> temporarily mounted on the ground encouraged me to get it out of my reach
> and fixed up on the roof.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-14 Thread Cameron D
Hi MWall,
The legacy pyusb interface used in the current wmr300 driver only talks to 
libusb0, as far as I can tell.
Using the pyusb 1.0 interface I can specify which version of libusb to use 
or tell which one is called by default.  I have put that code in my 
"wmr300c" driver. I mainly use libusb1 and it seems reasonably robust.

The only problem I have found since November was when I used the windows 
software to clear the history and restarted weewx with very few, if any, 
records in the history. I seem to have an off-by-one or two issue.

The firmware of the wmr300 leaves a lot to be desired. There seems to be 
only one way to do anything and if you deviate from the path you are in 
trouble.

I previously promised to check the rain counter filling, but, having seen 
how little control is available from the PC in other aspects, I an sure 
there will be no way to remotely clear it.
The fact that I broke my wind vane shaft while having the system 
temporarily mounted on the ground encouraged me to get it out of my reach 
and fixed up on the roof.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-14 Thread mwall
On Tuesday, February 14, 2017 at 8:08:15 PM UTC-5, Cameron D wrote:
>
> On Monday, 13 February 2017 03:26:27 UTC+10, Miguel Iniesta wrote:
>>
>> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
>> e.strerror=None e.message=could not detach kernel driver from interface 0: 
>> No data available repr=USBError('could not detach kernel driver from 
>> interface 0: No data available',)
>> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
>> e.strerror=None e.message=could not detach kernel driver from interface 0: 
>> No data available repr=USBError('could not detach kernel driver from 
>> interface 0: No data available',)
>> ...
>>
>
>
> This is  actually an error in libusb0.  From my testing, the error message 
>  about "could not detach..." is never cleared from the error  string buffer 
> because the condition "no data available" is not regarded as an error 
> condition at some level.
>

agreed - i have seen this behavior with many different usb devices, not 
just the wmr300.  instead of returning an empty buffer, libusb0 raises an 
'error' that simply says 'no data available'.  btw, 'no data available' is 
a localized string in libusb, and the pyusb bindings do not provide a code 
to distinguish the type.

i am pretty sure that not every version of libusb behaves this way.  even 
more problematic is that there is no way to know the libusb version from 
python (at least for older versions of pyusb), even if someone figured out 
exactly which versions of libusb have this behavior and which do not.

as i understand it, the algorithm for wmr300:

- must not fail on 'no data available' "errors",
- must not fail on the first usb timeout,
- must fail on any usb timeouts after communication has been established,
- must fail on other usb errors

it must do this with every libusb version, or we need to figure out which 
libusb version(s) are immune to this and only support those.

 

> The first time you run weewx after plugging the USB device in, the kernel 
> automatically attaches it (at least it does on my system) and the weewx 
> driver has to detach it to access it in a different mode.
> The next time (and subsequent times) weewx is run, the detach operation 
> fails because it is no longer attached. This is OK, except for the spurious 
> error message. 
>
> You *should* still be getting data occasionally - if not then the wmr300 
> console has gotten itself tied up in knots and you need to disconnect the 
> USB and start again.
>

when the firmware is wedged, there is not much we can do.

it would be nice if there were a way to re-establish the communication with 
the wmr300 *without* having to unplug/replug the usb.  usb reset does not 
do it.  hubs with power control could be an option, but then the weather 
station must have no batteries, must be bus-powered, and must retain logger 
data through a power cycle.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-14 Thread Cameron D


On Monday, 13 February 2017 03:26:27 UTC+10, Miguel Iniesta wrote:
>
>
> Hi m,
>
> This is the new error message (twice per second):
>
> weewx.service - LSB: weewx weather system
>Loaded: loaded (/etc/init.d/weewx)
>Active: active (running) since dom 2017-02-12 18:17:30 CET; 3min 10s ago
>   Process: 4043 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=0/SUCCESS)
>CGroup: /system.slice/weewx.service
>└─4058 /usr/bin/python /home/weewx/bin/weewxd --daemon 
> --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf
>
> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from 
> interface 0: No data available',)
> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from 
> interface 0: No data available',)
> ...
>


This is  actually an error in libusb0.  From my testing, the error message 
 about "could not detach..." is never cleared from the error  string buffer 
because the condition "no data available" is not regarded as an error 
condition at some level.
The first time you run weewx after plugging the USB device in, the kernel 
automatically attaches it (at least it does on my system) and the weewx 
driver has to detach it to access it in a different mode.
The next time (and subsequent times) weewx is run, the detach operation 
fails because it is no longer attached. This is OK, except for the spurious 
error message. 

You *should* still be getting data occasionally - if not then the wmr300 
console has gotten itself tied up in knots and you need to disconnect the 
USB and start again.

Try: 

   1. stop weewx
   2. unplug USB, wait 5 sec, reconnect USB.
   3. restart weewx.
   
this should fix both the error message and the no data condition.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-13 Thread Miguel Iniesta
Hi m,

Don't have access to the station at weekdays. Hope I can do it next weekend.
Also on another computer to discard a raspi problem.

Thanks.

On Sunday, February 12, 2017 at 7:53:50 PM UTC+1, mwall wrote:
>
> miguel,
>
> please try the attached wmr300-0.18rc4.py
>
> m
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-12 Thread mwall
On Sunday, February 12, 2017 at 12:26:27 PM UTC-5, Miguel Iniesta wrote:
>
> This is the new error message (twice per second):
>
> weewx.service - LSB: weewx weather system
>Loaded: loaded (/etc/init.d/weewx)
>Active: active (running) since dom 2017-02-12 18:17:30 CET; 3min 10s ago
>   Process: 4043 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=0/SUCCESS)
>CGroup: /system.slice/weewx.service
>└─4058 /usr/bin/python /home/weewx/bin/weewxd --daemon 
> --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf
>
> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from 
> interface 0: No data available',)
> feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from 
> interface 0: No data available',)
>

miguel,

please try the attached wmr300-0.18rc4.py

m
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/usr/bin/env python
# Copyright 2015 Matthew Wall
# See the file LICENSE.txt for your rights.
#
# Credits:
# Thanks to Benji for the identification and decoding of 7 packet types
#
# Thanks to Eric G for posting USB captures and providing hardware for testing
#   https://groups.google.com/forum/#!topic/weewx-development/5R1ahy2NFsk
#
# Thanks to Zahlii
#   https://bsweather.myworkbook.de/category/weather-software/
#
# No thanks to oregon scientific - repeated requests for hardware and/or
# specifications resulted in no response at all.

# TODO: figure out battery level for each sensor
# TODO: figure out signal strength for each sensor
# TODO: figure out archive interval

# FIXME: figure out unknown bytes in history packet

# FIXME: decode the 0xdb packets

# FIXME: the read/write logic is rather brittle.  it appears that communication
# must be initiated with an interrupt write.  after that, the station will
# spew data.  this implementation starts with a read, which will fail with
# a 'No data available' usb error.  that results in an empty buffer (instead
# of an exception popping up the stack) so that a heartbeat write is sent.
# the genLoopPacket and genStartupRecords logic should be refactored to make
# this behiavor explicit.

# FIXME: deal with initial usb timeout when starting usb communications

# FIXME: warn if altitude in pressure packet does not match weewx altitude

"""Driver for Oregon Scientific WMR300 weather stations.

Sensor data transmission frequencies:
  wind: 2.5 to 3 seconds
TH: 10 to 12 seconds
  rain: 20 to 24 seconds

The station supports 1 wind, 1 rain, 1 UV, and up to 8 temperature/humidity
sensors.

Sniffing USB traffic shows all communication is interrupt.  The endpoint
descriptors for the device show this as well.  Response timing is 1.

The station ships with "Weather OS PRO" software for windows.  This was used
for the USB sniffing.

Internal observation names use the convention name_with_specifier.  These are
mapped to the wview or other schema as needed with a configuration setting.
For example, for the wview schema, wind_speed maps to windSpeed, temperature_0
maps to inTemp, and humidity_1 maps to outHumidity.

Maximum value for rain counter is 400 in (10160 mm) (4 = 0x9c 0x40).  The
counter does not wrap; it must be reset when it hits maximum value otherwise
rain data will not be recorded.


Message types -

packet types from station:
57 - station type/model; history count
41 - ACK
D2 - history; 128 bytes
D3 - temperature/humidity/dewpoint; 61 bytes
D4 - wind; 54 bytes
D5 - rain; 40 bytes
D6 - pressure; 46 bytes
DB - forecast; 32 bytes
DC - temperature/humidity ranges; 62 bytes

packet types from host:
A6 - heartbeat
41 - ACK
65 - ? each of these is ack-ed by the station
cd - ? start history request? last two bytes are one after most recent read
35 - ? finish history request? last two bytes are latest record count
72 - ?
73 - ?

notes:
WOP sends A6 message every 20 seconds
WOP requests history at startup, then again every 120 minutes
each A6 is followed by a 57 from the station
each data packet D* from the station is followed by an ack packet 41 from host
D2 (history) records are recorded every minute
D6 (pressure) packets seem to come every 15 minutes (900 seconds)
4,5 of 7x match 12,13 of 57


Message field decodings ---

Values are stored in 1 to 3 bytes in big endian order.  Negative numbers are
stored as Two's Complement (if the first byte starts with F it is a negative
number).

Re: [weewx-user] Re: No data from station

2017-02-12 Thread Miguel Iniesta

Hi m,

This is the new error message (twice per second):

weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (running) since dom 2017-02-12 18:17:30 CET; 3min 10s ago
  Process: 4043 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/weewx.service
   └─4058 /usr/bin/python /home/weewx/bin/weewxd --daemon 
--pidfile=/var/run/weewx.pid /home/weewx/weewx.conf

feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from 
interface 0: No data available',)
feb 12 18:20:39 raspberrypi weewx[4058]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from 
interface 0: No data available',)
...

Thanks

On Sunday, February 12, 2017 at 4:40:41 PM UTC+1, mwall wrote:
>
>
> miguel,
>
> please turn on debug.  in weewx.conf:
>
> debug=1
> ...
> [WMR300]
> debug_comm = 1
> debug_history = 1
> ...
>
> then start weewx
>
> m
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-12 Thread mwall


On Sunday, February 12, 2017 at 5:23:54 AM UTC-5, Miguel Iniesta wrote:
>
> Hi m,
>
> After that line, there is nothing else in the log related to weewx: No 
> errors or any activity recorded.
> At that moment, there was just 5 hours of data to read because, as I could 
> not find any error message, I thought it was a station problem so I deleted 
> the station's data log records.
> A restart has not solved the problem.
>

miguel,

please turn on debug.  in weewx.conf:

debug=1
...
[WMR300]
debug_comm = 1
debug_history = 1
...

then start weewx

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-12 Thread Miguel Iniesta
Hi m,

After that line, there is nothing else in the log related to weewx: No 
errors or any activity recorded.
At that moment, there was just 5 hours of data to read because, as I could 
not find any error message, I thought it was a station problem so I deleted 
the station's data log records.
A restart has not solved the problem.
Please, find attached full log since restart. It may help.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Feb 12 10:28:59 raspberrypi rsyslogd: [origin software="rsyslogd" 
swVersion="8.4.2" x-pid="402" x-info="http://www.rsyslog.com";] start
Feb 12 10:28:59 raspberrypi systemd-modules-load[108]: Inserted module 'i2c_dev'
Feb 12 10:28:59 raspberrypi systemd[1]: Mounted Configuration File System.
Feb 12 10:28:59 raspberrypi systemd[1]: Started Apply Kernel Variables.
Feb 12 10:28:59 raspberrypi systemd[1]: Started Create Static Device Nodes in 
/dev.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting udev Kernel Device Manager...
Feb 12 10:28:59 raspberrypi systemd-fsck[119]: e2fsck 1.42.12 (29-Aug-2014)
Feb 12 10:28:59 raspberrypi systemd-fsck[119]: /dev/mmcblk0p2: clean, 
37302/483840 files, 317807/1942528 blocks
Feb 12 10:28:59 raspberrypi systemd[1]: Started udev Kernel Device Manager.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Copy rules generated while the 
root was ro...
Feb 12 10:28:59 raspberrypi systemd[1]: Starting LSB: Set preliminary keymap...
Feb 12 10:28:59 raspberrypi systemd[1]: Started Copy rules generated while the 
root was ro.
Feb 12 10:28:59 raspberrypi systemd[1]: Found device /dev/ttyAMA0.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Sound Card.
Feb 12 10:28:59 raspberrypi systemd[1]: Reached target Sound Card.
Feb 12 10:28:59 raspberrypi systemd[1]: Found device /dev/mmcblk0p1.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting File System Check on 
/dev/mmcblk0p1...
Feb 12 10:28:59 raspberrypi systemd-fsck[209]: fsck.fat 3.0.27 (2014-11-12)
Feb 12 10:28:59 raspberrypi systemd-fsck[209]: /dev/mmcblk0p1: 121 files, 
2663/8057 clusters
Feb 12 10:28:59 raspberrypi systemd[1]: Started File System Check on 
/dev/mmcblk0p1.
Feb 12 10:28:59 raspberrypi keyboard-setup[145]: Setting preliminary 
keymap...done.
Feb 12 10:28:59 raspberrypi systemd[1]: Started LSB: Set preliminary keymap.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Show Plymouth Boot Screen...
Feb 12 10:28:59 raspberrypi kernel: [0.00] Booting Linux on physical 
CPU 0xf00
Feb 12 10:28:59 raspberrypi kernel: [0.00] Initializing cgroup subsys 
cpuset
Feb 12 10:28:59 raspberrypi kernel: [0.00] Initializing cgroup subsys 
cpu
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Remount Root and Kernel File 
Systems...
Feb 12 10:28:59 raspberrypi kernel: [0.00] Initializing cgroup subsys 
cpuacct
Feb 12 10:28:59 raspberrypi kernel: [0.00] Linux version 4.4.38-v7+ 
(dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG 
crosstool-ng-1.22.0-88-g8460611) ) #938 SMP Thu Dec 15 15:22:21 GMT 2016
Feb 12 10:28:59 raspberrypi kernel: [0.00] CPU: ARMv7 Processor 
[410fc075] revision 5 (ARMv7), cr=10c5387d
Feb 12 10:28:59 raspberrypi systemd[1]: Started Remount Root and Kernel File 
Systems.
Feb 12 10:28:59 raspberrypi kernel: [0.00] CPU: PIPT / VIPT nonaliasing 
data cache, VIPT aliasing instruction cache
Feb 12 10:28:59 raspberrypi kernel: [0.00] Machine model: Raspberry Pi 
2 Model B Rev 1.1
Feb 12 10:28:59 raspberrypi kernel: [0.00] cma: Reserved 8 MiB at 
0x3a80
Feb 12 10:28:59 raspberrypi systemd[1]: Received SIGRTMIN+20 from PID 224 
(plymouthd).
Feb 12 10:28:59 raspberrypi systemd[1]: Started Show Plymouth Boot Screen.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Forward Password Requests to 
Plymouth Directory Watch.
Feb 12 10:28:59 raspberrypi systemd[1]: Started Forward Password Requests to 
Plymouth Directory Watch.
Feb 12 10:28:59 raspberrypi systemd[1]: Started Dispatch Password Requests to 
Console Directory Watch.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Paths.
Feb 12 10:28:59 raspberrypi systemd[1]: Reached target Paths.
Feb 12 10:28:59 raspberrypi systemd[1]: Started Various fixups to make systemd 
work better on Debian.
Feb 12 10:28:59 raspberrypi systemd[1]: Starting Local File Systems (Pre).
Feb 12 10:28:59 raspberrypi systemd[1]: Reached target Local File Systems (Pre).
Feb 12 10:28:59 raspberrypi systemd[1]: Mounting /var/log...
Feb 12 10:28:59 raspberrypi systemd[1]: var-log.mount: Directory /var/log to 
mount over is not empty, mounting anyway.
Feb 12 10:28:59 raspberrypi systemd[1]: Mounting /var/tmp...
Feb 12 10:28:59 raspberrypi systemd[1]: Mounting /boot...
Feb 12 10:28:59 raspberrypi systemd[1]: Mounting /tmp...
Feb 12 10:28:59 raspberrypi systemd[1]

Re: [weewx-user] Re: No data from station

2017-02-11 Thread mwall


On Saturday, February 11, 2017 at 1:46:27 PM UTC-5, Miguel Iniesta wrote:
>
> Hello,
>
> I am testing the new versions and unfortunately they do not work for me.
> No data from the station but also no error message it seems.
>
> Any help please?
>

miguel,

the portion of the log that you posted looks fine - the last line shows 
that weewx is reading records from the logger.

if the 'running since' time can be trusted, then the driver only has to 
read about 5 hours of data.  even if the archive interval is 1 minute, that 
should not take too long, even on an old rpi.

what happens when you wait?

m 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-11 Thread Alberto Sánchez
I believe that I had the same problem the first time I tested that driver.
I solved it simply restarting raspbian.

El 11 feb. 2017 19:46, "Miguel Iniesta"  escribió:

> Hello,
>
> I am testing the new versions and unfortunately they do not work for me.
> No data from the station but also no error message it seems.
>
> Any help please?
> Thanks
>
>
> Linux raspberrypi 4.4.38-v7+ #938
>
> libusb-0.1-4:armhf 2:0.1.12-25
> libusb-1.0-0:armhf 2:1.0.19-1
> python-usb 0.4.3-1
>
> weewx version 3.6.2
> DRIVER_NAME = 'WMR300'
> DRIVER_VERSION = '0.18rc3'
>
> weewx.service - LSB: weewx weather system
>Loaded: loaded (/etc/init.d/weewx)
>Active: active (running) since sáb 2017-02-11 19:12:08 CET; 17min ago
>   Process: 12145 ExecStart=/etc/init.d/weewx start (code=exited,
> status=0/SUCCESS)
>CGroup: /system.slice/weewx.service
>└─12160 /usr/bin/python /home/weewx/bin/weewxd --daemon
> --pidfile=/var/run/weewx.pid /home/weewx/weewx
>
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Loading service
> weewx.restx.StdAWEKAS
> feb 11 19:12:09 raspberrypi weewx[12160]: restx: AWEKAS: Posting not
> enabled.
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Finished loading service
> weewx.restx.StdAWEKAS
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Loading service
> weewx.engine.StdPrint
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Finished loading service
> weewx.engine.StdPrint
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Loading service
> weewx.engine.StdReport
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Finished loading service
> weewx.engine.StdReport
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Starting up weewx
> version 3.6.2
> feb 11 19:12:09 raspberrypi weewx[12160]: engine: Station does not support
> reading the time
> feb 11 19:12:09 raspberrypi weewx[12160]: wmr300: reading records since
> 2017-02-11 14:20:00 CET (1486819200)
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-11 Thread Miguel Iniesta
Hello,

I am testing the new versions and unfortunately they do not work for me.
No data from the station but also no error message it seems.

Any help please?
Thanks


Linux raspberrypi 4.4.38-v7+ #938

libusb-0.1-4:armhf 2:0.1.12-25
libusb-1.0-0:armhf 2:1.0.19-1
python-usb 0.4.3-1 

weewx version 3.6.2
DRIVER_NAME = 'WMR300'
DRIVER_VERSION = '0.18rc3'

weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (running) since sáb 2017-02-11 19:12:08 CET; 17min ago
  Process: 12145 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/weewx.service
   └─12160 /usr/bin/python /home/weewx/bin/weewxd --daemon 
--pidfile=/var/run/weewx.pid /home/weewx/weewx

feb 11 19:12:09 raspberrypi weewx[12160]: engine: Loading service 
weewx.restx.StdAWEKAS
feb 11 19:12:09 raspberrypi weewx[12160]: restx: AWEKAS: Posting not 
enabled.
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Finished loading service 
weewx.restx.StdAWEKAS
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Loading service 
weewx.engine.StdPrint
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Finished loading service 
weewx.engine.StdPrint
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Loading service 
weewx.engine.StdReport
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Finished loading service 
weewx.engine.StdReport
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Starting up weewx version 
3.6.2
feb 11 19:12:09 raspberrypi weewx[12160]: engine: Station does not support 
reading the time
feb 11 19:12:09 raspberrypi weewx[12160]: wmr300: reading records since 
2017-02-11 14:20:00 CET (1486819200)

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-06 Thread Alberto Sánchez
0.18rc3 seems to work correctly.

Thank you very much mwall!! 

El domingo, 5 de febrero de 2017, 15:35:34 (UTC+1), mwall escribió:
>
> the 0.18rc3 driver *should* handle the 'no data available' and 'no error' 
> conditions properly for english, italian, german, french, and spanish 
> locales.
>
> it does not yet handle timeouts properly.  ideally it would recognize and 
> ignore timeouts on the initial communication, then recognize and fail on 
> timeouts after communication has been established.
>
> so if you experience timeout failures using the 0.18 driver, please post 
> the exceptions!
>
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-05 Thread Alberto Sánchez

>
> ii  libusb-0.1-4:armhf  2:0.1.12-25   
> armhfuserspace USB programming library
> ii  libusb-1.0-0:armhf  2:1.0.19-1 
>armhfuserspace USB programming library
> ii  libusbmuxd2:armhf   1.0.9-1   
> armhfUSB multiplexor daemon for iPhone and iPod Touch 
> devices - library
> ii  python-usb  0.4.3-1   
> armhfUSB interface for Python
> ii  usb-modeswitch  2.2.0+repack0-2   
> armhfmode switching tool for controlling "flip flop" 
> USB devices
> ii  usb-modeswitch-data 20150115-1 
>all  mode switching data for usb-modeswitch
> ii  usbutils1:007-2   
> armhfLinux USB utilities
>
>
>
> RPi3B
Raspbian jessie with Pixel 

Weewx doesn't restart after these messages and these messages happen all 
the time. I am going to test rc3 driver and I will set debug to 0.

thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-05 Thread mwall
the 0.18rc3 driver *should* handle the 'no data available' and 'no error' 
conditions properly for english, italian, german, french, and spanish 
locales.

it does not yet handle timeouts properly.  ideally it would recognize and 
ignore timeouts on the initial communication, then recognize and fail on 
timeouts after communication has been established.

so if you experience timeout failures using the 0.18 driver, please post 
the exceptions!

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-05 Thread mwall
On Sunday, February 5, 2017 at 7:34:02 AM UTC-5, Alberto Sánchez wrote:
>
> Hi mwall,
>
> I am testing your new WMR300 drivers. 0,18rc2. It collects me data 
> correctly but reports me this error:
>
> Feb 05 13:29:16 raspberrypi weewx[1369]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from...ata 
> available',)
> Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from...ata 
> available',)
> Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from...ata 
> available',)
> Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from...ata 
> available',)
> Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
> e.strerror=None e.message=could not detach kernel driver from interface 0: 
> No data available repr=USBError('could not detach kernel driver from...ata 
> available',)
>
>
> Thank you very  much.
>

hi alberto!

does weewx restart itself after any of these messages?

do these messages happen all the time, or just for short periods?

what is your hardware, operating system, libusb, and pyusb versions?

those are debug messages and in this case, they are not failures.  for some 
reason, some versions of libusb/pyusb report 'could not detach kernel 
driver' when there is simply no data on the usb.

to eliminate the messages, you could just set debug=0 in weewx conf then 
restart weewx.

or try wmr300 version 0.18rc3 - i made the driver less chatty:

https://raw.githubusercontent.com/weewx/weewx/development/bin/weewx/drivers/wmr300.py

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2017-02-05 Thread Alberto Sánchez
Hi mwall,

I am testing your new WMR300 drivers. 0,18rc2. It collects me data 
correctly but reports me this error:

Feb 05 13:29:16 raspberrypi weewx[1369]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from...ata 
available',)
Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from...ata 
available',)
Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from...ata 
available',)
Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from...ata 
available',)
Feb 05 13:29:17 raspberrypi weewx[1369]: wmr300: e.errno=None 
e.strerror=None e.message=could not detach kernel driver from interface 0: 
No data available repr=USBError('could not detach kernel driver from...ata 
available',)


Thank you very  much.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-26 Thread Cameron D
Michael,
The code labelled wmr300c is my test driver to try to understand the
timeout issues.  It should work with the "A" model as well as the euro
model hardware wmr300.

You can copy it in alongside the normal wmr300 driver and switch between
them by manually editing the config file.  I have not given any thought
to whether the reconfigure program would work.

Cameron.


On 27-Dec-2016 06:08, Michael Nigbor wrote:
> Cameron,
> 
> I installed 3.6.2 today on Ubuntu (old HP laptop) attached to a WMR300a.
> I am having the same problem described in this thread: no data from the
> console. I installed using apt-get which gave me version 0.13 of the
> driver.  After reading this thread, I went to github and got 0.16rc2.
>  Should I use version in this zip file?  It says something about
> WMR300C. Does that matter? 
> 
> On Friday, November 25, 2016 at 7:37:37 AM UTC-7, Cameron D wrote:
> 
> I now have a version that is working reliably across a few restarts.
> I need to do a lot of tidying up of debug code, test it using
> usblib0 and clean up a few mysteries such as why it is suddenly in
> US units.
> 
> This will not happen for a few days due to other commitments.  If
> anybody wants to try this interim code they are welcome to try the
> attached...
> 
> Essentially I think the problem, as I guessed in the devel list
> posting, is that the console is non-deterministic in its i/o stream
> and eventually gets tied up if single-thread blocking i/o calls are
> used.
> 
> The solution mainly involved looking again at Zahlii's code and,
> because the wmr300 would not listed to me, I would not talk to it.
> It is quite happy to send data without a single ACK response, so
> long as the heartbeat occurs every so often.
> 
> The history reread might still have some gaps in it.
> 
> -- 
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-26 Thread Michael Nigbor
I get a timeout error.

On Dec 26, 2016 3:46 PM, "mwall"  wrote:

>
>
> On Monday, December 26, 2016 at 3:08:20 PM UTC-5, Michael Nigbor wrote:
>>
>> I installed 3.6.2 today on Ubuntu (old HP laptop) attached to a WMR300a.
>> I am having the same problem described in this thread: no data from the
>> console. I installed using apt-get which gave me version 0.13 of the
>> driver.  After reading this thread, I went to github and got 0.16rc2.
>> Should I use version in this zip file?  It says something about WMR300C.
>> Does that matter?
>>
>
> michael,
>
> what happens when you run weewx 3.6.2 with the version 0.16rc2 driver from
> the repository?
>
> m
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-21 Thread Cameron D
Hi Alberto,

OK - the comms errors would make sense to explain that.

If you are planning to erase and start again then a bottle of water
helps speed up the rainfall.
Or lift the raingauge top off and tip the rain buckets to and fro. That
way you can even count how much "rain" you have had.

Don't worry about packet capture - I intend to do that myself when I
have a bit of spare time.

Given Oregon's approach to control of the setup via PC (i.e. there is
none), I doubt there will be any software reset.  They do not even
correct the clock.

Cameron

On 21-Dec-2016 18:59, Alberto Sánchez wrote:
> Hi Cameron,
> 
> __ __
> 
> I have had erroneous rain readings (9000mm or even more), I think due to
> communication failures and in some cases I found cobwebs in the rain
> gauge. Because of this I think I have reached the limit. At the moment I
> am in tests, as soon as the weather station works correctly I will erase
> all the data of wunderground and I will start again. The anticyclone we
> have in Europe does not help me to speed up the tests xD
> 
> __ __
> 
> Many thanks to all for the help.
> 
> __ __
> 
> Mwall,
> 
> __ __
> 
> At the moment I do not have enough knowledge to help you capture
> packages for the driver, but if you need me to do some test you can ask me.
> 
> 
> El 21 dic. 2016 9:19, "Cameron D"  > escribió:
> 
> Hi Alberto,
> I have just checked my system after some rain and the database contents
> look sensible.  I can see rain increments of 0.01 and 0.02 (inches) in
> my 1-minute sample interval.
> 
> The web page shows total rain as 6.6mm since midnight, which agrees with
> the console.
> 
> I am using Weewx 3.6.2, but with my test drivers. However I do not think
> I changed anything in the drivers related to interpreting the data.
> 
> I noticed also on your weather underground page that you recorded 191mm
> in 5 minutes on 12-Dec. That does not look right - you should see if the
> weewx database shows the same set of values.
> 
> I thought the rain accumulator capacity was 40 metres of rain - that
> should last 4 years even for the wettest place on earth. Unless you have
> been supplying an extra source of water it should not need clearing just
> yet.  It will be interesting if that does fix it.
> 
> Cameron.
> 
> On 21-Dec-2016 04:31, Alberto Sánchez wrote:
> > Thanks you very much both,
> >
> > Andrew,
> >
> > This is the data in the database
> >
> >
> >   RainRateRain
> > 14822076000.00483870970
> > 14822079000.040
> > 14822082000.040
> > 14822085000.04787878780
> > 14822088000.00914285710
> >
> >
> > I have also seen what you comment on wunderground. I do not know what
> > may be due, I'll check weewx.conf
> >
> > mwall,
> >
> > In the rain counter of the console appeared "HHH mm". I just reset and
> > has been zeroed.
> >
> > El martes, 20 de diciembre de 2016, 14:33:04 (UTC+1), mwall escribió:
> >
> > On Tuesday, December 20, 2016 at 1:35:14 AM UTC-5, Alberto Sánchez
> > wrote:
> >
> > Hi mwall,
> >
> > It has rained tonight. The console has registered the rain and
> > weewx has recorded the rain rate well but has not
> calculated the
> > total rain. Example: Today's Rain 0.0 mm
> > High Rain Rate 1.3 mm / hr at 05:19:22 AM
> >
> > Weewx 3.6.1
> > Driver 0,15RC3
> >
> >
> > alberto,
> >
> > when was the last time you reset the rain counter? you can get
> this
> > information from the wmr300 console.
> >
> > m
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "weewx-user" group.
> > To unsubscribe from this topic, visit
> >
> https://groups.google.com/d/topic/weewx-user/YSz_IWnzOjE/unsubscribe
> .
> > To unsubscribe from this group and all its topics, send an email to
> > weewx-user+unsubscr...@googlegroups.com
> 
> >  >.
> > For more options, visit https://groups.google.com/d/optout
> .
> 
> --
> You received this message because you are subscribed to a topic in
> the Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/YSz_IWnzOjE/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email

Re: [weewx-user] Re: No data from station

2016-12-21 Thread Alberto Sánchez
Hi Cameron,



I have had erroneous rain readings (9000mm or even more), I think due to
communication failures and in some cases I found cobwebs in the rain gauge.
Because of this I think I have reached the limit. At the moment I am in
tests, as soon as the weather station works correctly I will erase all the
data of wunderground and I will start again. The anticyclone we have in
Europe does not help me to speed up the tests xD



Many thanks to all for the help.



Mwall,



At the moment I do not have enough knowledge to help you capture packages
for the driver, but if you need me to do some test you can ask me.

El 21 dic. 2016 9:19, "Cameron D"  escribió:

> Hi Alberto,
> I have just checked my system after some rain and the database contents
> look sensible.  I can see rain increments of 0.01 and 0.02 (inches) in
> my 1-minute sample interval.
>
> The web page shows total rain as 6.6mm since midnight, which agrees with
> the console.
>
> I am using Weewx 3.6.2, but with my test drivers. However I do not think
> I changed anything in the drivers related to interpreting the data.
>
> I noticed also on your weather underground page that you recorded 191mm
> in 5 minutes on 12-Dec. That does not look right - you should see if the
> weewx database shows the same set of values.
>
> I thought the rain accumulator capacity was 40 metres of rain - that
> should last 4 years even for the wettest place on earth. Unless you have
> been supplying an extra source of water it should not need clearing just
> yet.  It will be interesting if that does fix it.
>
> Cameron.
>
> On 21-Dec-2016 04:31, Alberto Sánchez wrote:
> > Thanks you very much both,
> >
> > Andrew,
> >
> > This is the data in the database
> >
> >
> >   RainRateRain
> > 14822076000.00483870970
> > 14822079000.040
> > 14822082000.040
> > 14822085000.04787878780
> > 14822088000.00914285710
> >
> >
> > I have also seen what you comment on wunderground. I do not know what
> > may be due, I'll check weewx.conf
> >
> > mwall,
> >
> > In the rain counter of the console appeared "HHH mm". I just reset and
> > has been zeroed.
> >
> > El martes, 20 de diciembre de 2016, 14:33:04 (UTC+1), mwall escribió:
> >
> > On Tuesday, December 20, 2016 at 1:35:14 AM UTC-5, Alberto Sánchez
> > wrote:
> >
> > Hi mwall,
> >
> > It has rained tonight. The console has registered the rain and
> > weewx has recorded the rain rate well but has not calculated the
> > total rain. Example: Today's Rain 0.0 mm
> > High Rain Rate 1.3 mm / hr at 05:19:22 AM
> >
> > Weewx 3.6.1
> > Driver 0,15RC3
> >
> >
> > alberto,
> >
> > when was the last time you reset the rain counter? you can get this
> > information from the wmr300 console.
> >
> > m
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "weewx-user" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> > To unsubscribe from this group and all its topics, send an email to
> > weewx-user+unsubscr...@googlegroups.com
> > .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-21 Thread Cameron D
Hi Alberto,
I have just checked my system after some rain and the database contents
look sensible.  I can see rain increments of 0.01 and 0.02 (inches) in
my 1-minute sample interval.

The web page shows total rain as 6.6mm since midnight, which agrees with
the console.

I am using Weewx 3.6.2, but with my test drivers. However I do not think
I changed anything in the drivers related to interpreting the data.

I noticed also on your weather underground page that you recorded 191mm
in 5 minutes on 12-Dec. That does not look right - you should see if the
weewx database shows the same set of values.

I thought the rain accumulator capacity was 40 metres of rain - that
should last 4 years even for the wettest place on earth. Unless you have
been supplying an extra source of water it should not need clearing just
yet.  It will be interesting if that does fix it.

Cameron.

On 21-Dec-2016 04:31, Alberto Sánchez wrote:
> Thanks you very much both,
> 
> Andrew,
> 
> This is the data in the database
> 
> 
>   RainRateRain
> 14822076000.00483870970
> 14822079000.040
> 14822082000.040
> 14822085000.04787878780
> 14822088000.00914285710
> 
> 
> I have also seen what you comment on wunderground. I do not know what
> may be due, I'll check weewx.conf
> 
> mwall,
> 
> In the rain counter of the console appeared "HHH mm". I just reset and
> has been zeroed.
> 
> El martes, 20 de diciembre de 2016, 14:33:04 (UTC+1), mwall escribió:
> 
> On Tuesday, December 20, 2016 at 1:35:14 AM UTC-5, Alberto Sánchez
> wrote:
> 
> Hi mwall,
> 
> It has rained tonight. The console has registered the rain and
> weewx has recorded the rain rate well but has not calculated the
> total rain. Example: Today's Rain 0.0 mm
> High Rain Rate 1.3 mm / hr at 05:19:22 AM
> 
> Weewx 3.6.1
> Driver 0,15RC3
> 
> 
> alberto,
> 
> when was the last time you reset the rain counter? you can get this
> information from the wmr300 console.
> 
> m
> 
> -- 
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-20 Thread mwall
On Tuesday, December 20, 2016 at 1:31:30 PM UTC-5, Alberto Sánchez wrote:
>
>
> In the rain counter of the console appeared "HHH mm". I just reset and has 
> been zeroed.
>
>>
>>
this is typical behavior when the rain counter of the wmr300 has reached 
its maximum value.

once it reaches maximum value, it will no longer record any rain.

it will continue to record rain rate. (since the hardware emits rainRate, 
weewx does not calculate rainRate)

afaik, the only way to reset the rain counter is to punch the buttons on 
the console.

if you can find somewhere in the oregon scientific software that will reset 
the rain counter, please let us know!  even better, do a usb capture of the 
reset-from-software so we can do it in the wmr300 driver.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-20 Thread Andrew Milner
|Alberto

It is POSSIBLE that WU reports the time since the last reading change - but 
I still do not see what is happening because you do NOT have rapid fire 
enabled in the weewx.conf you posted.

Do you have multiple instances of weewx running by any chance - can you do 
ps -A and check that weewxd appears only ONCE in the list of processes

double check

Matthew needs to comment on how we have rainrate but not rain!!





On Tuesday, 20 December 2016 20:31:30 UTC+2, Alberto Sánchez wrote:

> Thanks you very much both,
>
> Andrew,
>
> This is the data in the database
>
>
> RainRate Rain 
> 1482207600 0.0048387097 0 
> 1482207900 0.04 0 
> 1482208200 0.04 0 
> 1482208500 0.0478787878 0 
> 1482208800 0.0091428571 0 
> I have also seen what you comment on wunderground. I do not know what may 
> be due, I'll check weewx.conf
>
> mwall,
>
> In the rain counter of the console appeared "HHH mm". I just reset and has 
> been zeroed.
>
> El martes, 20 de diciembre de 2016, 14:33:04 (UTC+1), mwall escribió:
>>
>> On Tuesday, December 20, 2016 at 1:35:14 AM UTC-5, Alberto Sánchez wrote:
>>>
>>> Hi mwall,
>>>
>>> It has rained tonight. The console has registered the rain and weewx has 
>>> recorded the rain rate well but has not calculated the total rain. Example: 
>>> Today's Rain 0.0 mm
>>> High Rain Rate 1.3 mm / hr at 05:19:22 AM
>>>
>>> Weewx 3.6.1
>>> Driver 0,15RC3
>>>
>>
>> alberto,
>>
>> when was the last time you reset the rain counter? you can get this 
>> information from the wmr300 console.
>>
>> m
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-20 Thread Alberto Sánchez
Thanks you very much both,

Andrew,

This is the data in the database


RainRate Rain 
1482207600 0.0048387097 0 
1482207900 0.04 0 
1482208200 0.04 0 
1482208500 0.0478787878 0 
1482208800 0.0091428571 0 
I have also seen what you comment on wunderground. I do not know what may 
be due, I'll check weewx.conf

mwall,

In the rain counter of the console appeared "HHH mm". I just reset and has 
been zeroed.

El martes, 20 de diciembre de 2016, 14:33:04 (UTC+1), mwall escribió:
>
> On Tuesday, December 20, 2016 at 1:35:14 AM UTC-5, Alberto Sánchez wrote:
>>
>> Hi mwall,
>>
>> It has rained tonight. The console has registered the rain and weewx has 
>> recorded the rain rate well but has not calculated the total rain. Example: 
>> Today's Rain 0.0 mm
>> High Rain Rate 1.3 mm / hr at 05:19:22 AM
>>
>> Weewx 3.6.1
>> Driver 0,15RC3
>>
>
> alberto,
>
> when was the last time you reset the rain counter? you can get this 
> information from the wmr300 console.
>
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-20 Thread mwall
On Tuesday, December 20, 2016 at 1:35:14 AM UTC-5, Alberto Sánchez wrote:
>
> Hi mwall,
>
> It has rained tonight. The console has registered the rain and weewx has 
> recorded the rain rate well but has not calculated the total rain. Example: 
> Today's Rain 0.0 mm
> High Rain Rate 1.3 mm / hr at 05:19:22 AM
>
> Weewx 3.6.1
> Driver 0,15RC3
>

alberto,

when was the last time you reset the rain counter? you can get this 
information from the wmr300 console.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-20 Thread Andrew Milner
Alberto - I do not fully understand your weather underground station.  If I 
watch your station for a while it looks as though there are two stations 
reporting - the last reported time keeps jumping between two sequences eg 
it can report last reported 10 secs ago, 15 secs ago, 8 minutes ago, 20 
secs ago, 8 minutes ago, 25 secs ago, 8 minutes ago, 30 secs ago, 9 minutes 
ago, 35 secs ago ... etc etc etc.

Is there anything in the log at/around the time of the rain?

What data is stored in the database between say 04:30:00 and 06:30:00 ??  
You can find this by
SELECT dateTime, rain, rainRate from archive where dateTime > 1482204600 
and dateTime < 1482211800;





On Tuesday, 20 December 2016 08:35:14 UTC+2, Alberto Sánchez wrote:

> Hi mwall,
>
> It has rained tonight. The console has registered the rain and weewx has 
> recorded the rain rate well but has not calculated the total rain. Example: 
> Today's Rain 0.0 mm
> High Rain Rate 1.3 mm / hr at 05:19:22 AM
>
> Weewx 3.6.1
> Driver 0,15RC3
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-19 Thread Alberto Sánchez
Hi mwall,

It has rained tonight. The console has registered the rain and weewx has 
recorded the rain rate well but has not calculated the total rain. Example: 
Today's Rain 0.0 mm
High Rain Rate 1.3 mm / hr at 05:19:22 AM

Weewx 3.6.1
Driver 0,15RC3

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-12-12 Thread Alberto Sánchez
I wanted to say that "I no longer lose data" with the new location of the
console.

El 13 dic. 2016 8:38, "Alberto Sánchez"  escribió:

> Hi mwall,
>
> Thanks for the information, I've changed the location of my console and I
> no longer date. I agree with you on reading barometer data.
>
> I only have to wait until it rains, to see that the readings are correct
> as well.
>
> Thank you very much
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-06 Thread Alberto Sánchez

I am noob with Raspberry and weewx, so I have done a clean installation of 
raspbian (Jessie) and Weewx 3.6.1 with the same result:

pi@raspberrypi:~ $ sudo /etc/init.d/weewx status -l
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (running) since sáb 2016-11-05 13:52:08 CET; 5min ago
  Process: 426 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/weewx.service
   └─958 python /usr/bin/weewxd --daemon 
--pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf

nov 05 13:57:13 raspberrypi weewx[958]: restx: PWSweather: Posting not 
enabled.
nov 05 13:57:13 raspberrypi weewx[958]: restx: CWOP: Posting not enabled.
nov 05 13:57:13 raspberrypi weewx[958]: restx: WOW: Posting not enabled.
nov 05 13:57:13 raspberrypi weewx[958]: restx: AWEKAS: Posting not enabled.
nov 05 13:57:13 raspberrypi weewx[958]: engine: Starting up weewx version 
3.6.1
nov 05 13:57:13 raspberrypi weewx[958]: wmr300: reading records since 
*** N/A *** (N/A   )
nov 05 13:57:13 raspberrypi weewx[958]: wmr300: read: failed attempt 1 of 
5: could not detach kernel driver from interface 0: No hay datos disponibles
nov 05 13:57:16 raspberrypi weewx[958]: wmr300: read: failed attempt 2 of 
5: could not detach kernel driver from interface 0: No hay datos disponibles
nov 05 13:57:19 raspberrypi weewx[958]: wmr300: read: failed attempt 3 of 
5: could not detach kernel driver from interface 0: No hay datos disponibles
nov 05 13:57:22 raspberrypi weewx[958]: wmr300: read: failed attempt 4 of 
5: could not detach kernel driver from interface 0: No hay datos disponibles
pi@raspberrypi:~ $ sudo /etc/init.d/weewx status
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (exited) since sáb 2016-11-05 13:52:08 CET; 19h ago
  Process: 426 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)

nov 05 19:27:17 raspberrypi weewx[958]: wmr300: read failed: max retries 
(5) exceeded
nov 05 19:27:17 raspberrypi weewx[958]: engine: Caught WeeWxIOError: read 
failed: max retries (5) exceeded
nov 05 19:27:17 raspberrypi weewx[958]:   Waiting 60 seconds then 
retrying...
nov 05 19:28:17 raspberrypi weewx[958]: engine: retrying...
nov 05 19:28:17 raspberrypi weewx[958]: engine: Using configuration file 
/etc/weewx/weewx.conf
nov 05 19:28:17 raspberrypi weewx[958]: engine: Loading station type WMR300 
(weewx.drivers.wmr300)
nov 05 19:28:17 raspberrypi weewx[958]: wmr300: driver version is 0.13
nov 05 19:28:17 raspberrypi weewx[958]: import of driver failed: could not 
reset: No existe el dispositivo ()
nov 05 19:28:17 raspberrypi weewx[958]: engine: Unable to load driver: 
could not reset: No existe el dispositivo
nov 05 19:28:17 raspberrypi weewx[958]:   Exiting...

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-06 Thread Alberto Sánchez


I have tried with 0.10 driver but I have error too. The only driver that I 
can use is 0.9.

0.10 driver error:

sudo /etc/init.d/weewx status -l
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (running) since dom 2016-11-06 10:09:21 CET; 36s ago
  Process: 4943 ExecStop=/etc/init.d/weewx stop (code=exited, 
status=0/SUCCESS)
  Process: 5074 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/weewx.service
   └─5089 python /usr/bin/weewxd --daemon 
--pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf

nov 06 10:09:22 raspberrypi weewx[5089]: restx: StationRegistry: 
Registration not requested.
nov 06 10:09:22 raspberrypi weewx[5089]: restx: Wunderground: Posting not 
enabled.
nov 06 10:09:22 raspberrypi weewx[5089]: restx: PWSweather: Posting not 
enabled.
nov 06 10:09:22 raspberrypi weewx[5089]: restx: CWOP: Posting not enabled.
nov 06 10:09:22 raspberrypi weewx[5089]: restx: WOW: Posting not enabled.
nov 06 10:09:22 raspberrypi weewx[5089]: restx: AWEKAS: Posting not enabled.
nov 06 10:09:22 raspberrypi weewx[5089]: engine: Starting up weewx version 
3.6.1
nov 06 10:09:22 raspberrypi weewx[5089]: wmr300: reading records since 
*** N/A *** (N/A   )
nov 06 10:09:22 raspberrypi weewx[5089]: engine: Caught WeeWxIOError: 
Expiró el tiempo de conexión
nov 06 10:09:22 raspberrypi weewx[5089]:   Waiting 60 seconds then 
retrying...

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread Alberto Sánchez
pi@raspberrypi:~ $ dpkg -l | grep usb
ii  libusb-0.1-4:armhf2:0.1.12-25   
armhfuserspace USB programming library
ii  libusb-1.0-0:armhf2:1.0.19-1
armhfuserspace USB programming library
ii  libusbmuxd2:armhf 1.0.9-1   
armhfUSB multiplexor daemon for iPhone and iPod Touch devices - 
library
ii  python-usb0.4.3-1   
armhfUSB interface for Python
ii  usb-modeswitch2.2.0+repack0-2   
armhfmode switching tool for controlling "flip flop" USB devices
ii  usb-modeswitch-data   20150115-1
all  mode switching data for usb-modeswitch
ii  usbutils  1:007-2   
armhfLinux USB utilities

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread Alberto Sánchez
Hi Mwall,

Here my error, with Rasbian Jessy:


$ sudo /etc/init.d/weewx status -l
● weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (running) since vie 2016-11-04 07:32:31 CET; 37s ago
  Process: 19854 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 19975 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/weewx.service
   └─19990 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid 
/etc/weewx/weewx.conf

nov 04 07:32:31 raspberrypi weewx[19990]: restx: Wunderground-PWS: Data for 
station IULTZAMA2 will be posted
nov 04 07:32:31 raspberrypi weewx[19990]: restx: PWSweather: Posting not 
enabled.
nov 04 07:32:31 raspberrypi weewx[19990]: restx: CWOP: Posting not enabled.
nov 04 07:32:31 raspberrypi weewx[19990]: restx: WOW: Posting not enabled.
nov 04 07:32:31 raspberrypi weewx[19990]: restx: AWEKAS: Posting not enabled.
nov 04 07:32:31 raspberrypi weewx[19990]: engine: Starting up weewx version 
3.6.1
nov 04 07:32:31 raspberrypi weewx[19990]: wmr300: reading records since 
2016-11-04 07:30:00 CET (1478241000)
nov 04 07:32:32 raspberrypi weewx[19990]: wmr300: usb failure: could not detach 
kernel driver from interface 0: No hay datos disponibles
nov 04 07:32:32 raspberrypi weewx[19990]: engine: Caught WeeWxIOError: could 
not detach kernel driver from interface 0: No hay datos disponibles
nov 04 07:32:32 raspberrypi weewx[19990]:   Waiting 60 seconds then 
retrying...

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread mwall
On Thursday, November 3, 2016 at 4:45:22 PM UTC-4, Alberto Sánchez wrote:
>
> Hi,
>
> I just test the new driver and I have the same Roland error. Thank you 
> very much.
>

alberto, could you post the errors you get with the 0.15rc1 driver?  thank 
you!
 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread 'Roland Ehle' via weewx-user
ii  libusb-0.1-4:amd64  
2:0.1.12-28   amd64userspace USB 
programming library
ii  libusb-1.0-0:amd64  
2:1.0.20-1amd64userspace USB 
programming library
hi  python-usb  
0.4.3-1   amd64USB interface 
for Python

I have downgraded to python-usb version 0.4.3 due to your recommendation.

System is running on Ubuntu 16.04 LTS with kernel 4.4.0-45-generic 
#66-Ubuntu

Am Donnerstag, 3. November 2016 21:37:56 UTC+1 schrieb mwall:
>
> On Thursday, November 3, 2016 at 1:07:53 PM UTC-4, Roland Ehle wrote:
>>
>> I gave it a try, but I had the following errors in the log with debug = 0
>>
>> Nov  3 18:01:42 lin01 weewx[19698]: wmr300: usb failure: could not detach 
>> kernel driver from interface 0: Keine Daten verfügbar
>> Nov  3 18:01:42 lin01 weewx[19698]: engine: Caught WeeWxIOError: could 
>> not detach kernel driver from interface 0: Keine Daten verfügbar
>> Nov  3 18:01:42 lin01 weewx[19698]:   Waiting 60 seconds then 
>> retrying..
>>>
>>>
>>>
> roland,
>
> thank you for trying this.  please post the usb info for your system, 
> specifically which libusb and pyusb.  for example, on a debian system do 
> this:
>
> dpkg -l | grep usb
>
> m 
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread 'Roland Ehle' via weewx-user
Full output of dpkg -l | grep usb is attached for better reading.

Regards,
Roland

Am Donnerstag, 3. November 2016 21:37:56 UTC+1 schrieb mwall:
>
> On Thursday, November 3, 2016 at 1:07:53 PM UTC-4, Roland Ehle wrote:
>>
>> I gave it a try, but I had the following errors in the log with debug = 0
>>
>> Nov  3 18:01:42 lin01 weewx[19698]: wmr300: usb failure: could not detach 
>> kernel driver from interface 0: Keine Daten verfügbar
>> Nov  3 18:01:42 lin01 weewx[19698]: engine: Caught WeeWxIOError: could 
>> not detach kernel driver from interface 0: Keine Daten verfügbar
>> Nov  3 18:01:42 lin01 weewx[19698]:   Waiting 60 seconds then 
>> retrying..
>>>
>>>
>>>
> roland,
>
> thank you for trying this.  please post the usb info for your system, 
> specifically which libusb and pyusb.  for example, on a debian system do 
> this:
>
> dpkg -l | grep usb
>
> m 
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ii  ippusbxd1.23-1  
  amd64Daemon for IPP USB printer support
ii  libgusb2:amd64  0.2.9-0ubuntu1  
  amd64GLib wrapper around libusb1
ii  libusb-0.1-4:amd64  2:0.1.12-28 
  amd64userspace USB programming library
ii  libusb-1.0-0:amd64  2:1.0.20-1  
  amd64userspace USB programming library
ii  libusbmuxd4:amd64   1.0.10-2ubuntu0.1   
  amd64USB multiplexor daemon for iPhone and iPod Touch 
devices - library
hi  python-usb  0.4.3-1 
  amd64USB interface for Python
ii  usb-creator-common  0.3.2   
  amd64create a startup disk using a CD or disc image 
(common files)
ii  usb-creator-gtk 0.3.2   
  amd64create a startup disk using a CD or disc image (for 
GNOME)
ii  usb-modeswitch  2.2.5+repack0-1ubuntu1  
  amd64mode switching tool for controlling "flip flop" USB 
devices
ii  usb-modeswitch-data 20151101-1  
  all  mode switching data for usb-modeswitch
ii  usbmuxd 1.1.0-2 
  amd64USB multiplexor daemon for iPhone and iPod Touch 
devices
ii  usbutils1:007-4 
  amd64Linux USB utilities


Re: [weewx-user] Re: No data from station

2016-11-03 Thread mwall
On Thursday, November 3, 2016 at 1:07:53 PM UTC-4, Roland Ehle wrote:
>
> I gave it a try, but I had the following errors in the log with debug = 0
>
> Nov  3 18:01:42 lin01 weewx[19698]: wmr300: usb failure: could not detach 
> kernel driver from interface 0: Keine Daten verfügbar
> Nov  3 18:01:42 lin01 weewx[19698]: engine: Caught WeeWxIOError: could not 
> detach kernel driver from interface 0: Keine Daten verfügbar
> Nov  3 18:01:42 lin01 weewx[19698]:   Waiting 60 seconds then 
> retrying..
>>
>>
>>
roland,

thank you for trying this.  please post the usb info for your system, 
specifically which libusb and pyusb.  for example, on a debian system do 
this:

dpkg -l | grep usb

m 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread Alberto Sánchez
Hi,

I just test the new driver and I have the same Roland error. Thank you very 
much.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread mwall
On Thursday, November 3, 2016 at 4:17:43 PM UTC-4, Alberto Sánchez wrote:
>
> Thank you very much for your answer.
>
> I have tested the new driver and report me this error:
>

alberto, the DOCTYPE indicates that the wmr300.py file was not downloaded 
properly.  you must download the raw .py file.  use this link instead:

https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/drivers/wmr300.py

 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread Alberto Sánchez
Thank you very much for your answer.

I have tested the new driver and report me this error:


 weewx.service - LSB: weewx weather system
   Loaded: loaded (/etc/init.d/weewx)
   Active: active (exited) since jue 2016-11-03 20:59:24 CET; 3s ago
  Process: 14515 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS)
  Process: 14652 ExecStart=/etc/init.d/weewx start (code=exited, 
status=0/SUCCESS)

nov 03 20:59:24 raspberrypi weewx[14667]:   
self.setupStation(config_dict)
nov 03 20:59:24 raspberrypi weewx[14667]: File 
"/usr/share/weewx/weewx/engine.py", line 94, in setupStation
nov 03 20:59:24 raspberrypi weewx[14667]:   __import__(driver)
nov 03 20:59:24 raspberrypi weewx[14667]: File 
"/usr/share/weewx/weewx/drivers/wmr300.py", line 1
nov 03 20:59:24 raspberrypi weewx[14667]:   
nov 03 20:59:24 raspberrypi weewx[14667]:   ^
nov 03 20:59:24 raspberrypi weewx[14667]:   SyntaxError: invalid syntax
nov 03 20:59:24 raspberrypi weewx[14667]:   Exiting.
nov 03 20:59:24 raspberrypi systemd[1]: Started LSB: weewx weather system.
nov 03 20:59:24 raspberrypi weewx[14652]: Starting weewx weather system: weewx.



-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-03 Thread 'Roland Ehle' via weewx-user
I gave it a try, but I had the following errors in the log with debug = 0

Nov  3 18:01:42 lin01 weewx[19698]: wmr300: usb failure: could not detach 
kernel driver from interface 0: Keine Daten verfügbar
Nov  3 18:01:42 lin01 weewx[19698]: engine: Caught WeeWxIOError: could not 
detach kernel driver from interface 0: Keine Daten verfügbar
Nov  3 18:01:42 lin01 weewx[19698]:   Waiting 60 seconds then 
retrying..

Am Mittwoch, 2. November 2016 19:05:33 UTC+1 schrieb mwall:
>
> On Tuesday, November 1, 2016 at 4:49:24 PM UTC-4, Alberto Sánchez wrote:
>>
>> I have had the same problem and I have solve it with the same solution. 
>> Using 3.5.0 wmr 300 driver.
>
>
> alberto, roland, and others,
>
> please try the latest wmr300 driver (0.15rc1).  it uses the usb 
> initialization logic from 0.10, but it has the pressure/barometer and wind 
> direction fixex that came later.
>
> https://github.com/weewx/weewx/blob/master/bin/weewx/drivers/wmr300.py
>
> it turns out that the wmr300 stations do not default to spewing data to 
> the usb - the driver must invoke an interruptWrite periodically to keep the 
> data flowing.
>
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-02 Thread mwall
On Tuesday, November 1, 2016 at 4:49:24 PM UTC-4, Alberto Sánchez wrote:
>
> I have had the same problem and I have solve it with the same solution. 
> Using 3.5.0 wmr 300 driver.


alberto, roland, and others,

please try the latest wmr300 driver (0.15rc1).  it uses the usb 
initialization logic from 0.10, but it has the pressure/barometer and wind 
direction fixex that came later.

https://github.com/weewx/weewx/blob/master/bin/weewx/drivers/wmr300.py

it turns out that the wmr300 stations do not default to spewing data to the 
usb - the driver must invoke an interruptWrite periodically to keep the 
data flowing.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-01 Thread Alberto Sánchez
Sorry in my case I use a raspberry pi 3 with raspbyan Jessy.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-11-01 Thread Alberto Sánchez
I have had the same problem and I have solve it with the same solution. Using 
3.5.0 wmr 300 driver.

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-10-28 Thread 'Roland Ehle' via weewx-user
Thank you Matthew. After some more digging and testing I came to the 
conclusion: It is not weewx itself that causes the issue, but the WMR300 
driver for some reason. I downgraded to weewx 3.5.0 and everything worked 
fine. After copying the WMR300 driver files I upgraded again to the latest 
version and the issue was present again until I copied the driver version 
0.10 to the location /usr/share/weewx/weewx/drivers.

So, after all, I have a working configuration :-) Thanks for your support

Regards,
Roland

Am Donnerstag, 27. Oktober 2016 23:32:09 UTC+2 schrieb vince:

> On Thursday, October 27, 2016 at 1:12:29 PM UTC-7, Roland Ehle wrote:
>>
>> Downgrade to python-usb 0.4.3 did not change the behavior. Clean install 
>> of Ubuntu 14.04.5 followed by a clean install of weewx 3.6.1 did not change 
>> the behavior. No I took a brand new Raspberry, put weewx on it, but I have 
>> exactly the same issue. In the past I was running my station on a Raspberry 
>> with weewx 3.5.0 successfully.
>>
>>
> At this point it's unclear to me if it's software or hardware, so I'd 
> suggest a clean Raspbian with weewx 3.5.0 on it to try to recreate the same 
> config you had when it last worked.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-10-27 Thread vince
On Thursday, October 27, 2016 at 1:12:29 PM UTC-7, Roland Ehle wrote:
>
> Downgrade to python-usb 0.4.3 did not change the behavior. Clean install 
> of Ubuntu 14.04.5 followed by a clean install of weewx 3.6.1 did not change 
> the behavior. No I took a brand new Raspberry, put weewx on it, but I have 
> exactly the same issue. In the past I was running my station on a Raspberry 
> with weewx 3.5.0 successfully.
>
>
At this point it's unclear to me if it's software or hardware, so I'd 
suggest a clean Raspbian with weewx 3.5.0 on it to try to recreate the same 
config you had when it last worked.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-10-27 Thread 'Roland Ehle' via weewx-user
Downgrade to python-usb 0.4.3 did not change the behavior. Clean install of 
Ubuntu 14.04.5 followed by a clean install of weewx 3.6.1 did not change 
the behavior. No I took a brand new Raspberry, put weewx on it, but I have 
exactly the same issue. In the past I was running my station on a Raspberry 
with weewx 3.5.0 successfully.

Station was reset using the reset button

Am Donnerstag, 27. Oktober 2016 03:19:59 UTC+2 schrieb mwall:
>
> On Tuesday, October 25, 2016 at 12:23:45 PM UTC-4, Roland Ehle wrote:
>>
>> Thanks for your response. If necessary I am willing to downgrade to 
>> ubuntu 14.04
>>
>> I am on Ubuntu 16.04 with Kernel 4.4.0-45-generic 
>> I have 
>> python-usb 1.0.0~b2
>> libusb-1.0-0 1.0.20-1
>> libusb-0.1-4 0.1.23-28
>>
>>
> roland,
>
> before you try a different version of ubuntu, please try downgrading 
> python-usb (to 0.4.3)
>
> m
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-10-26 Thread mwall
On Tuesday, October 25, 2016 at 12:23:45 PM UTC-4, Roland Ehle wrote:
>
> Thanks for your response. If necessary I am willing to downgrade to ubuntu 
> 14.04
>
> I am on Ubuntu 16.04 with Kernel 4.4.0-45-generic 
> I have 
> python-usb 1.0.0~b2
> libusb-1.0-0 1.0.20-1
> libusb-0.1-4 0.1.23-28
>
>
roland,

before you try a different version of ubuntu, please try downgrading 
python-usb (to 0.4.3)

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: No data from station

2016-10-25 Thread 'Roland Ehle' via weewx-user
Here is the output of lsusb -v -d

root@lin01:~# lsusb -v -d 0fde:ca08
Bus 001 Device 006: ID 0fde:ca08 Oregon Scientific
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.10
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor   0x0fde Oregon Scientific
  idProduct  0xca08
  bcdDevice0.20
  iManufacturer   1 Microchip Technology Inc.
  iProduct2 USB HID Bootloader
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   41
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  0
bmAttributes 0xc0
  Self Powered
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 3 Human Interface Device
  bInterfaceSubClass  0 No Subclass
  bInterfaceProtocol  0 None
  iInterface  0
HID Device Descriptor:
  bLength 9
  bDescriptorType33
  bcdHID   1.11
  bCountryCode0 Not supported
  bNumDescriptors 1
  bDescriptorType34 Report
  wDescriptorLength  29
  Report Descriptor: (length is 29)
Item(Global): Usage Page, data= [ 0x00 0xff ] 65280
(null)
Item(Local ): Usage, data= [ 0x01 ] 1
(null)
Item(Main  ): Collection, data= [ 0x01 ] 1
Application
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
(null)
Item(Local ): Usage Maximum, data= [ 0x40 ] 64
(null)
Item(Global): Logical Minimum, data= [ 0x00 ] 0
Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Report Count, data= [ 0x40 ] 64
Item(Main  ): Input, data= [ 0x00 ] 0
Data Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile 
Bitfield
Item(Local ): Usage Minimum, data= [ 0x01 ] 1
(null)
Item(Local ): Usage Maximum, data= [ 0x40 ] 64
(null)
Item(Main  ): Output, data= [ 0x00 ] 0
Data Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile 
Bitfield
Item(Main  ): End Collection, data=none
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes3
  Transfer TypeInterrupt
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0040  1x 64 bytes
bInterval   1
Device Status: 0x0001
  Self Powered
root@lin01:~#

Am Dienstag, 25. Oktober 2016 18:23:45 UTC+2 schrieb Roland Ehle:

> Thanks for your response. If necessary I am willing to downgrade to ubuntu 
> 14.04
>
> I am on Ubuntu 16.04 with Kernel 4.4.0-45-generic 
> I have 
> python-usb 1.0.0~b2
> libusb-1.0-0 1.0.20-1
> libusb-0.1-4 0.1.23-28
>
> 2016-10-25 2:38 GMT+02:00 mwall :
>
>> On Monday, October 24, 2016 at 3:01:47 PM UTC-4, Roland Ehle wrote:
>>>
>>> Hi all,
>>>
>>> I have now attached my WMR300 to an Intel NUC running Ubuntu 16.04 LTS. 
>>> Unfortunately weewx 3.6.1 is unable to read data from the station. 
>>> Apparantly the reason is, that the USB device is reset by the Kernel, 
>>> according to the log:
>>>
>>> Oct 24 20:57:01 lin01 weewx[932]: engine: Loading station type WMR300 
>>> (weewx.drivers.wmr300)
>>> Oct 24 20:57:01 lin01 weewx[932]: wmr300: driver version is 0.13
>>> Oct 24 20:57:01 lin01 weewx[932]: wmr300: Found station at bus= device=
>>> Oct 24 20:57:02 lin01 kernel: [ 2514.640999] usb 1-4: reset full-speed 
>>> USB device number 5 using xhci_hcd
>>>
>>> and Later:
>>>
>>> Oct 24 20:55:46 lin01 weewx[932]: engine: Starting up weewx version 3.6.1
>>> Oct 24 20:55:46 lin01 weewx[932]: engine: Station does not support 
>>> reading the time

Re: [weewx-user] Re: No data from station

2016-10-25 Thread 'Roland Ehle' via weewx-user
Thanks for your response. If necessary I am willing to downgrade to ubuntu
14.04

I am on Ubuntu 16.04 with Kernel 4.4.0-45-generic
I have
python-usb 1.0.0~b2
libusb-1.0-0 1.0.20-1
libusb-0.1-4 0.1.23-28

2016-10-25 2:38 GMT+02:00 mwall :

> On Monday, October 24, 2016 at 3:01:47 PM UTC-4, Roland Ehle wrote:
>>
>> Hi all,
>>
>> I have now attached my WMR300 to an Intel NUC running Ubuntu 16.04 LTS.
>> Unfortunately weewx 3.6.1 is unable to read data from the station.
>> Apparantly the reason is, that the USB device is reset by the Kernel,
>> according to the log:
>>
>> Oct 24 20:57:01 lin01 weewx[932]: engine: Loading station type WMR300
>> (weewx.drivers.wmr300)
>> Oct 24 20:57:01 lin01 weewx[932]: wmr300: driver version is 0.13
>> Oct 24 20:57:01 lin01 weewx[932]: wmr300: Found station at bus= device=
>> Oct 24 20:57:02 lin01 kernel: [ 2514.640999] usb 1-4: reset full-speed
>> USB device number 5 using xhci_hcd
>>
>> and Later:
>>
>> Oct 24 20:55:46 lin01 weewx[932]: engine: Starting up weewx version 3.6.1
>> Oct 24 20:55:46 lin01 weewx[932]: engine: Station does not support
>> reading the time
>> Oct 24 20:55:46 lin01 weewx[932]: wmr300: reading records since ***
>> N/A *** (N/A   )
>> Oct 24 20:55:46 lin01 weewx[932]: wmr300: read: failed attempt 1 of 5:
>> [Errno 110] Operation timed out
>> Oct 24 20:55:49 lin01 weewx[932]: wmr300: read: failed attempt 2 of 5:
>> [Errno 110] Operation timed out
>> Oct 24 20:55:52 lin01 weewx[932]: wmr300: read: failed attempt 3 of 5:
>> [Errno 110] Operation timed out
>> Oct 24 20:55:55 lin01 weewx[932]: wmr300: read: failed attempt 4 of 5:
>> [Errno 110] Operation timed out
>> Oct 24 20:55:58 lin01 weewx[932]: wmr300: read: failed attempt 5 of 5:
>> [Errno 110] Operation timed out
>>
>> I am about to give up and use a Raspberry Pi, but am hoping, that someone
>> has a hint.
>>
>
> roland,
>
> i think the timeouts are due to a usb initialization problem, which is in
> turn due to differences between how 'reset' works in different versions of
> libusb.
>
> from the "Found station at bus= device=" i would guess that you are
> running libusb 1.0, but could you post the exact versions of pyusb and
> libusb on your ubuntu system?
>
> i have been testing the wmr300 driver on ubuntu 14.04.1 with kernel
> 3.19.0-32-generic on x86_64 with these usb versions:
>
> python-usb 0.4.3-1
> libusb-1.0-0 1.0.17-1
> libusb-0.1-4 0.1.12-23.3
>
> m
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/weewx-user/YSz_IWnzOjE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.