Merge branch 'docs/beeminder'

This commit is contained in:
Tanay Pant 2021-01-22 10:25:16 +01:00
commit 26daeb1642
6 changed files with 119 additions and 5 deletions

View File

@ -1,8 +1,26 @@
$accentColor = #ff6d5a
.custom-block.details
background-color: #fff
margin: 0
padding-bottom: 0
ul
padding-left: 2.5em
background-color: #fff
margin: 0
padding-bottom: 0
ul
padding-left: 2.5em
.video-container
overflow: hidden
position: relative
width:100%
.video-container::after
padding-top: 56.25%
display: block
content: ''
.video-container
iframe
position: absolute
top: 0
left: 0
width: 100%
height: 100%

View File

@ -0,0 +1,31 @@
---
permalink: /credentials/beeminder
description: Learn to configure credentials for the Beeminder node in n8n
---
# Beeminder
You can use these credentials to authenticate the following nodes with Beeminder.
- [Beeminder](../../nodes-library/nodes/Beeminder/README.md)
## Prerequisites
Create a [Beeminder](https://Beeminder.io/account) account.
## Using API Key
1. Access your [Beeminder dashboard](https://beeminder.com/home).
2. Click on your avatar at the top-right corner.
3. Select 'ACCOUNT SETTINGS' from the dropdown list.
4. Scroll up and click on the ***APPS & API*** tab.
5. Copy the ***Auth Token*** displayed in the ***API*** section.
6. Enter a name for your credentials in the ***Credentials Name*** field in the 'Beeminder API' credentials in n8n.
7. Enter your username in the ***User*** field.
8. Paste the Auth Token in the ***Auth Token*** field.
9. Click on the ***Save*** button to save your credentials.
The following video demonstrates the steps mentioned above.
<div class="video-container">
<iframe width="840" height="472.5" src="https://www.youtube.com/embed/nBrZAyBx9mA" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

View File

@ -0,0 +1,65 @@
---
permalink: /nodes/n8n-nodes-base.Beeminder
description: Learn how to use the Beeminder node in n8n
---
# Beeminder
[Beeminder](https://www.beeminder.com/) is a service that helps you to self-track and stick to your goals.
::: tip 🔑 Credentials
You can find authentication information for this node [here](../../../credentials/Beeminder/README.md).
:::
## Basic Operations
::: details Datapoint
- Create datapoint for a goal
- Delete a datapoint
- Get all datapoints for a goal
- Update a datapoint
:::
## Example Usage
This workflow allows you to add a datapoint to Beeminder when a new activity gets added to Strava. You can also find the [workflow](https://n8n.io/workflows/900) on n8n.io. This example usage workflow would use the following nodes.
- [Strava Trigger](../../trigger-nodes/StravaTrigger/README.md)
- [Beeminder]()
The final workflow should look like the following image.
![A workflow with the Beeminder node](./workflow.png)
### 1. Strava Trigger node
This node will trigger the workflow whenever a new activity gets added to your Strava account.
1. First of all, you'll have to enter credentials for the Strava Trigger node. You can find out how to do that [here](../../../credentials/Strava/README.md).
2. Select 'created' from the ***Event*** dropdown list.
3. Click on ***Execute Node*** to run the node.
In the screenshot below, you will notice that the node triggers the workflow when a new activity gets added to Strava.
![Using the Strava Trigger node to trigger the workflow](./StravaTrigger_node.png)
### 2. Beeminder node (create: datapoint)
This node will create a datapoint for the goal `testing`. If you have created a goal with a different name, select that goal instead.
1. First of all, you'll have to enter credentials for the Beeminder node. You can find out how to do that [here](../../../credentials/Beeminder/README.md).
2. Select a goal from the ***Goal Name*** dropdown list.
3. Click on ***Add Field*** and select 'Comment'.
4. Click on the gears icon next to the ***Comment*** field and click on ***Add Expression***.
::: v-pre
5. Select the following in the ***Variable Selector*** section: Current Node > Input Data > JSON > object_data > name. You can also add the following expression: `{{$json["object_data"]["name"]}}`.
:::
6. Click on ***Execute Node*** to run the node.
In the screenshot below, you will notice that the node creates a datapoint in Beeminder.
![Using the Beeminder node to create a datapoint for a goal](./Beeminder_node.png)
::: tip 💡 Activate workflow for production
You'll need to save the workflow and then click on the Activate toggle on the top right of the screen to activate the workflow. Your workflow will then be triggered as specified by the settings in the Strava Trigger node.
:::

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB