From e4fce17b7b7988f58c99f54ea87328d1e3fabae6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 25 Jul 2018 12:31:50 +0000 Subject: [PATCH] Added elevation parameter to the Adafruit send_location_data method --- platypush/plugins/adafruit/io.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platypush/plugins/adafruit/io.py b/platypush/plugins/adafruit/io.py index 7f13c43a66..8aae0c0b81 100644 --- a/platypush/plugins/adafruit/io.py +++ b/platypush/plugins/adafruit/io.py @@ -145,7 +145,7 @@ class AdafruitIoPlugin(Plugin): @action - def send_location_data(self, feed, lat, lon, value=None): + def send_location_data(self, feed, lat, lon, ele=None, value=None): """ Send location data to an Adafruit IO feed @@ -158,6 +158,9 @@ class AdafruitIoPlugin(Plugin): :param lon: Longitude :type lon: float + :param ele: Elevation + :type ele: float + :param value: (Optional) value to send :type value: Numeric or string @@ -165,7 +168,7 @@ class AdafruitIoPlugin(Plugin): :type enqueue: bool """ - self.aio.send_location_data(feed=feed, value=value, lat=lat, lon=lon) + self.aio.send_location_data(feed=feed, value=value, lat=lat, lon=lon, ele=ele) @action def receive(self, feed):