diff --git a/bin/user/netatmo.py b/bin/user/netatmo.py index dc42cd3..6b69a6e 100644 --- a/bin/user/netatmo.py +++ b/bin/user/netatmo.py @@ -42,7 +42,7 @@ import weewx.units import weewx.wxformulas DRIVER_NAME = 'netatmo' -DRIVER_VERSION = "0.7" +DRIVER_VERSION = "0.8" INHG_PER_MBAR = 0.0295299830714 MPH_TO_KPH = 1.60934 @@ -327,7 +327,7 @@ class CloudClient(Collector): try: CloudClient.get_data(self._sd, self._device_id) break - except urllib2.HTTPError, e: + except (urllib2.HTTPError, urllib2.URLError), e: logerr("failed attempt %s of %s to get data: %s" % (tries + 1, self._max_tries, e)) logdbg("waiting %s seconds before retry" % diff --git a/changelog b/changelog index 2a6bb4e..fbb777f 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,10 @@ -0.7 22jan2017 +0.8 22jan2017 * user-specified map augments the default instead of replacing it -* update license + +0.7 16jan2017 +* handle URLError for connection refused +* include license in the distribution +* renamed readme 0.6 31oct2016 * use database_name = hardware_name pattern for sensor mapping diff --git a/install.py b/install.py index 327e4b9..4bd05f3 100644 --- a/install.py +++ b/install.py @@ -10,7 +10,7 @@ def loader(): class NetatmoInstaller(ExtensionInstaller): def __init__(self): super(NetatmoInstaller, self).__init__( - version="0.7", + version="0.8", name='netatmo', description='Driver for netatmo weather stations.', author="Matthew Wall", diff --git a/readme b/readme index d6c0500..651e12e 100644 --- a/readme +++ b/readme @@ -21,20 +21,21 @@ automatically obtains and updates the tokens needed to get data from the server. +=============================================================================== Installation instructions: -0) download the driver: +1) download the driver: wget -O weewx-netatmo.zip https://github.com/matthewwall/weewx-netatmo/archive/master.zip -1) install the driver: +2) install the driver: sudo wee_extension --install weewx-netatmo.zip -2) select and configure the driver: +3) select and configure the driver: sudo wee_config --reconfigure -3) start weewx: +4) start weewx: sudo /etc/init.d/weewx start