Use WarpScript™ to Simplify Time Series analytics. Robusts solutions exists to work with Time Series. Do not reinvent the wheel!
![Keep it short and simple!](https://blog.senx.io/wp-content/uploads/2019/03/KISS-1.png)
Recently, I read this article on the Influx blog.
In the second part of the article, the most complicated, they use their new Flux language to do really simple analytics on 4 sensors. 20 lines of code to do a very simple operation on each tick:
![](https://blog.senx.io/wp-content/uploads/2018/12/InfluxDB-how-to-do-joins-math-across-measurements-2.png)
Then I looked at the dataset. Perfectly aligned series! No need to synchronize, no need to interpolate missing data points…
Since Warp 10 2.0, this could be done in a single line of WarpScript:
$Tc2 $Tc1 - $Th1 $Th2 - /
The straightforward WarpScript translation is : one FETCH instruction per channel + one line to do the formula + rename the resulting GTS.
![Image showing the difference between WarpScript and InfluxDB with the number of lines of code](https://blog.senx.io/wp-content/uploads/2019/03/fluximg-1024x961.png)
Here is a full playable example, just click on the execute button.
Not using Warp 10 or WarpScript yet? Do not give up hope! You can plug the Warp 10 analytics engine on top of an existing time series database. For InfluxDB, the open source plugin is here.
Read the next article, Keep it Simple (Reloaded).
Read more
Review of DELL compatible batteries using Warp 10
How does a time series correlates with its past?
SELECT x WHERE system is not lagging
![Pierre Papin](https://blog.senx.io/wp-content/uploads/2019/04/IMG_9012.jpg)
Electronics engineer, fond of computer science, embedded solution developer.