Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Example of a stream connector in Python

At Device Insight the software CS Edge is used to send data to the Center Sight platform. It is possible to extend the functionality by adding a so called stream connector. Basically CS Edge needs to be configured to the start the script (see Centersight Edge manual) and gets started automatically.

This example shows how a python script can be used as a stream connector.

## Functionality

The stream connector needs to print the data as a string to stdout in the following format:

<code>{"datapointValue": {"key": "\<name of the datapoint>", "value": "\<value of the datapoint>", "dataType": "\<type of the datapoint", "tsIso8601": "\<timestamp>"}}</code>

Format of the timestamp needs to be according to Iso 8601:

2013-12-02T12:30:02.003+01:00
yyyy-MM-DDThh:mm:ss.fffT