I am trying to use Weewx with WeatherDuino Pro which is basically a custom built system around an Arduino Nano v3 using Davis VP2 serial emulation as far as communication is concerned.
I am facing some issues and knowing nothing about Python I was wondering if someone could please help me understand the nature of the problem I am facing so as to perhaps persuade the author to make some changes or tweak a Weewx driver,
This is what I know: once connected the console shows up properly as a /dev/ttyUSB0 using CH341.ko and usbserial.
A connection with minicom --baudrate 19200 --device /dev/ttyUSB0 allows to successfully issue and obtain response to a number of commands such as TEST, LOOP etc.
Once I issue a wee_config_device –info I get the following response:
Using configuration file /etc/weewx/weewx.conf
Using Vantage driver version 3.0 (weewx.drivers.vantage)
Querying...
Davis Vantage EEPROM settings:
CONSOLE TYPE: VantagePro2
CONSOLE FIRMWARE:
Date: Sep 29 2009
Version: 1.90
CONSOLE SETTINGS:
Archive interval: 0 (seconds)
Altitude: 0 (foot)
Wind cup type: small
Rain bucket type: 0.01 inches
Rain year start: 0
Onboard time: 2015-04-29 22:54:39
CONSOLE DISPLAY UNITS:
Barometer: inHg
Temperature: degree_F
Rain: inch
Wind: mile_per_hour
CONSOLE STATION INFO:
Latitude (onboard): +0.0
Longitude (onboard): +0.0
Use manual or auto DST? AUTO
DST setting: N/A
Use GMT offset or zone code? ZONE_CODE
Time zone code: 0
GMT offset: N/A
TRANSMITTERS:
Channel 1: iss
Channel 2: iss
Channel 3: iss
Channel 4: iss
Channel 5: iss
Channel 6: iss
Channel 7: iss
Channel 8: iss
Traceback (most recent call last):
File "/usr/bin/wee_config_device", line 43, in <module>
main()
File "/usr/bin/wee_config_device", line 40, in main
device.configure(config_dict)
File "/usr/share/weewx/weewx/drivers/__init__.py", line 65, in configure
self.do_options(options, parser, config_dict, prompt)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1747, in do_options
self.show_info(station)
File "/usr/share/weewx/weewx/drivers/vantage.py", line 1909, in show_info
Outside Humidity: %(outHumid)+.0f%%""" % calibration_dict
TypeError: format requires a mapping
When I try to start Weewx (service weewx start) I get this in the /var/log/syslog:
**** File "/usr/share/weewx/weewx/engine.py", line 631, in _catchup
Apr 29 22:55:59 Cloud weewx[9492]: **** for record in generator(lastgood_ts):
Apr 29 22:55:59 Cloud weewx[9492]: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 543, in genArchiveRecords
Apr 29 22:55:59 Cloud weewx[9492]: **** _record = self._unpackArchivePacket(_record_string)
Apr 29 22:55:59 Cloud weewx[9492]: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 1295, in _unpackArchivePacket
Apr 29 22:55:59 Cloud weewx[9492]: **** self.iss_id, raw_archive_packet['number_of_wind_samples'])
Apr 29 22:55:59 Cloud weewx[9492]: **** File "/usr/share/weewx/weewx/drivers/vantage.py", line 1384, in _rxcheck
Apr 29 22:55:59 Cloud weewx[9492]: **** _frac = number_of_wind_samples * 100.0 / _expected_packets
Apr 29 22:55:59 Cloud weewx[9492]: **** ZeroDivisionError: float division by zero
Apr 29 22:55:59 Cloud weewx[9492]: **** Exiting.
Thanks in advance for any 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+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
wee_config_device --info
Using configuration file /etc/weewx/weewx.conf
Using Vantage version 3.0 (weewx.drivers.vantage)
Querying...
Davis Vantage EEPROM settings:
CONSOLE TYPE: VantagePro2
CONSOLE FIRMWARE:
Date: Sep 29 2009
Version: 1.90
CONSOLE SETTINGS:
Archive interval: 300 (seconds)
Altitude: 406 (meter)
Wind cup type: small
Rain bucket type: 0.2 MM
Rain year start: 1
Onboard time: 2015-05-02 02:25:15
CONSOLE DISPLAY UNITS:
Barometer: hPa
Temperature: degree_10F
Rain: mm
Wind: mile_per_hour
CONSOLE STATION INFO:
Latitude (onboard): +39.2
Longitude (onboard): -8.9
Use manual or auto DST? MANUAL
DST setting: OFF
Use GMT offset or zone code? ZONE_CODE
Time zone code: 0
GMT offset: N/A
TRANSMITTERS:
Channel 1: iss
Channel 2: iss
Channel 3: iss
Channel 4: iss
Channel 5: iss
Channel 6: iss
Channel 7: iss
Channel 8: iss