Text this: Real-time time series error-based data reduction for internet-of-things applications