(def start-t (System/currentTimeMillis))

(defsensor sine {:poll-interval (seconds 10)}
  (Math/sin (/ (- (System/currentTimeMillis) start-t) 60000.0)))

(defsensor cosine {:poll-interval (seconds 10)}
  (Math/cos (/ (- (System/currentTimeMillis) start-t) 60000.0)))

(defsensor cosine-2 {:poll-interval (seconds 5)}
  (Math/cos (/ (- (System/currentTimeMillis) start-t) 30000.0)))

(def start-t (System/currentTimeMillis))

(defsensor sine {:poll-interval (seconds 10)}
  (Math/sin (/ (- (System/currentTimeMillis) start-t) (minutes 1))))

(defsensor cosine {:poll-interval (seconds 10)}
  (Math/cos (/ (- (System/currentTimeMillis) start-t) (minutes 1))))

(defsensor steps-ascending {:poll-interval (seconds 5)}
  (mod (/ (- (System/currentTimeMillis) start-t) (minutes 2))
       3))

Remove the cosine-2 test series and replace with a sawtooth series for identiying sign issues.
Remove the cosine-2 test series and replace with a sawtooth series for identiying sign issues.

mschaef/metlog