Ended doc for influxdb.py

This commit is contained in:
l_samenv
2024-09-09 14:22:34 +02:00
parent b3d899295d
commit 3ae1097b22

View File

@ -120,7 +120,7 @@ class InfluxDataGetter:
Parameters :
variables ([(str)]) : an array of variable names (Influx) to get the curves for
time ([int]) : the timerange we want the values in. It consists of two values which are Unix timestamps in seconds, first included, second excluded.
interval (int) : the interval (resolution) of the values to get (in nanoseconds)
interval (int|None) : the interval (resolution) of the values to get (in nanoseconds)
Returns :
{(str):[[(int), (float)]]} : a dictionnary of curves. The key is the name of the influx variable, and the value is an array of pairs (also arrays), the first value being the Unix timestamp in second (x), the seconds being the value (y).
@ -131,7 +131,6 @@ class InfluxDataGetter:
variable_name_for_query = var_param[0]
parameter = "value" if len(var_param) == 1 else var_param[1]
curve = self._get_curve(variable_name_for_query, parameter, time, interval)
# if len(curve) > 0:
res[variable] = curve
return res