weewx fails with weatherlink IP

51 views
Skip to first unread message

Andrea Cecilia

unread,
Jun 9, 2019, 5:49:09 PM6/9/19
to weewx-user
Hi guys,
I have a Davis Vantage station with weatherlink IP and running with weewx. Sometimes this happens:

Jun  9 16:55:17 raspberrypi-fontelaurentina weewx[507]: engine: Initializing weewx version 3.9.1
Jun  9 16:55:17 raspberrypi-fontelaurentina weewx[507]: engine: Using Python 2.7.13 (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Jun  9 16:55:17 raspberrypi-fontelaurentina weewx[507]: engine: Platform Linux-4.19.42-v7+-armv7l-with-debian-9.9
Jun  9 16:55:17 raspberrypi-fontelaurentina weewx[507]: engine: Locale is 'it_IT.UTF-8'
Jun  9 16:55:17 raspberrypi-fontelaurentina weewx[507]: engine: pid file is /var/run/weewx.pid
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: engine: Using configuration file /home/weewx/weewx.conf
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: engine: Debug is 1
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: engine: Initializing engine
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: engine: Loading station type Vantage (weewx.drivers.vantage)
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[336]: Starting weewx weather system: weewx.
Jun  9 16:55:18 raspberrypi-fontelaurentina systemd[1]: Started LSB: weewx weather system.
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: vantage: Driver version is 3.1.1
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: vantage: Socket error while opening port 22222 to ethernet host 192.168.178.26.
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: import of driver failed: [Errno 101] La rete non è raggiungibile (<class 'weewx.WeeWxIOError'>)
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]: engine: Unable to load driver: [Errno 101] La rete non è raggiungibile
Jun  9 16:55:18 raspberrypi-fontelaurentina weewx[556]:     ****  Exiting...


id est, it can't find the station inside the network, and exits. Is there a way to make it retry instead of exiting at the first try?
This way, it is sufficient that for one minute for some reason the station is unreachable on the network, that weewx stops and needs to be manually restaryed!

gjr80

unread,
Jun 9, 2019, 6:56:10 PM6/9/19
to weewx-user
Hi,

Try using the loop_on_init config option. http://weewx.com/docs/usersguide.htm#General

Gary

Andrea Cecilia

unread,
Jun 12, 2019, 5:33:51 AM6/12/19
to weewx-user
Thank you! this was exactely what I was looking for!
Reply all
Reply to author
Forward
0 new messages