Hi dead_Eye
ye thats my issue also, jsut using a random function will create a random noise,
looking for someone that might have written something a bit more intelligent...
or might have access to a datafile from a real world set of sensors: Temp, pressure, rpm, speed, flow rate,
looking for approx 10 streams, use less... water temp and engine temp I can simulate by taking one and upping the others level by say 50 deg c.
water flow rate can be used to simulate a belt speed also, by increasing decreasing it by x.
this way the lines don't look just like random noise.
G
little bit of background,
A:) I'm trying to simulate 5 factories... 100 sensors min each, maybe more towards 200/300... pushing data every minute, I'll have collector processors that in this case would actually run this random generate code (in real world they would be getting data from the sensors.
The idea these collectors would push the data onto a Kafka topic.
B:) think 5-10... race teams, each team 4 cars, each car 20sensors, each sensor pushing 1 data point/second. All grabbed/received by a collector, all collectors pushing onto a topic.
All received, and graphed using Grafana.
so data that looks more than just noise would be great as it will display better on the Grafana dashboard.
G
ye thats my issue also, jsut using a random function will create a random noise,
looking for someone that might have written something a bit more intelligent...
or might have access to a datafile from a real world set of sensors: Temp, pressure, rpm, speed, flow rate,
looking for approx 10 streams, use less... water temp and engine temp I can simulate by taking one and upping the others level by say 50 deg c.
water flow rate can be used to simulate a belt speed also, by increasing decreasing it by x.
this way the lines don't look just like random noise.
G
(Dec-14-2019, 02:26 AM)DeaD_EyE Wrote: I work currently on a project, where I receive measurement data over a serial interface.
Generating random Test-Data is not very good, because it will be very noisy.
Example:
import random import matplotlib.pyplot as plt def random_delta(size, start_value, min_delta, max_delta, precision=1): value_range = max_delta - min_delta half_range = value_range / 2 for _ in range(size): delta = random.random() * value_range - half_range yield round(start_value, precision) start_value += delta plt.plot(list(random_delta(200, 10, -1, 1))) plt.show()
little bit of background,
A:) I'm trying to simulate 5 factories... 100 sensors min each, maybe more towards 200/300... pushing data every minute, I'll have collector processors that in this case would actually run this random generate code (in real world they would be getting data from the sensors.
The idea these collectors would push the data onto a Kafka topic.
B:) think 5-10... race teams, each team 4 cars, each car 20sensors, each sensor pushing 1 data point/second. All grabbed/received by a collector, all collectors pushing onto a topic.
All received, and graphed using Grafana.
so data that looks more than just noise would be great as it will display better on the Grafana dashboard.
G