Weewx install error

53 views
Skip to first unread message

John Lowry

unread,
Mar 25, 2024, 1:47:04 PM3/25/24
to weewx-user
Converting string to float in install.

HW: RPI5
SW: error on both RaspOS (bookworm) and Ubuntu

During install, the user is prompted for lat/long of the weather station.  
The installation fails with the following error output:

File "/usr/share/weewx/weectllib/station_actions.py", line 205, in config_config
    config_latlon(config_dict, latitude=latitude, longitude=longitude, no_prompt=no_prompt)
  File "/usr/share/weewx/weectllib/station_actions.py", line 345, in config_latlon
    config_dict['Station']['longitude'] = float(final_longitude)
                                          ^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: '0.00048.830545'

The value I entered was 48.830545, not 0.000etc

Any suggestions highly appreciated.

vince

unread,
Mar 25, 2024, 2:16:03 PM3/25/24
to weewx-user
Lets see the snippet for longitude from weewx.conf please...

John Lowry

unread,
Mar 25, 2024, 2:37:57 PM3/25/24
to weewx-user
Thanks !
(sheepish look, operator malfunction...)
Reply all
Reply to author
Forward
0 new messages