vaping.plugins.whisper

Classes


WhisperPlugin

WhisperPlugin(vaping.plugins.TimeSeriesDB)

Whisper plugin that allows vaping to persist data in a whisper database

Methods

__init__

def __init__(self, config, ctx)

Arguments

  • config (dict)
  • ctx: vaping context

create

def create(self, filename)

Create database

Arguments

  • filename (str): database filename

get

def get(self, filename, from_time, to_time=None)

Retrieve data from database for the specified timespan

Arguments

  • filename (str): database filename
  • from_time (int): epoch timestamp start
  • to_time (int): epoch timestamp end

start

def start(self)

Greenlet.start(self) Schedule the greenlet to run in this loop iteration


update

def update(self, filename, time, value)

Update database

Arguments

  • filename (str): database filename
  • time (int): epoch timestamp
  • value (mixed)