Hi folks! Got a bit of a stumper here.
I’ve written an integration for tying something I do everyday to Beeminder. I’m trying to think of how to actually structure the data and the goal. I have premium, so I can set the aggday, and I am writing the integration, so I can do whatever I want over there.
I would like to do this thing earlier in the day, or even the night before. Ideally, it’s done before I go to bed, but there’s absolutely no value in doing it any earlier if it’s done the day before… but if it’s done the day of, the earlier the better. I am usually asleep across midnight, so setting the floor at midnight seems reasonable.
I want the graph to mostly make sense, and be able to tell if I’m trending earlier or later… or am being inconsistent.
Because I want to do the thing earlier in the morning, I am thinking of doing it as a Do Less goal, even though I don’t really do those in general.
One option (a poor one, but an ok example) is to have my integration report 0 if it’s been done, and 1 if it hasn’t. As Beeminder pokes the integration, the goal will get a series of 1s and then 0s. I could set the aggday to sum, and days with higher values, in general, correspond to days where I did it later. This isn’t very good though, because if I hit Refresh on a goal a bunch of times, it will add a bunch of datapoints. Also, Beeminder’s schedule is kinda complicated, and isn’t really linear.
Another option is to have my integration report the time (in hours since midnight) that the event occurred at if it happened already, otherwise… what, not add a datapoint? Then the aggday could be “last”, maybe? The bummer here is that my integration would have to have state, but that isn’t an insurmountable task.
Another option is that I put a bunch of smarts in my integration, and I handle all the “aggday” stuff in my integration. The integration would store the time that the event happened for the day, and it would only add one datapoint per day.
Thoughts? Has anyone successfully or unsuccessfully Beeminded doing something earlier in the day? What worked or didn’t work for you?