platypush/plugins/adafruit/io/__init__.py
def send(self, feed, value, enqueue=True):
        """
        Send a value to an Adafruit IO feed

        :param feed: Feed name
        :type feed: str

        :param value: Value to send
        :type value: Numeric or string

        :param enqueue: If throttle_seconds is set, this method by default will append values to the throttling queue
            to be periodically flushed instead of sending the message directly. In such case, pass enqueue=False to
            override the behaviour and send the message directly instead.
        :type enqueue: bool
        """

        if not self.throttle_seconds or not enqueue:
            # If no throttling is configured, or enqueue is false then send the value directly to Adafruit
            self.aio.send(feed, value)
        else:
            # Otherwise send it to the Redis queue to be picked up by the throttler thread
            redis = self._get_redis()
            redis.rpush(self._DATA_THROTTLER_QUEUE, json.dumps({feed: value}))

        Send a value to an Adafruit IO feed

        :param feed: Feed name
        :type feed: str

        :param value: Value to send
        :type value: Numeric or string

        :param enqueue: If throttle_seconds is set, this method by default will append values to the throttling queue
            to be periodically flushed instead of sending the message directly. In such case, pass enqueue=False to
            override the behaviour and send the message directly instead.
        :type enqueue: bool
        
Send a value to an Adafruit IO feed
Send a value to an Adafruit IO feed
def send(self, feed, value, enqueue=True):
        if not self.throttle_seconds or not enqueue:
            self.aio.send(feed, value)
        else:
            redis = self._get_redis()
            redis.rpush(self._DATA_THROTTLER_QUEUE, json.dumps({feed: value}))
def send ( self , feed , value , enqueue = True ) : if not self . throttle_seconds or not enqueue : self . aio . send ( feed , value ) else : redis = self . _get_redis ( ) redis . rpush ( self . _DATA_THROTTLER_QUEUE , json . dumps ( { feed : value } ) )
Send a value to an Adafruit IO feed
Send a value to an Adafruit IO feed
"""
        Send a value to an Adafruit IO feed

        :param feed: Feed name
        :type feed: str

        :param value: Value to send
        :type value: Numeric or string

        :param enqueue: If throttle_seconds is set, this method by default will append values to the throttling queue
            to be periodically flushed instead of sending the message directly. In such case, pass enqueue=False to
            override the behaviour and send the message directly instead.
        :type enqueue: bool
        """ # If no throttling is configured, or enqueue is false then send the value directly to Adafruit # Otherwise send it to the Redis queue to be picked up by the throttler thread
self
feed
None
value
Value to send
Value to send
enqueue
If throttle_seconds is set, this method by default will append values to the throttling queue
to be periodically flushed instead of sending the message directly. In such case, pass enqueue=False to
override the behaviour and send the message directly instead.
If throttle_seconds is set this method by default will append values to the throttling queue to be periodically flushed instead of sending the message directly . In such case pass enqueue = False to override the behaviour and send the message directly instead .