Session Database Connector

This block can be used to track and display sessions in an Exosphere database, such as wallbox charging.

Table of Contents


Inputs

AbbreviationSummaryDescriptionValue Range
SStartSession startPulse at input triggers the start of a session and writes to the database, if configured.0/1
SEndSession endPulse at input triggers the end of a session and writes to the database, if configured.0/1
UidUser-IDUser-ID. If set before being triggered, the user fields of the corresponding user can be used.-
CI1Custom input 1Additional custom input 1-
CI2Custom input 2Additional custom input 2-
CI3Custom input 3Additional custom input 3-
CI4Custom input 4Additional custom input 4-
CI5Custom input 5Additional custom input 5-
CI6Custom input 6Additional custom input 6-
CI7Custom input 7Additional custom input 7-
CI8Custom input 8Additional custom input 8-
CI9Custom input 9Additional custom input 9-
CI10Custom input 10Additional custom input 10-
CI11Custom input 11Additional custom input 11-
CI12Custom input 12Additional custom input 12-
CI13Custom input 13Additional custom input 13-
CI14Custom input 14Additional custom input 14-
CI15Custom input 15Additional custom input 15-
CI16Custom input 16Additional custom input 16-




Parameters

AbbreviationSummaryDescriptionUnitValue RangeDefault Value
TdTrigger DelayDelays writing to database after trigger to make sure all inputs are setms0




Outputs

AbbreviationSummaryDescriptionValue Range
LogLog outputLog output on every write operation to the database-
SaSession activeActive when a session is currently active0/1
APIAPI ConnectorIntelligent API based connector.
API Commands
-




Properties

SummaryDescriptionDefault Value
Column contentEdit column content. Specify the data that should be written to the database columns.-



Programming example

In this example, a Wallbox charging billing is recorded in an Exosphere database.

A database must be created in Exosphere and integrated into the configuration using the "Database".

With the "Session Database Connector" block, the database can now be populated with data.

Double-clicking on the block opens the "Database Connector Configuration". Here, the contents of the columns can be defined.
If an option is grayed out, the datatype is not compatible with it.

Additionally, the block inputs "CI1-CI16" can be named. These will be displayed in the configuration but not in the Exosphere database.

The start and end of a charging session are transferred to the inputs "SStart" and "SEnd". The charging user is forwarded to the block via the "Uid" input.

The price of the charging session is transmitted to the input "CI1."