Hello. So, I abandoned the Interceptor for use with my WS-2902D as it went
nowhere. I decided to try the Ambient Weather API Driver and registered for
an API key with Ambient Weather. However, when I run through the process
detailed here, everything installs just fine but I get these errors when
attempting to start Weewx.
Dec 10 12:06:53 raspberrypi weewx[1500]: Starting weewx weather system:
weewx
Dec 10 12:06:53 raspberrypi weewx[1511]: Error parsing config file: Invalid
line ('ambientweatherapi# WEEWX CONFIGURATION FILE') (matched as neither
section nor keyword) at line 1. File /etc/weewx/weewx.conf
Dec 10 12:06:53 raspberrypi weewx[1511]: **** Traceback (most recent
call last):
Dec 10 12:06:53 raspberrypi weewx[1511]: **** File
"/usr/share/weewx/weewxd", line 88, in main
Dec 10 12:06:53 raspberrypi weewx[1511]: **** config_path,
config_dict = weecfg.read_config(options.config_path, list(args))
Dec 10 12:06:53 raspberrypi weewx[1511]: **** File
"/usr/share/weewx/weecfg/__init__.py", line 150, in read_config
Dec 10 12:06:53 raspberrypi weewx[1511]: **** config_dict =
configobj.ConfigObj(config_path,
Dec 10 12:06:53 raspberrypi weewx[1511]: **** File
"/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
Dec 10 12:06:53 raspberrypi weewx[1511]: **** self._load(infile,
configspec)
Dec 10 12:06:53 raspberrypi weewx[1511]: **** File
"/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
Dec 10 12:06:53 raspberrypi weewx[1511]: **** raise error
Dec 10 12:06:53 raspberrypi weewx[1511]: **** configobj.ParseError:
Invalid line ('ambientweatherapi# WEEWX CONFIGURATION FILE') (matched as
neither section nor keyword) at line 1. File /etc/weewx/weewx.conf
Dec 10 12:06:53 raspberrypi weewx[1512]: failed!
Dec 10 12:06:53 raspberrypi systemd[1]: weewx.service: Control process
exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ An ExecStart= process belonging to unit weewx.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Dec 10 12:06:53 raspberrypi systemd[1]: weewx.service: Failed with result
'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit weewx.service has entered the 'failed' state with result
'exit-code'.
Dec 10 12:06:53 raspberrypi systemd[1]: Failed to start LSB: weewx weather
system.
░░ Subject: A start job for unit weewx.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit weewx.service has finished with a failure.
░░
░░ The job identifier is 1427 and the job result is failed.
Dec 10 12:06:53 raspberrypi sudo[1492]: pam_unix(sudo:session): session
closed for user root
The configuration file seems fine but it's not liking how it's in the file?
# Set to type of station hardware. There must be a corresponding stanza
# in this file, which includes a value for the 'driver' option.
station_type = Ambientweatherapi
# If you have a website, you may specify an URL. This is required if you
# intend to register your station.
#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 = 1
# Start of week (0=Monday, 6=Sunday)
week_start = 6
##############################################################################
[Ambientweatherapi]
# This section for the AmbientWeatherAPI driver for weewx
# The time (in seconds) between LOOP packets and getting API data
# The ObserverIP only pushes data every 60 seconds.
loop_interval = 60
#API Log level
log_level = ERROR
#Log file location
log_file = /etc/weewx/LOG
#URL to the Ambient Weather API
api_url = 'https://api.ambientweather.net/v1'
#Ambient Weather API App Key
api_app_key = ''
#Ambient Weather API Key
api_key =
'54eae45991714a89a9d6879d9c740cb1fc3eb6a6a40a49afb06466150752c2d7'
#Ambient Weather Use Meteobridge (default if False)
#use_meteobridge = ''
# Name of Hardware device.
hardware = 'Ambient Weather WS-2902D'
# The driver to use:
driver = user.ambientweatherapi
##############################################################################
Does anyone have any insight as to why this won't work? I did this with a
fresh install of Raspbian, Weewx and all of the dependencies for Python3.
Thanks.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/0d41a3c4-db6a-4cae-b965-eb7186a7ac27n%40googlegroups.com.