Sign inSign up

beetaone/csv-export

By beetaone

Updated almost 2 years ago

Image
0

163

beetaone/csv-export repository overview

csv-export

NameCSV Export
Versionv2.0.0
DockerHubbeetaone/csv-export
AuthorsMesud Pasic

Description

Module collects incoming data and stores it to CSV named by filename variable and timestmap like 'export_1657129367138.csv', temporary file that is used as a buffer is called by variable FILENAME like 'export.csv'. Module will generate files based on SPLIT_SIZE and SPLIT_TYPE specifications.

Environment Variables

Module Specific
Environment VariablestypeDescription
FILENAMEstringName of the file, without the extension (.csv)
DIR_PATHstringAbsolute path to the directory where the file will be written to
DELIMITERstringColumn delimiter
SPLIT_TYPEstringSplit file by size or number of rows
SPLIT_SIZEintegerNumber of rows or bytes to split by
INCLUDE_TIMESTAMPboolTrue or false to include timestamp column if not available in the data
Set by the beetaone Agent on the edge-node
Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (Input, Processing, Output)
INGRESS_HOSTstringHost where app is running
INGRESS_PORTstringPort where app is running

Example payload

//payload structure is always the same, since it's coming from same source
{
	"data":[
    {
      "temp": 42,
      "timestamp": 3187371
    },
    {
      "temp":53,
      "timestamp": 23232
    }
  ]
}

or

{
  "temp": 42,
  "timestamp": 3187371
}

or

[
	{
    "temp": 42,
    "timestamp": 3187371
  },
  {
    "temp":53,
    "timestamp": 23232
  }
]

Dependencies

"dependencies": {
    "express": "^4.17.3",
    "express-winston": "^4.2.0",
    "node-fetch": "^2.6.1"
}

Tag summary

Content type

Image

Digest

sha256:820c04bd8

Size

88.1 MB

Last updated

almost 2 years ago

docker pull beetaone/csv-export:v2.0.0