config for Peet Ultimeter 800

70 views
Skip to first unread message

Rich Painter

unread,
Nov 19, 2020, 9:35:22 PM11/19/20
to weewx...@googlegroups.com
I just freshly installed CentOS 7.9 64-bit and weewx 4.2.0

I have a Peet Ultimeter 800.

How do I create a configuration file for this station?

Alternative, what other "station_type" could be used to make the Peet work?

thanks
rich


--
Richard A. Painter, P.E. Retired


Tom Keffer

unread,
Nov 20, 2020, 7:57:44 AM11/20/20
to weewx-user
It's easiest just to use the utility wee_config with the --reconfigure option. It will prompt you for any needed options:

wee_config --reconfigure



--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CABh4ZQiHHndO0HuxO_2MsM%3D7aBYsu7OYKZqPmteQHMEzhDN0gA%40mail.gmail.com.

Rich Painter

unread,
Nov 21, 2020, 1:54:20 AM11/21/20
to weewx...@googlegroups.com
Tom,
OK.

I'm new to weewx. I originally tried to install on Ubuntu 20. I ran into problems.

Now, I installed 4.2.0 on CentOS 7.9 and first opened /etc/weewx/weewx.conf and weewx.conf.dist.

I was surprised to NOT see default sections for the various hardware supported. In fact, I didn't even see templates for a device.

Then I looked at http://www.weewx.com/docs/utilities.htm#wee_device_utility and it reported that it did NOT support the Peet Ultimeter.

So I was lost to know what Ultimeter parameters would go with it. After more stumbling around weewx.com I found some serial specs....
What was curious to me is that you have baud rate but not number of bits, parity, and number of stop bits, all typical specs for serial devices.

Anyway, I will study wee_config so I can config for an Ultimeter 800,

thanks
rich

Rich Painter

unread,
Nov 21, 2020, 2:49:48 AM11/21/20
to weewx...@googlegroups.com
Well, I ran into a problem.....
I installed weewx 4.2.0 by yum:
rpm --import http://weewx.com/keys.html
curl -s http://weewx.com/yum/weewx-el7.repo | sudo tee /etc/yum.repos.d/weewx.repo
yum install weewx

cd /etc/weewx
wee_config  --config=weewx.conf
Using configuration file weewx.conf
Internal logic error in config.py

I manually edited the weewx.conf file and added a section [Ultimeter] with the following I found on the web:
[Station]
    location = "Fremont Comm Site, Salida CO"
    latitude = 38.446630
    longitude = -106.010750
    altitude = 11000, foot
    station_type = Simulator
    station_url = http://www.cmrg.org
    rain_year_start = 1
    week_start = 6
[Ultimeter]
    # Connection type: serial or ethernet
    type = serial
    # If the connection type is serial, a port must be specified:
    #   Debian, Ubuntu, Redhat, Fedora, and SuSE:
    #     /dev/ttyUSB0 is a common USB port name
    #     /dev/ttyS0   is a common serial port name
    #   BSD:
    #     /dev/cuaU0   is a common serial port name
    port = /dev/serial-0
    # If the connection type is ethernet, an IP Address/hostname is required:
    #host = wlip.ka0wuc.org
    ######################################################
    # The rest of this section rarely needs any attention.
    # You can safely leave it "as is."
    ######################################################
    # Serial baud rate (usually 19200)
    baudrate = 2400
    # TCP port (when using the WeatherLinkIP)
    #tcp_port = 22222
    # TCP send delay (when using the WeatherLinkIP):
    #tcp_send_delay = 0.5
    # The id of your ISS station (usually 1). If you use a wind meter connected
    # to a anemometer transmitter kit, use its id
    iss_id = 1
    # How long to wait for a response from the station before giving up (in
    # seconds; must be greater than 2)
    timeout = 30
    # How long to wait before trying again (in seconds)
    wait_before_retry = 1.2
    # How many times to try before giving up:
    max_tries = 50
    #model_type = 2
    # The driver to use:
    driver = weewx.drivers.ultimeter

Then I ran the wee_config:
cd /etc/weewx
wee_config --reconfigure --config=weewx.conf

Using configuration file weewx.conf
Enter a brief description of the station, such as its location.  For example:
Santa's Workshop, North Pole
description [Fremont Comm Site, Salida CO]:

Specify altitude, with units 'foot' or 'meter'.  For example:
35, foot
12, meter
altitude [11000, foot]:

Specify latitude in decimal degrees, negative for south.
latitude [38.446630]:
Specify longitude in decimal degrees, negative for west.
longitude [-106.010750]:

You can register your station on weewx.com, where it will be included
in a map. You will need a unique URL to identify your station (such as a
website, or WeatherUnderground link).
Include station in the station registry (y/n)? [n]:

Indicate the preferred units for display: ['us', 'metric']
units [us]:

Installed drivers include:
  0) ?               (weewx.drivers.acurite)   No module named usb
  1) ?               (weewx.drivers.cc3000)    No module named serial
  2) ?               (weewx.drivers.fousb)     No module named usb
  3) Simulator       (weewx.drivers.simulator)
  4) ?               (weewx.drivers.te923)     No module named usb
  5) ?               (weewx.drivers.ultimeter) No module named serial
  6) Vantage         (weewx.drivers.vantage)
  7) ?               (weewx.drivers.wmr100)    No module named usb
  8) ?               (weewx.drivers.wmr200)    No module named usb
  9) ?               (weewx.drivers.wmr300)    No module named usb
 10) ?               (weewx.drivers.wmr9x8)    No module named serial
 11) WS1             (weewx.drivers.ws1)
 12) WS23xx          (weewx.drivers.ws23xx)
 13) ?               (weewx.drivers.ws28xx)    No module named usb
choose a driver [3]: 5
Traceback (most recent call last):
  File "/usr/share/weewx/wee_config", line 123, in <module>
    main()
  File "/usr/share/weewx/wee_config", line 117, in main
    config_mgr.run(args, options)
  File "/usr/share/weewx/weecfg/config.py", line 114, in run
    stn_info = self.get_stn_info(config_dict, options)
  File "/usr/share/weewx/weecfg/config.py", line 155, in get_stn_info
    stn_info.update(weecfg.prompt_for_driver_settings(driver, config_dict))
  File "/usr/share/weewx/weecfg/__init__.py", line 1685, in prompt_for_driver_settings
    __import__(driver)
  File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 59, in <module>
    import serial
ImportError: No module named serial

So, at this point I'm stuck.

Any suggestions?
thanks
rich

On Fri, Nov 20, 2020 at 5:57 AM Tom Keffer <tke...@gmail.com> wrote:

gjr80

unread,
Nov 21, 2020, 2:58:53 AM11/21/20
to weewx-user
Not sure what in wee_device told you it did not support the Ultimeter 800 but it is listed in the Hardware Guide as supported by the ultimeter driver. Looking at the ultimeter driver code it appears that it supports the Ultimeter 800. The driver comments say the console communicates at 2400 baud 8N1 no flow control, so that is probably why you are not invited to set some parameters.

Don’t worry about the lack of default sections in the distributed weewx.conf, they are added as required during install or when using wee_config to configure a new driver. If you installed WeeWX and did not specify the Ultimeter 800 during setup you will likely need to run wee_config to reconfigure WeeWX to use the ultimeter driver with your station. wee_device lets you configure/control/interact with your station once WeeWX is configured to use it.

Gary

gjr80

unread,
Nov 21, 2020, 3:02:53 AM11/21/20
to weewx-user
Looks like you are missing the pre-requisite pyserial. I’m no centos expert but perhaps the red hat install instructions will help.

Gary

Rich Painter

unread,
Nov 21, 2020, 5:23:46 PM11/21/20
to weewx...@googlegroups.com
that was the procedure I used....
something must be wrong with the epel-repo rpm for weewx....
ugh
thanks
rich

Reply all
Reply to author
Forward
0 new messages