Inserts new data into a bucket. You can get more information about what information can be passed with insert in our API documentation

Syntax
.insert(/data/)

Arguments

Field nameTypeDescription
data
object
Properties for the new data.
variable
string
Name of the variable. Obligatory when inserting.
value
string
[optional]
A value for the data.
unit
string
[optional]
a unit for the data, like ‘km’, or ‘F’. The unit may be shown in some widgets.
time
string
Time for the data. The default is now.
serie
string
A series for the data. Useful for some widgets when grouping with other data.
location
object/geojson
A location object or geojson containing lat and lang.


Returns {Promise<JSON>}