diff --git a/bin/user/interceptor.py b/bin/user/interceptor.py index 236945b..1870dc2 100644 --- a/bin/user/interceptor.py +++ b/bin/user/interceptor.py @@ -204,7 +204,7 @@ import weeutil.weeutil DRIVER_NAME = 'Interceptor' -DRIVER_VERSION = '0.28rc1' +DRIVER_VERSION = '0.28' DEFAULT_ADDR = '' DEFAULT_PORT = 80 @@ -744,6 +744,7 @@ def parse_wu(self, s): if 'rainfall' in pkt: rain_total = pkt['rainfall'] pkt['rainfall'] = self._delta_rain(rain_total, self._last_rain) + pkt['rain_total'] = rain_total self._last_rain = rain_total return self.add_identifiers(pkt) @@ -1982,6 +1983,10 @@ def genLoopPackets(self): (options, args) = parser.parse_args() + if options.version: + print "driver version is %s" % DRIVER_VERSION + exit(0) + debug = False if options.debug: syslog.setlogmask(syslog.LOG_UPTO(syslog.LOG_DEBUG)) diff --git a/install.py b/install.py index 1e99b84..6e7662a 100644 --- a/install.py +++ b/install.py @@ -10,7 +10,7 @@ def loader(): class InterceptorInstaller(ExtensionInstaller): def __init__(self): super(InterceptorInstaller, self).__init__( - version="0.28rc1", + version="0.28", name='interceptor', description='Capture weather data from HTTP requests', author="Matthew Wall",