[weewx-user] Re: meteostick driver issues with wind direction and wee_device

2017-04-09 Thread gjr80
Hi,

Notwithstanding Matthew's reply you might find you have more success with 

$ wee_device --show-options

rather than 

$ wee_device --show options

They are different.

Gary

On Monday, 10 April 2017 09:46:13 UTC+10, Sef Konings wrote:
>
> About the wee_device fault message.   I thought I had stopped weewx 
> before, but today I have been trying it again, and I have stopped weewx 
> before as you can see:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *root@RPi-Weewx:/etc/init.d# ps -ef | grep weewxroot  5282  5210  0 
> 01:35 pts/000:00:00 grep weewxroot@RPi-Weewx:/etc/init.d# wee_device 
> --show optionsTraceback (most recent call last):  File 
> "/usr/bin/wee_device", line 54, in main()  File 
> "/usr/bin/wee_device", line 19, in mainconfig_fn, config_dict = 
> weecfg.read_config(None, sys.argv[1:])  File 
> "/usr/share/weewx/weecfg/__init__.py", line 221, in read_config
> locations=locations, file_name=file_name)  File 
> "/usr/share/weewx/weecfg/__init__.py", line 196, in find_fileraise 
> IOError("%s is not a file" % file_path)IOError: options is not a file*
>
> Do you have any clue?, 
>
>

-- 
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.


[weewx-user] Re: meteostick driver issues with wind direction and wee_device

2017-04-09 Thread mwall


On Sunday, April 9, 2017 at 7:46:13 PM UTC-4, Sef Konings wrote:
>
> *IOError: options is not a file*
>
> Do you have any clue?, 
>

please update to the latest version of the driver (0.49 as of 09april2017).

 

> I have just another question about weewx and the meteostick:
>
> Is there a way to measure the ISS battery voltage via the meteostick?
>

i think the meteostick reports solar panel voltage and supercap voltage
 

-- 
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.


[weewx-user] Re: meteostick driver issues with wind direction and wee_device

2017-04-09 Thread Sef Konings
Hi Math and Graig, thanks for your reaction.  It looks like both solutions 
are working in practice.   At this moment I am using the "Graig" solution, 
because it was shorter...

About the wee_device fault message.   I thought I had stopped weewx before, 
but today I have been trying it again, and I have stopped weewx before as 
you can see:














*root@RPi-Weewx:/etc/init.d# ps -ef | grep weewxroot  5282  5210  0 
01:35 pts/000:00:00 grep weewxroot@RPi-Weewx:/etc/init.d# wee_device 
--show optionsTraceback (most recent call last):  File 
"/usr/bin/wee_device", line 54, in main()  File 
"/usr/bin/wee_device", line 19, in mainconfig_fn, config_dict = 
weecfg.read_config(None, sys.argv[1:])  File 
"/usr/share/weewx/weecfg/__init__.py", line 221, in read_config
locations=locations, file_name=file_name)  File 
"/usr/share/weewx/weecfg/__init__.py", line 196, in find_fileraise 
IOError("%s is not a file" % file_path)IOError: options is not a file*

Do you have any clue?, 

I have just another question about weewx and the meteostick:

Is there a way to measure the ISS battery voltage via the meteostick?



Op zondag 9 april 2017 23:52:58 UTC+2 schreef Craig Thom:
>
>
>
> On Sunday, April 9, 2017 at 8:08:19 AM UTC-4, mwall wrote:
>>
>> [StdCalibrate]
>> [[Corrections]]
>> windDir = windDir + 180 if windDir < 180 else windDir - 180
>>
>> I think you could also use 
>
> windDir = (windDir + 180) % 360
>
>
>

-- 
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.


[weewx-user] Re: meteostick driver issues with wind direction and wee_device

2017-04-09 Thread Craig Thom


On Sunday, April 9, 2017 at 8:08:19 AM UTC-4, mwall wrote:
>
> [StdCalibrate]
> [[Corrections]]
> windDir = windDir + 180 if windDir < 180 else windDir - 180
>
> I think you could also use 

windDir = (windDir + 180) % 360


-- 
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.


[weewx-user] Re: v3.7.1 - WMR 300 - WeeWxIOError: [Errno 110]

2017-04-09 Thread Miguel Iniesta

Hello Matthew,

The computer I'm using is a Intel NUC5PPYB (4GB RAM, 64GB SSD)
The new driver produces the same error.
Log attached.

Thank you very much for your support.



On Sunday, April 9, 2017 at 8:47:04 PM UTC+2, mwall wrote:
>
>
> miguel,
>
> on what kind of computer are you running ubuntu 16.04 and weewx 3.7.1?
>
> i'm pretty sure that given *exactly* the same starting conditions, the 
> wmr300 driver in weewx 3.6.2 will *not* work with the same station.  
> unfortunately it is a bit difficult to test precisely, and it might be a 
> function of the usb timing (which makes it depend on the type of computer 
> on which you run it).
>
> when the station has not been connected via usb for awhile, it stops 
> sending data.  apparently a 'write' command is required to get it to start 
> talking again.
>
> our problem has been trying to distinguish different types of usb errors, 
> since some versions of libusb provide reliable errno while others do not.
>
> it is confounded by the fact that we want to report timeouts during normal 
> operations, but we want to take specific action when timeouts happen during 
> a specific part of communication initiation.
>
> please try the attached wmr300-0.19rc1.py
>
> it has a very crude implementation of "when the driver starts up, write 
> bytes to the station and ignore any failures, then start normal processing".
>
> 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.
Apr  9 21:44:37 dante kernel: [  746.803061] usb 1-4: new full-speed USB device 
number 4 using xhci_hcd
Apr  9 21:44:37 dante kernel: [  746.949714] usb 1-4: New USB device found, 
idVendor=0fde, idProduct=ca08
Apr  9 21:44:37 dante kernel: [  746.949731] usb 1-4: New USB device strings: 
Mfr=1, Product=2, SerialNumber=0
Apr  9 21:44:37 dante kernel: [  746.949741] usb 1-4: Product: USB HID 
Bootloader
Apr  9 21:44:37 dante kernel: [  746.949751] usb 1-4: Manufacturer: Microchip 
Technology Inc.
Apr  9 21:44:37 dante mtp-probe: checking bus 1, device 4: 
"/sys/devices/pci:00/:00:14.0/usb1/1-4"
Apr  9 21:44:37 dante mtp-probe: bus: 1, device: 4 was not an MTP device
Apr  9 21:44:37 dante kernel: [  747.015480] usbcore: registered new interface 
driver usbhid
Apr  9 21:44:37 dante kernel: [  747.015484] usbhid: USB HID core driver
Apr  9 21:44:37 dante kernel: [  747.026500] hid-generic 0003:0FDE:CA08.0001: 
hiddev0,hidraw0: USB HID v1.11 Device [Microchip Technology Inc. USB HID 
Bootloader] on usb-:00:14.0-4/input0
Apr  9 21:45:51 dante systemd[1]: Starting LSB: weewx weather system...
Apr  9 21:45:51 dante weewx[1429]:  * Starting weewx weather system weewx
Apr  9 21:45:51 dante weewx[1440]: engine: Initializing weewx version 3.7.1
Apr  9 21:45:51 dante weewx[1440]: engine: Using Python 2.7.12 (default, Nov 19 
2016, 06:48:10) #012[GCC 5.4.0 20160609]
Apr  9 21:45:51 dante weewx[1440]: engine: Platform 
Linux-4.8.0-46-generic-x86_64-with-Ubuntu-16.04-xenial
Apr  9 21:45:51 dante weewx[1440]: engine: Locale is 
'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=es_ES.UTF-8;LC_TIME=es_ES.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=es_ES.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=es_ES.UTF-8;LC_ADDRESS=es_ES.UTF-8;LC_TELEPHONE=es_ES.UTF-8;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=es_ES.UTF-8'
Apr  9 21:45:51 dante weewx[1440]: engine: pid file is /var/run/weewx.pid
Apr  9 21:45:51 dante weewx[1444]: engine: Using configuration file 
/home/weewx/weewx.conf
Apr  9 21:45:51 dante weewx[1444]: engine: debug is 1
Apr  9 21:45:51 dante weewx[1444]: engine: Initializing engine
Apr  9 21:45:51 dante systemd[1]: Started LSB: weewx weather system.
Apr  9 21:45:51 dante weewx[1429]:...done.
Apr  9 21:45:51 dante weewx[1444]: engine: Loading station type WMR300 
(weewx.drivers.wmr300)
Apr  9 21:45:52 dante weewx[1444]: wmr300: driver version is 0.19rc1
Apr  9 21:45:52 dante weewx[1444]: wmr300: usb info: pyusb_version=1.0.0b2
Apr  9 21:45:52 dante weewx[1444]: wmr300: sensor map is {'outHumidity': 
'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': 'windchill', 
'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', 'heatindex': 
'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': 'wind_gust_dir', 
'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 'dewpoint_4', 
'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', 'extraDewpoint7': 
'dewpoint_8', 'dewpoint': 'dewpoint_1', 'extraDewpoint5': 'dewpoint_6', 
'extraHumid6': 'humidity_7', 'pressure': 'pressure', 'extraHumid4': 
'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': 'humidity_3', 
'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', 'extraTemp6': 
'temperature_7', 'extraTemp7': 'temperature_8', 'extraTemp4': 'temperature_5', 
'extraTemp5': 'temperature_6', 'extraTemp2': 'tempe

[weewx-user] Re: v3.7.1 - WMR 300 - WeeWxIOError: [Errno 110]

2017-04-09 Thread mwall
On Sunday, April 9, 2017 at 12:29:25 PM UTC-4, Miguel Iniesta wrote:
>
> Hello,
>
> Unfortunately I’ve found the problem that v3.7.1 running on Ubuntu 16.04 
> connected to an Oregon WMR300 station does not read data from the station 
> and produces error WeeWxIOError: [Errno *110*] 
> 
>
> (Log attached)
>
> v3.6.2 on Rpi2 works fine with same station.
>

miguel,

on what kind of computer are you running ubuntu 16.04 and weewx 3.7.1?

i'm pretty sure that given *exactly* the same starting conditions, the 
wmr300 driver in weewx 3.6.2 will *not* work with the same station.  
unfortunately it is a bit difficult to test precisely, and it might be a 
function of the usb timing (which makes it depend on the type of computer 
on which you run it).

when the station has not been connected via usb for awhile, it stops 
sending data.  apparently a 'write' command is required to get it to start 
talking again.

our problem has been trying to distinguish different types of usb errors, 
since some versions of libusb provide reliable errno while others do not.

it is confounded by the fact that we want to report timeouts during normal 
operations, but we want to take specific action when timeouts happen during 
a specific part of communication initiation.

please try the attached wmr300-0.19rc1.py

it has a very crude implementation of "when the driver starts up, write 
bytes to the station and ignore any failures, then start normal processing".

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/heatindex; 61 bytes
D4 - wind/windchill; 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 A

[weewx-user] Barometric pressure accuracy

2017-04-09 Thread Craig Thom
About twenty-six hours ago I got my BMP280 pressure sensor up and running. 
 Now the barometric pressure calculated by weewx is within 0.02 inHg of 
what the airport less than two miles away reports as sea level pressure. 
That's closer than what my Acurite display shows.

Go team!

-- 
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.


[weewx-user] v3.7.1 - WMR 300 - WeeWxIOError: [Errno 110]

2017-04-09 Thread Miguel Iniesta
Hello,

Unfortunately I’ve found the problem that v3.7.1 running on Ubuntu 16.04 
connected to an Oregon WMR300 station does not read data from the station 
and produces error WeeWxIOError: [Errno *110*] 


(Log attached)

v3.6.2 on Rpi2 works fine with same station.


Thank you very much for your help.

-- 
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.
Apr  9 17:12:20 dante kernel: [11601.146967] usb 1-4: new full-speed USB device 
number 6 using xhci_hcd
Apr  9 17:12:21 dante kernel: [11601.295077] usb 1-4: New USB device found, 
idVendor=0fde, idProduct=ca08
Apr  9 17:12:21 dante kernel: [11601.295093] usb 1-4: New USB device strings: 
Mfr=1, Product=2, SerialNumber=0
Apr  9 17:12:21 dante kernel: [11601.295104] usb 1-4: Product: USB HID 
Bootloader
Apr  9 17:12:21 dante kernel: [11601.295114] usb 1-4: Manufacturer: Microchip 
Technology Inc.
Apr  9 17:12:21 dante kernel: [11601.315242] hid-generic 0003:0FDE:CA08.0003: 
hiddev0,hidraw0: USB HID v1.11 Device [Microchip Technology Inc. USB HID 
Bootloader] on usb-:00:14.0-4/input0
Apr  9 17:12:21 dante mtp-probe: checking bus 1, device 6: 
"/sys/devices/pci:00/:00:14.0/usb1/1-4"
Apr  9 17:12:21 dante mtp-probe: bus: 1, device: 6 was not an MTP device
Apr  9 17:13:36 dante systemd[1]: Starting LSB: weewx weather system...
Apr  9 17:13:36 dante weewx[2520]:  * Starting weewx weather system weewx
Apr  9 17:13:37 dante weewx[2531]: engine: Initializing weewx version 3.7.1
Apr  9 17:13:37 dante weewx[2531]: engine: Using Python 2.7.12 (default, Nov 19 
2016, 06:48:10) #012[GCC 5.4.0 20160609]
Apr  9 17:13:37 dante weewx[2531]: engine: Platform 
Linux-4.8.0-46-generic-x86_64-with-Ubuntu-16.04-xenial
Apr  9 17:13:37 dante weewx[2531]: engine: Locale is 
'LC_CTYPE=en_US.UTF-8;LC_NUMERIC=es_ES.UTF-8;LC_TIME=es_ES.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=es_ES.UTF-8;LC_MESSAGES=en_US.UTF-8;LC_PAPER=es_ES.UTF-8;LC_NAME=es_ES.UTF-8;LC_ADDRESS=es_ES.UTF-8;LC_TELEPHONE=es_ES.UTF-8;LC_MEASUREMENT=es_ES.UTF-8;LC_IDENTIFICATION=es_ES.UTF-8'
Apr  9 17:13:37 dante weewx[2531]: engine: pid file is /var/run/weewx.pid
Apr  9 17:13:37 dante weewx[2535]: engine: Using configuration file 
/home/weewx/weewx.conf
Apr  9 17:13:37 dante weewx[2535]: engine: debug is 1
Apr  9 17:13:37 dante weewx[2535]: engine: Initializing engine
Apr  9 17:13:37 dante weewx[2535]: engine: Loading station type WMR300 
(weewx.drivers.wmr300)
Apr  9 17:13:37 dante weewx[2520]:...done.
Apr  9 17:13:37 dante weewx[2535]: wmr300: driver version is 0.18
Apr  9 17:13:37 dante systemd[1]: Started LSB: weewx weather system.
Apr  9 17:13:37 dante weewx[2535]: wmr300: usb info: pyusb_version=1.0.0b2
Apr  9 17:13:37 dante weewx[2535]: wmr300: sensor map is {'outHumidity': 
'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': 'windchill', 
'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', 'heatindex': 
'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': 'wind_gust_dir', 
'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 'dewpoint_4', 
'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', 'extraDewpoint7': 
'dewpoint_8', 'dewpoint': 'dewpoint_1', 'extraDewpoint5': 'dewpoint_6', 
'extraHumid6': 'humidity_7', 'pressure': 'pressure', 'extraHumid4': 
'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': 'humidity_3', 
'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', 'extraTemp6': 
'temperature_7', 'extraTemp7': 'temperature_8', 'extraTemp4': 'temperature_5', 
'extraTemp5': 'temperature_6', 'extraTemp2': 'temperature_3', 'extraTemp3': 
'temperature_4', 'extraTemp1': 'temperature_2', 'extraHeatindex3': 
'heatindex_4', 'extraHeatindex2': 'heatindex_3', 'extraHeatindex1': 
'heatindex_2', 'extraHeatindex7': 'heatindex_8', 'extraHeatindex6': 
'heatindex_7', 'extraHeatindex5': 'heatindex_6', 'extraHumid7': 'humidity_8', 
'extraHeatindex4': 'heatindex_5', 'windDir': 'wind_dir', 'outTemp': 
'temperature_1', 'windSpeed': 'wind_avg', 'inHumidity': 'humidity_0', 
'windGust': 'wind_gust'}
Apr  9 17:13:37 dante weewx[2535]: wmr300: Found station at bus= device=
Apr  9 17:13:37 dante kernel: [11677.625722] usb 1-4: reset full-speed USB 
device number 6 using xhci_hcd
Apr  9 17:13:37 dante weewx[2535]: engine: Loading service 
weewx.engine.StdTimeSynch
Apr  9 17:13:37 dante weewx[2535]: engine: Finished loading service 
weewx.engine.StdTimeSynch
Apr  9 17:13:37 dante weewx[2535]: engine: Loading service 
weewx.engine.StdConvert
Apr  9 17:13:37 dante weewx[2535]: engine: StdConvert target unit is 0x1
Apr  9 17:13:37 dante weewx[2535]: engine: Finished loading service 
weewx.engine.StdConvert
Apr  9 17:13:37 dante weewx[2535]: engi

[weewx-user] Re: meteostick driver issues with wind direction and wee_device

2017-04-09 Thread mwall
On Sunday, April 9, 2017 at 8:00:05 AM UTC-4, mwall wrote:
>
> > Can you please give me a hint how to correct the winddirection for 180 
> degrees using the meteostick ?
>

try the [StdCalibrate] section of the weewx configuration.  for example, 
something like this:

[StdCalibrate]
[[Corrections]]
windDir = windDir + 180 if windDir < 180 else windDir - 180

you should not have to modify the meteotemplate driver (or any other driver)

> and do you have an idea what goes wrong using the wee_device 
> --show-options command ?
>

is some other process using the meteostick?  for example, you must stop 
weewx before running wee_device.

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.


[weewx-user] meteostick driver issues with wind direction and wee_device

2017-04-09 Thread mwall
> Dear Matthew,
>
> Since 2013, I am a happy user of weewx that I am running on a 
RaspBerry-Pi  to present the 
> weatherdata on a website:http://sekoni.nl/weewx/
> Last month, I have swithed over to a meteostick, using your driver, to 
collect data from my
> new Davis vantage-pro2 weatherstation.
>
> Yesterday, I have mounted the windspeed, and wind-directionsensor in my 
antennatower.  
> Because of the position of antenna's in certain directions, it is more 
conveniant  for me, to
> mount the windvane pointing to south instead of heading north.  You can 
correct for the
> winddirection on the Vantage console, and change North for South. The 
zeropoint can be
> moved 180 degrees.
>
>Now my question: how could this be done on the meteostick?  I think it is 
no elegant solution
> to change the meteostick.py driver file.  I have been searching for a 
meteostick.conf file,
> but intill now I didn't find it.
>
> When I use the option wee_device --  show options   I am getting this 
fault message:
>
> wee_device  --show-options
> Using configuration file /etc/weewx/weewx.conf
> Using Meteostick driver version 0.46 (user.meteostick)
> Traceback (most recent call last):
>   File "/usr/bin/wee_device", line 54, in 
> main()
>   File "/usr/bin/wee_device", line 51, in main
> device.configure(config_dict)
>   File "/usr/share/weewx/weewx/drivers/__init__.py", line 69, in configure
> self.do_options(options, parser, config_dict, prompt)
>   File "/usr/share/weewx/user/meteostick.py", line 1359, in do_options
> driver = MeteostickDriver(None, config_dict)
>   File "/usr/share/weewx/user/meteostick.py", line 267, in __init__
> self.station.reset()
>   File "/usr/share/weewx/user/meteostick.py", line 572, in reset
> c = self.serial_port.read(1)
>   File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 
453, in read
> buf = os.read(self.fd, size-len(read))
> OSError: [Errno 11] Resource temporarily unavailable
> 
> Can you please give me a hint how to correct the winddirection for 180 
degrees using the meteostick ?
> and do you have an idea what goes wrong using the wee_device 
--show-options command ?
> 
> Thank you for your attention !
> 
> many regards,
>
>
> Sef Konings
> 
> Pa 3 dtw
> 
> Echt, Netherlands.


-- 
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.


[weewx-user] Re: weeewx 3.7.1 maps wrong sensor

2017-04-09 Thread mwall


On Sunday, April 9, 2017 at 2:32:37 AM UTC-4, Ralf Buck wrote:
>
> hello
>
>  ive a problem with my TFA weatherstation and weewx
>
> weewx maps the wrong sensor, config is ok, is it perhaps a bug?
> (e.g. t_1 sensor, weewx use t_4)
>

please see "changes to sensor mapping" in the upgrade guide:

http://weewx.com/docs/upgrading.htm#From_V3.6_or_earlier

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.


[weewx-user] Re: weeewx 3.7.1 maps wrong sensor

2017-04-09 Thread 'Ralf Buck' via weewx-user
back to 3.6.2 and it works again

Am Sonntag, 9. April 2017 08:32:37 UTC+2 schrieb Ralf Buck:
>
> hello
>
>  ive a problem with my TFA weatherstation and weewx
>
> weewx maps the wrong sensor, config is ok, is it perhaps a bug?
> (e.g. t_1 sensor, weewx use t_4)
>
> weewx.conf
>
> # The default configuration associates the channel 1 sensor with 
> outTemp
> # and outHumidity.  To change this, or to associate other channels with
> # specific columns in the database schema, use the following map.
> [[map]]
> bat_4 = outBatteryStatus
> bat_1 = extraBatteryStatus2
> bat_2 = extraBatteryStatus1
> bat_5 = extraBatteryStatus4
> bat_3 = extraBatteryStatus3
> bat_wind = windBatteryStatus
> t_in = inTemp
> link_rain = rainLinkStatus
> t_5 = extraTemp4
> h_in = inHumidity
> h_4 = extraHumid3
> h_5 = extraHumid4
> h_2 = extraHumid1
> h_1 = extraHumid3
> h_3 = outHumidity
> t_2 = extraTemp1
> link_2 = extraLinkStatus1
> link_uv = uvLinkStatus
> link_wind = windLinkStatus
> uv = UV
> bat_uv = uvBatteryStatus
> link_5 = extraLinkStatus4
> bat_rain = rainBatteryStatus
> link_3 = extraLinkStatus2
> *t_1 = extraTemp2*
> link_1 = outLinkStatus
> *t_4 = outTemp*
> t_3 = extraTemp3
> link_4 = extraLinkStatus3
>
>
> syslog:
> Apr  9 08:26:23 raspberrypi weewx[2056]: te923: driver version is 0.24
> Apr  9 08:26:23 raspberrypi weewx[2056]: te923: polling interval is 10
> Apr  9 08:26:23 raspberrypi weewx[2056]: te923: sensor map is 
> {'extraBatteryStatus1': 'bat_2', *'outTemp': 't_1'*, 'outHumidity': 
> 'h_1', 'extraHumid4': 'h_5', 'uvBatteryStatus': 'bat_uv', 'extraHumid2': 
> 'h_3', 'extraHumid3': 'h_4', 'rainLinkStatus': 'link_rain', 'extraHumid1': 
> 'h_2', 'rainBatteryStatus': 'bat_rain', 'extraTemp2': 't_3', 'extraTemp4': 
> 't_5', 'uvLinkStatus': 'link_uv', 'windLinkStatus': 'link_wind', 
> 'outLinkStatus': 'link_1', 'extraBatteryStatus2': 'bat_3', 
> 'extraBatteryStatus3': 'bat_4', 'windBatteryStatus': 'bat_wind', 
> 'outTempBatteryStatus': 'bat_1', 'extraBatteryStatus4': 'bat_5', 
> 'extraTemp3': 't_4', 'extraLinkStatus1': 'link_2', 'extraLinkStatus2': 
> 'link_3', 'extraLinkStatus3': 'link_4', 'extraLinkStatus4': 'link_5', 
> 'inTemp': 't_in', 'inHumidity': 'h_in', 'extraTemp1': 't_2'}
> Apr  9 08:26:23 raspberrypi weewx[2056]: te923: Found device on USB 
> bus=001 device=007
>
>
>
>

-- 
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.