okay this was actually quite easy. query for the data on the last 5 minutes, get the max and the min value, substract them, and if that's higher than the threshold raise the alert. done
@eudaimonia sure! I'll make sure to publish everything and can explain more in detail eventually. but keep in mind that the code is kinda messy rn :neocat_laugh_sweat: