# Wordcounter App and Beeminder Writing Goal

**URL:** <https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718>\
**Category:** Tech\
**Created:** [May 12, 2020, 8:37am UTC](https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718 "2020-05-12T08:37:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielachacon](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielachacon](https://forum.beeminder.com/u/danielachacon)\
**Post date:** [May 12, 2020, 8:37am UTC](https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718/1 "2020-05-12T08:37:26Z")

</div>

Hello everyone!

A few days ago I decided to contact [Christian Tietze](https://christiantietze.de/contact/) he is an indie app developer, creator [Wordcounter](https://wordcounterapp.com/), and [The Archive](https://zettelkasten.de/the-archive/) both for macOS and quite awesome.

I contacted him because I think that merging Wordcounter with the accountability capabilities of Beeminder would be a game-changer for a lot of writers out there that have been trying to keep track and setting goals of their research/writing work-flow.

He replied that:  
“_I had no luck in the past convincing habit tracker developers to open up their system and allow 3rd parties (like me) to submit data to them. If you find folks in the community who can figure out how to write a script or whip up an Automator action to fill in [beeminder.com](http://beeminder.com) form fields for you, I can provide you with instructions about how to get the current day’s data out of WordCounter, for example._”

I’m in no way as tech-savvy as people from this forum, my knowledge is super basic, but I wanted to check with the community to see if everyone has any suggestions.

Could there be some available options to setting-up a daily writing goal in Beeminder that is connected to Wordcounter?

Thanks and take care.

---

<div class="post-metadata">

**Author:** ![phi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/phi/32/2586_2.png) [@phi](https://forum.beeminder.com/u/phi)\
**Post date:** [May 12, 2020, 9:17am UTC](https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718/2 "2020-05-12T09:17:25Z")

</div>

Sure thing! There’s an [HTTP API](http://api.beeminder.com/#beeminder-api-reference) which allows you (or the developer) to do exactly this 🙂

For toying around you can use your shell (Terminal.app):

```auto
curl -X POST "https://www.beeminder.com/api/v1/users/me/goals/wordcount/datapoints.json"
    -d auth_token=abc123 \
    -d value="$(wc -w writing.txt)" \
    -d comment=sweat+a+lot+today

```

This command invokes `wc -w` which counts the words in the file `writing.txt` and curl submits this value to the beeminder servers.

Don’t want to use curl directly? There’s an old (but still working) command line app called [bmndr](https://github.com/lydgate/bmndr).  
Don’t want to use shell scripting at all? Good! There’s tons of good reasons not to do shell scripting.  
You’re in luck: @narthur recently made a Python wrapper, there’s also a [Javascript wrapper](https://github.com/malcolmocean/beeminderjs) from @malcolm and I myself am working on a Scala wrapper with a REPL (that’s a interactive command line interface with tab completion and whatnot). But the latter isn’t ready for public consumption. Yet.

Since you’re on macOS presumably, you want to turn whatever you made into a [daemon for launchd](https://www.launchd.info) so it runs automatically in the background every couple hours or so.  
On Linux you’d do the same but with `systemd` instead of `launchd`, but since `systemd` is a direct clone of `launchd` (little known fact), the process for doing this is almost identical.  
On Windows, dunno ¯\_(ツ)\_/¯

There’s also a list of Beeminder integrations in the form of a forum post somewhere around here, but you gotta do some digging for this.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![danielachacon](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielachacon](https://forum.beeminder.com/u/danielachacon)\
**Post date:** [May 12, 2020, 9:58am UTC](https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718/3 "2020-05-12T09:58:54Z")

</div>

Hi phi!  
Thanks so much for your thorough response and information.  
I will look into it and try to figure one of these options out. 😅  
Let me know when your work will be available.

Cheers

---

<div class="post-metadata">

**Author:** ![fidel\_namisi](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@fidel\_namisi](https://forum.beeminder.com/u/fidel_namisi)\
**Post date:** [July 23, 2024, 7:32am UTC](https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718/4 "2024-07-23T07:32:25Z")

</div>

I also reached out to Christian. He asked me to put him in touch with the Beeminder team, which I did by forwarding our conversation to [support@beeminder.com](mailto:support@beeminder.com). I’m just not sure that that’s the correct protocol to follow. If not, I apologize. @dreev

---

<div class="post-metadata">

**Author:** ![fidel\_namisi](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@fidel\_namisi](https://forum.beeminder.com/u/fidel_namisi)\
**Post date:** [July 23, 2024, 7:33am UTC](https://forum.beeminder.com/t/wordcounter-app-and-beeminder-writing-goal/6718/5 "2024-07-23T07:33:21Z")

</div>

Would be a game changer to see this Integration in the near future though. 😀 🎉 @dreev
