Configuring the lifespan of waveform files
After configuring the Waveform Extractor to download waveforms from your meters, you can specify a lifespan for the downloaded files. Files older than the specified lifespan will be automatically deleted. This prevents the space on your system from being consumed by innumerable waveform files.
You can use the waveform application settings file to configure whether and how often waveform files are deleted.
To configure the lifespan of waveform files:
- Navigate to
.:\Program Files (x86)\Schneider Electric\Power Operation\v2024\Applications\Waveform Extractor\Service. - In a text editor, open the
appsetting.jsonfile. - Configure the following settings:
| Configuration settings | Details |
|---|---|
enableFileRetention
|
Turns on automatic file deletion. Set the value to true. |
delayBetweenFileRetentionRuns
|
Specifies the frequency of the file deletion. Set the desired interval using the "HH:MM:SS" format. |
RetainFilesForPeriod
|
Specifies the lifespan of the files. Set the desired period using the DD.HH:MM:SS format. Files that are older than this value are deleted. |
The following example demonstrates values that allow the Waveform Extractor to check once a day for files that are more than thirty days old:
NOTE: Waveform files can be deleted manually, regardless of whether the enableFileRetention value is set to true or false.