Station elevation always reported incorrectly as 0 feet

60 views
Skip to first unread message

F Y

unread,
Sep 4, 2022, 6:56:31 PM9/4/22
to weewx-user
Weewx installed and running on Rpi4 using Vantage Pro2 station and Envoy with USB data logger.  The HTML web report generated ALWAYS reports station elevation as zero, regardless of entry in weewx.conf.  This then causes an incorrect reading for the barometer which is then outside the range set in weewx.conf thus causing error reports in the log.  I can change the range for the barometer to alieviate the log errors but still the elevation is reported as 0.  I have changed the conf file multiple times with different numbers, foot or meter, nothing seems to matter.  Web report is always reporting zero elevation.  Elevation is correctly set and reported in the Vantage console.  Also note, I have had this running on multiple operating systems including MAC, Linux Ubuntu and Raspberry...all web reports report station elevation as zero.

How should I go about resolving this issue?  Thanks in advance.

vince

unread,
Sep 4, 2022, 8:08:49 PM9/4/22
to weewx-user
As always, we'd need to see your logs with debug=1 and after you reset weewx.

Is it possible that you edited a different weewx.conf than the one that is actually running ?   Are you running under Docker perhaps ?

F Y

unread,
Sep 4, 2022, 8:40:27 PM9/4/22
to weewx-user
I've done fresh installs on multiple systems and they all report the same zero elevation.  Correct elevation is put in during the installation scripts per each OS.  I could run the debug logs for each one but seems a lot of data to parse out what should be a simple solution somewhere.  I'm pretty certain that the correct conf file is being edited, because other changes are updated correctly (after init.d stop/start).  I don't know what "docker" is so I don't know if Im running it or not.

Tom Keffer

unread,
Sep 4, 2022, 9:15:59 PM9/4/22
to weewx-user
For the Vantage stations, weewx gets the elevation from the hardware. The value in weewx.conf is ignored.

To set the value in the hardware, either consult your manual, or use the wee_device utility with the --set-altitude option.

--
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/873dec6d-7b2f-4dc2-9af1-9e5d8016d13en%40googlegroups.com.

Tom Keffer

unread,
Sep 4, 2022, 9:17:29 PM9/4/22
to weewx-user
One other note: you can see the value for altitude used by the hardware by using the --info option:

wee_device --info

Make sure you stop weewxd before using wee_device.

F Y

unread,
Sep 5, 2022, 2:02:09 PM9/5/22
to weewx-user
I figured the info was coming from the station, not the conf file.  Checking with wee_device --info confirmed a zero altitude.  Unusual since the Vantage Console reports the correct altitude.  Anyway, after running the set_altitude option everything is as it should be!  

Many Thanks to tkeffer!  Situation resolved!

Reply all
Reply to author
Forward
0 new messages