# Script To Get 7, 30, and 90 avg for a goal

**URL:** <https://forum.beeminder.com/t/script-to-get-7-30-and-90-avg-for-a-goal/6887>\
**Category:** Tech\
**Created:** [June 15, 2020, 1:04am UTC](https://forum.beeminder.com/t/script-to-get-7-30-and-90-avg-for-a-goal/6887 "2020-06-15T01:04:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharius](https://avatars.discourse-cdn.com/v4/letter/z/c0e974/32.png) [@zacharius](https://forum.beeminder.com/u/zacharius)\
**Post date:** [June 15, 2020, 1:04am UTC](https://forum.beeminder.com/t/script-to-get-7-30-and-90-avg-for-a-goal/6887/1 "2020-06-15T01:04:30Z")

</div>

I made a little python program to calculate the average rate at which you’ve been doing a habit for the last 7, 30, and 90 days. [https://github.com/Zacharius/beeminder](https://github.com/Zacharius/beeminder)

I’m using it to determine how well I’ve been doing on a goal and if I am secure enough to increase it. Eventually I want a program which will slowly auto increment goal rates up to a desired level based on a number of criteria.

---

<div class="post-metadata">

**Author:** ![dreev](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/dreev/32/4311_2.png) [@dreev](https://forum.beeminder.com/u/dreev)\
**Post date:** [June 15, 2020, 1:52am UTC](https://forum.beeminder.com/t/script-to-get-7-30-and-90-avg-for-a-goal/6887/2 "2020-06-15T01:52:39Z")

</div>

Love this! @mary wrote something similar some years ago and called it the autodialer and I’m in love with it and want it to be part of Beeminder proper eventually.

---

<div class="post-metadata">

**Author:** ![mary](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/mary/32/317_2.png) [@mary](https://forum.beeminder.com/u/mary)\
**Post date:** [June 15, 2020, 4:40pm UTC](https://forum.beeminder.com/t/script-to-get-7-30-and-90-avg-for-a-goal/6887/3 "2020-06-15T16:40:42Z")

</div>

My personal version’s undergone a lot of changes since I put this up (and I probably won’t be able to prioritize a shared version for a little while) but if you’d like to play around with what I used to have, this is the old post about it:

> [@Help yourself to some API files](https://forum.beeminder.com/t/help-yourself-to-some-api-files/524):
>
> Here are some API files that use the PHP library. [EDIT: The link above doesn’t work anymore. Use this one instead: [https://github.com/chipmanaged/MCM-Dashboard](https://github.com/chipmanaged/MCM-Dashboard) ] dashboard.php is a visual dashboard for all of your goals. It allows you to specify different groups for different goals, and allows you to enter more than one goal at a time by specifying “umbrella” goals and the goals that fall under that umbrella. autodial.php dials your goal rates (of the goals you list) to the average for…

---

<div class="post-metadata">

**Author:** ![mary](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/mary/32/317_2.png) [@mary](https://forum.beeminder.com/u/mary)\
**Post date:** [June 15, 2020, 4:41pm UTC](https://forum.beeminder.com/t/script-to-get-7-30-and-90-avg-for-a-goal/6887/4 "2020-06-15T16:41:26Z")

</div>

PS - That’s also not something that does the kind of stats stuff that yours does; it’s _just_ the part that dials the road based on an average.
