1.0.13 • Published 5 months ago

@envidatec/node-red-contrib-logger v1.0.13

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 months ago

SQL Lite config node

namemeaning
pathpath to database file
table_dataname of table
namename of config node
table_trendname of table where trend config is stored

Logger

On receiving Creates Messages Object (Create Sample, Update Trend, Delete Samples) to interacting with Sql-Lite Node

Properties

namemeaning
TrendIDTrend ID which represents this instance of node
Logsize in Dayshow many days the data will remain in the Database

Input

message objectmeaning
msg.payloadValue written into the SQL-Lite
msg.errorif error is present writes Value with staus code 16

Status Codes

Codemeaning
0OK
16msg.error present
16empty Payload

SQL-Lite

Actions

topicmeaning
Delete SamplesDeletes Samples for a trend id before a specific date
Update Trendupdate Trend configuration
Create Samplecreates sample
Delete TrendDeletes all sample + Trend configuration
Get DataReturns Requested Samples
Get All TrendsDeletes all sample + Trend configuration

Delete Samples

Payload

Payloadmeaning
deleteDateDelete Until when Samples will be deleted
idTrend Id

Output

None

Update Trend

Payload

Payloadmeaning
namename of the trend
configconfig of update intervall of Trend(cron tab expression / asynchronous
idid of trend

Output

None

Create Sample

Payload

Payloadmeaning
trend_idId of Trend
statusstatus of sample for further Information on Status Code Section
valueValue of Sample
date_timeDate Time when the Value was logged

Output

None

Delete Trend

Payload

Trend ID of the trend which should be deleted

Output

None

Get Data

Payload

Payloadmeaning
aggregationaggregation (NONE,DIFF,MAX,MIN,SUM)
fromStart Date Time
untilEnd Date Time
limitmaximum amount of Samples
listTrendIdsArray of Trend Ids

Output

Array with the requested Samples

Get All Trends

Payload

None

Array of Trends

Rest-Server

attributemeaning
portPort on which Rest Server is running
SQL-DB ConnectionConnection to SQL-Lite
UsernameUsername for api authentication (basicAuth)
PasswordPassword for api authentication (basicAuth)

Paylaod

payloadmeaning
STARTStarts Web Server
STOPStops Web Server

Api Documentation

url:port/doc

1.0.13

5 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.8

6 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago