#!/usr/bin/env lua local eyes = require "eyes" local format = require "format" local reading = require "reading" for _, message in ipairs(eyes) do local previous = 0 local deltas = {} for _, value in reading.values(message) do if value <= previous then previous = previous - 83 end table.insert(deltas, value - previous) previous = value end print(format.csv(deltas)) end