This flow creates a continuous data simulation by automatically repeating a 24-hour reference dataset. It transforms a single day's worth of sample data into an ongoing simulation pattern, making it perfect for industrial testing and monitoring scenarios.
The diagram below illustrates the underlying logic:
Here's the Visual Flow Creator (VFC) implementation:
Contents
Your reference file must contain timestamps (_time
) and all variables defined in the Aspect. The timestamps must meet these requirements:
- All timestamps must be from the same day
- Data must span the full day (from
00:00
to23:59
)
You can customize the data sampling frequency (e.g., every 1 minute or 15 minutes) based on your needs. Important: Ensure your simulation schedule matches your reference data frequency. For example, if your reference data has 15-minute intervals but your flow runs every 5 minutes, some executions won't generate new data.
[
{
"_time": "2024-07-29T00:00:00.000000Z",
"temperature": 24.77,
"humidity": 42.02,
"pressure": 979.1
},
{
"_time": "2024-07-29T00:01:00.000000Z",
"temperature": 24.77,
"humidity": 42.02,
"pressure": 979.1
},
...
{
"_time": "2024-07-29T23:59:00.000000Z",
"temperature": 29.73,
"humidity": 46.08,
"pressure": 982.2
}
]
Upload your JSON reference file (containing 24 hours of sample data) directly to the asset. You have two options:
-
Import the provided flow into Visual Flow Creator
-
Update the CONFIG node with your specific parameters:
var assetId = "your-asset-id"; // Target asset identifier var aspectName = "your-aspect-name"; // Aspect to simulate var filename = "your-file.json"; // Reference data filename var simulatorRun = 5; // Simulation interval (minutes)
-
Verify that your reference file is available at the specified asset location
-
Deploy the flow
-
Save your configuration
☁️ ✔️ Your simulation is now ready to run!
- The flow activates at specified intervals (default: every 5 minutes)
- Retrieves the reference data from your asset
- Selects relevant data points based on the current time and last execution
- Adjusts timestamps to match the current day while maintaining the original time patterns
- Uploads the updated data to timeseries storage
- Seamless, continuous data pattern simulation
- Preserved time intervals between data points
- Consistent daily pattern reproduction
- Automatic timestamp updates
- Hands-free operation once configured