Share Your Data Logging and Visualization Implementations

You may also want to check on the behaviour of the sendEvent, I could be wrong, but it may only record something if the value changes.

I believe you can force it in the code if it is a problem.

Edit:. I think this is what I was thinking of and may be worth a look: