Elevation reports incorrectly on webpage

24 views
Skip to first unread message

David Barto

unread,
Mar 9, 2020, 7:08:29 AM3/9/20
to weewx-user
I've got Weewx up and running (http://www.kdbarto.org/weather/Current.htm) and it all looks fine except the elevation.

The configuration shows

altitude = 850, foot # choose 'foot' or 'meter' for unit

The website shows
Altitude0 feet

Anyone care to point out what I've done wrong?

Searching the discussion group got me past the other setup issues for MacOS and I'm up and it looks good.

I did the following (maybe one of these was the problem)

sudo -H python ./get-pip.py
sudo -H pip install pysqlite
sudo -H pip install configobj
sudo -H pip install Cheetah --ignore-installed
sudo -H pip install Pillow
sudo -H pip install pyserial
sudo -H pip install pyusb
sudo -H pip install pyephem


[Station]
    
    # Description of the station location
    location = "Midland Road Extension, Poway CA"
    
    # Latitude and longitude in decimal degrees
    latitude = 32.983056
    longitude = 117.04
    
    # Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 850, foot    # Choose 'foot' or 'meter' for unit
    
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    station_type = Vantage
    
    # If you have a website, you may specify an URL
    #station_url = http://www.example.com
    
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 10 
    
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

gjr80

unread,
Mar 9, 2020, 7:23:31 AM3/9/20
to weewx-user
Hi,

The clue is in the config file comment for the altitude setting:

# Altitude of the station, with unit it is in. This is downloaded from
# from the station if the hardware supports it.

Your station supports a hardware altitude setting and that is likely overriding your weewx.conf altitude setting. Did you set altitude in the console when you setup your station? You can manually set the altitude through the console setup routine (ie pushing buttons) or you can use the WeeWX wee_device utility (http://weewx.com/docs/hardware.htm#vantage_notes). If you do use wee_device make sure you stop WeeWX first.

Gary

Reply all
Reply to author
Forward
0 new messages