If new sleep logged, then add an entry to a databin

Sign in to http://programming.wolframcloud.com and evaluate: bin=CreateDatabin[<|"Name" -> "My Sleep"|>, "Interpretation" -> {"restlessCount" -> "Integer", "awakeCount" -> "Integer", "timeAwake" -> Restricted["StructuredQuantity", "Seconds"], "totalTime" -> Restricted["StructuredQuantity", "Seconds"], "timeToFall" -> Restricted["StructuredQuantity", "Seconds"], "timeToLeave" -> Restricted["StructuredQuantity", "Seconds"], "asleepAt" -> "DateTime", "awokeAt" -> "DateTime"}]; bin["ShortID"]

by bernate

Install 2
works with
  • Wolfram Data Drop

Applet version ID 319210