Python - Script Templates

Luna connection status
Question: What is the actual connection state of each machine/Luna? Solution: To answer this question with an analytics query a first/last aggregation...
Tue, 28 May, 2019 at 4:19 PM
Gap filling
Question: My machine only sends an update to the cloud if the value of a variables has changed. As a result there are empty entries in my analytics query. ...
Tue, 28 May, 2019 at 4:22 PM
Duration calculation of overlapping periods
Question: How can I calculate the total duration of overlapping periods (e.g. of a specific error category)? How can I deal with multiple categories if I ...
Tue, 28 May, 2019 at 4:24 PM
Senseforce timestamp and Python Date objects
The Senseforce timestamp is formatted as UNIX timestamp with millisecond precision. For our Python scripting engine, this looks like an ordinary integer. T...
Tue, 28 May, 2019 at 4:30 PM
Error-Code Mapping Trick
Question: How can we map error message texts to error codes in different languages and with a simple version control?  Solution:  To do so we have ...
Tue, 28 May, 2019 at 4:33 PM
Set operations on time interval information (like alarms, warnings etc.)
Question: How can I perform set operations like union, intersect etc. on data sets with time interval information e.g. alarm start and end? Solution: ...
Tue, 28 May, 2019 at 4:37 PM
How to create a single row Gantt Chart
Question: How can I create a single row gantt chart e.g. to display the state of a machine? Solution: At the moment there is no "gantt chart"...
Tue, 28 May, 2019 at 4:40 PM