# Feature request: Tasker variables in Beeminder datapoints

**URL:** <https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132>\
**Category:** Bugabee\
**Created:** [December 25, 2019, 3:47pm UTC](https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132 "2019-12-25T15:47:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![narthur](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/narthur/32/5113_2.png) [@narthur](https://forum.beeminder.com/u/narthur)\
**Post date:** [December 25, 2019, 3:47pm UTC](https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132/1 "2019-12-25T15:47:49Z")

</div>

[Since I’m unable to use TagTime with Beeminder](https://forum.beeminder.com/t/linking-android-tagtime-to-beeminder/5195), I’ve been trying to reproduce its functionality using Tasker. Unfortunately, Beeminder’s integration with Tasker doesn’t allow me to submit a Tasker variable’s value as a data point.

Could this ability be added to the integration?

---

<div class="post-metadata">

**Author:** ![mufflon](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/mufflon/32/2394_2.png) [@mufflon](https://forum.beeminder.com/u/mufflon)\
**Post date:** [December 26, 2019, 6:21pm UTC](https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132/2 "2019-12-26T18:21:01Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![bizzle](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/bizzle/32/4723_2.png) [@bizzle](https://forum.beeminder.com/u/bizzle)\
**Post date:** [December 27, 2019, 4:38pm UTC](https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132/3 "2019-12-27T16:38:23Z")

</div>

Are you perhaps able to get the information directing into the join app then into IFTTT via webhook and then into Beeminder and use the [IFTTT Macros](https://forum.beeminder.com/t/ifttt-macros/804) perhaps?  
Any chance you can post your tasker profiles here? Would love to potentially use it in the future myself.

---

<div class="post-metadata">

**Author:** ![narthur](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/narthur/32/5113_2.png) [@narthur](https://forum.beeminder.com/u/narthur)\
**Post date:** [December 27, 2019, 4:49pm UTC](https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132/4 "2019-12-27T16:49:42Z")

</div>

Hmm… interesting approach…

Here’s what I have in the profile so far. It’s very much a work in progress.

```
Profile: Checks (39)
Restore: no
Time: From 7:00AM every 2m Till 6:00PM
Enter: Anon (40)
A1: Beep [Frequency:8000 Duration:1000 Amplitude:50 Stream:3]
A2: Variable Set [Name:%day_start To:7 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3]
A3: Variable Set [Name:%day_end To:18 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3]
A4: Variable Set [Name:%day_hours To:%day_end - %day_start Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3]
A5: Variable Set [Name:%day_minutes To:60 * %day_hours Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3]
A6: Variable Set [Name:%target_interval To:10 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3]
A7: Variable Set [Name:%opportunity_interval To:2 Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:3]
A8: Variable Set [Name:%target_count To:%day_minutes / %target_interval Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3]
A9: Variable Set [Name:%opportunity_count To:%day_minutes / %opportunity_interval Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3]
A10: Variable Set [Name:%threshold To:%target_count / %opportunity_count * 100 Recurse Variables:Off Do Maths:On Append:Off Max Rounding Digits:3]
A11: Variable Randomize [Name:%rand Min:0 Max:100]
A12: Popup [ Title: Text:Target count: %target_count
Opportunity count: %opportunity_count
Condition: %rand < %threshold Background Image: Layout:Popup Timeout (Seconds):5 Show Over Keyguard:On ]
A13: If [%rand < %threshold]
A14: Say [Text:Are you working? Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:On Network:Off Continue Task Immediately:Off]
A15: Menu [Title:Are you working? Background Image: Layout:IconAndTextMenu Timeout (Seconds):300 Show Over Keyguard:On Items:(2)]
A16: End If
```

---

<div class="post-metadata">

**Author:** ![narthur](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.beeminder.com/narthur/32/5113_2.png) [@narthur](https://forum.beeminder.com/u/narthur)\
**Post date:** [December 30, 2019, 2:23pm UTC](https://forum.beeminder.com/t/feature-request-tasker-variables-in-beeminder-datapoints/6132/5 "2019-12-30T14:23:23Z")

</div>

Just figured out how to get around the limitation with Beeminder’s integration! Put simply, don’t use Beeminder’s integration at all. Use [the HTTP Request action](https://tasker.joaoapps.com/userguide/en/help/ah_http_request.html) to post to [Beeminder’s API](http://api.beeminder.com/#postdata) directly instead:

 ![Screenshot_20191230-091021](https://us1.discourse-cdn.com/flex019/uploads/beeminder/original/2X/e/e66df3cd6288d916508bcc5a20fef82c5246b156.png)

Note that I’m using two custom global [variables](http://tasker.wikidot.com/userguide-en:variables), %BmUser and %BmToken, to store my username and API token. You’ll need to [look up your API token](https://www.beeminder.com/api/v1/auth_token.json) and store it and your username in a couple of variables you create if you want to take the same approach.

%TIMES is a standard variable that Tasker defines as the current time in seconds since January, 1970, which happens to be what Beeminder expects in a datapoint’s timestamp field.

Using this approach you can send any Tasker variable you like to your Beeminder goal as the value for a new datapoint.
