Hi all,
I have finally had success with getting my Ambient Weather WS-2902 somewhat
communicating with Weewx. I used the Ambient Weather API driver and it
seems to be running. However, it isn't receiving any data back. There seems
to be something about it not getting any device information. Would anybody
know what this means:
● weewx.service - LSB: weewx weather system
Loaded: loaded (/etc/init.d/weewx; generated)
Active: active (running) since Sun 2023-12-10 12:32:12 PST; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 10672 ExecStart=/etc/init.d/weewx start (code=exited,
status=0/SUCCESS)
Tasks: 1 (limit: 1595)
CPU: 1.393s
CGroup: /system.slice/weewx.service
└─10687 python3 /usr/share/weewx/weewxd --daemon
--pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
Dec 10 12:32:16 raspberrypi weewxd[10687]: ambientweatherapi driver
encountered an error.
Dec 10 12:32:16 raspberrypi python3[10687]: weewx[10687] ERROR root:
ambientweatherapi driver encountered an error.
Dec 10 12:32:16 raspberrypi weewxd[10687]: Error caught was: AmbientAPI
get_devices() returned empty dict
Dec 10 12:32:16 raspberrypi python3[10687]: weewx[10687] ERROR root: Error
caught was: AmbientAPI get_devices() returned empty dict
Dec 10 12:32:16 raspberrypi python3[10687]: weewx[10687] DEBUG root:
============Starting Packet Build============
Dec 10 12:32:16 raspberrypi weewxd[10687]: ambientweatherapi driver had an
error sending data to weewx.
Dec 10 12:32:16 raspberrypi python3[10687]: weewx[10687] ERROR root:
ambientweatherapi driver had an error sending data to weewx.
Dec 10 12:32:16 raspberrypi weewxd[10687]: Error caught was: Previous error
occured, skipping packet build.
Dec 10 12:32:16 raspberrypi python3[10687]: weewx[10687] ERROR root: Error
caught was: Previous error occured, skipping packet build.
Dec 10 12:32:16 raspberrypi python3[10687]: weewx[10687] DEBUG root: Going
to sleep
It seems to be returning nothing and skipping packet builds. In the API
driver I just have the API Key filled in because I couldn't find anywhere
to get an Ambient Weather API App Key. Would anyone know where to obtain
this? (if it's even necessary) This is how I have the driver set up in
weewx.conf:
##############################################################################
[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 =
'54eae45991714a89a9d6879d9c740cb1fc3eb6a6a40a49afb06466150752c2d7'
#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
##############################################################################
--
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/4a3eeca2-12bd-4928-b14d-8a284d656bc1n%40googlegroups.com.