Members
(constant) CronJob
Cron is a tool that allows you to execute something on a schedule.
- Source:
(constant) DATABASE_NAME
InfluxDB database name
- Source:
(constant) fs
File management module.
- Source:
(constant) influx
InfluxDB is an open source time series database.
- Source:
(constant) influxClient
Initializing the influxDB database
- Source:
job
Write data in the InfluxDB database every 20 minutes
- Source:
(constant) nmea
node-serialport library to read a stream of messages from a GlobalSat BU-353 USB GPS receiver.
- Source:
Methods
translate_Json_InfluxPoint(jsonSrc) → {Array.<json>}
Create an Array storing future influxDB rows
Parameters:
Name | Type | Description |
---|---|---|
jsonSrc |
json |
- Source:
Returns:
- Type
- Array.<json>
translateJson2InfluxText(jsonSrc) → {void}
Transform a json in a string which then can be read by InfluxDB
Parameters:
Name | Type | Description |
---|---|---|
jsonSrc |
json |
- Source:
Returns:
- Type
- void
writerInflux(input_file) → {void}
Write sensors data in the database
Parameters:
Name | Type | Description |
---|---|---|
input_file |
string | file path |
- Source:
Returns:
- Type
- void
writerInflux_GPS(input_file) → {void}
Write GPS data in the database
Parameters:
Name | Type | Description |
---|---|---|
input_file |
string | file path |
- Source:
Returns:
- Type
- void
writerInflux_rain(input_file) → {void}
Write rain data in the database
Parameters:
Name | Type | Description |
---|---|---|
input_file |
string | file path |
- Source:
Returns:
- Type
- void