Script to populate one graph using the data from another?

32 views
Skip to first unread message

Essentiae

unread,
Jul 20, 2014, 12:55:46 PM7/20/14
to akra...@googlegroups.com
Hi all, 

Does anyone have a script they use to populate one graph with data from another. I'm finding that some of my graphs are getting messy because I'm forgetting to double up on my datapoints sometimes and so things are just completely inaccurate in some places. (E.g., sometimes when I track time on a work project, I forget to track that as time worked and just sent in a Project ^ 1:45 datapoint, etc.)

Does anyone have anything they've put together in order to allow one goal to draw info (reliably) from another?

(Also, feature request?)

Thanks!
Essy

David MacIver

unread,
Jul 20, 2014, 2:16:31 PM7/20/14
to akratics
I have this script which doesn't do quite that but could easily be adapted to do so if you want a starting point: https://github.com/DRMacIver/feedthebee/blob/master/truncatedgoals.py


--
You received this message because you are subscribed to the Google Groups "Akratics Anonymous" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akratics+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Reeves

unread,
Jul 20, 2014, 2:49:32 PM7/20/14
to akratics
Conceivably this idea --
https://trello.com/c/QIrEJypM/609-metamind-meta-goals-fuer-alles --
could be generalized to allow for the kind of thing Essy has in mind.
I'm pretty excited about the metaminding idea for a bunch of reasons.
Also, I'd love to get scripts like this up on github.com/beeminder
--
http://dreev.es -- search://"Daniel Reeves"
Goal tracking + Commitment contracts == http://beeminder.com

Adam Mesha

unread,
Jul 20, 2014, 3:05:16 PM7/20/14
to akra...@googlegroups.com
I almost got a script like this working but got stymied because the timestamps from the Beeminder API are whack (or they were when I was working on this a few months ago), so I just ended up manually entering the datapoints rather than continuing to bug beeminder support about it (since I was able to able to update the goal only once a week or so with no problem, and it was only one goal).


--

David MacIver

unread,
Jul 21, 2014, 2:54:55 AM7/21/14
to akratics
I have also noticed that the timestamps in the beeminder API are weird FWIW. They seem to always point to 16:00 on the day of the datapooint, regardless of when it was manually entered. I just ignored this problem and submitted the datapoints at the timestamps they came out of the API with.

Daniel Reeves

unread,
Aug 10, 2014, 2:19:43 AM8/10/14
to akratics
Straw poll! Would it be bad if we silently fixed this or should we
bump the API version number when we do, in case there are programs out
there working around the brokenness that will themselves break when we
fix it?

(Fixing the underlying reasons for the timestamp mess was a big part
of our maniac week that ended today, btw. Time-lapse videos to
follow!)

Alice

unread,
Aug 10, 2014, 5:14:27 AM8/10/14
to akra...@googlegroups.com
silently fixing this is moderately likely to break things, but I think you should do it anyway, since things are broken and reducing technical debt quickly is valuable

Adam Mesha

unread,
Aug 10, 2014, 7:36:24 AM8/10/14
to akra...@googlegroups.com
I personally am not relying on the broken behavior in any way, so as far as I'm concerned you can just fix it.

David MacIver

unread,
Aug 10, 2014, 7:59:27 AM8/10/14
to akratics
I'd vote for just fixing it, personally. I'm not relying on the broken behaviour.
Reply all
Reply to author
Forward
0 new messages