Beeminder Mathematica Package?

At least until something like this becomes part of the official Beeminder API, I’ve added an API route to Altbee that will do the aggregation. It hopefully will save us all from having to each reimplement it independently.

This API will enrich any given Beeminder goal data with an addition agg_data field containing the aggragated datapoints, taking into account odom, kyoom, and aggday.

That is: If you POST to https://altbee.aeonc.com/api/bagg the JSON that Beeminder’s goal API returns (with datapoints=true), then you’ll get a response containing all the fields you sent plus an agg_data field, containing the aggregated datapoints.

For example, try something like this:

curl -s \
  https://www.beeminder.com/api/v1/users/me/goals/$GOAL.json?auth_token=$AUTH_TOKEN\&datapoints=true |
  curl https://altbee.aeonc.com/api/bagg \
    -H 'Content-Type: application/json' --data @-
3 Likes