moving_sum Computes a moving sum value from previous samles

moving_sum.py

A Sat/XLink setup is associated with this module: moving_sum_setup.txt

One measurement is setup to sample the sensor every minute A second measurement will compute the moving sum over the last 60 sensor samples every minute

FOr example, at 12:15:00, the moving sum will be computed on samples from 11:15 to 12:15. At 12:16:00, it will be computed on data from 11:16 to 12:16, etc.

moving_sum.moving_sum(sample)

adds current sample to list and computes a moving sum over past samples