A Node-RED flow that integrates a Wekan Kanban Board and Habitica in two ways:
- Creates Habitica todos when new Wekan cards are created
- "Scores" (marks complete and issues reward for) Habitica todos in Habitica when their matching cards are moved to a "Completed" column in Wekan.
- Install Node-RED & Wekan somewhere
- Copy the contents of Node-REDFlowExport.json to your clipboard and import into your Node-RED instance
- Complete setup per the instructions in the flow comment:
- Create a webhook on a board in your Wekan instance. Set the URL to
yourNodeREDInstance.com/nodered/POSTcards
- Get the id of your 'completed' column in Wekan using the inspector. It will look something like this:
id="js-list-w3hpri5SCfJoE9CTD"
. We only need the last part, afterjs-list-
. - Enter the list id in the
if
statement conditional of theBuild score task request Formula
node. - Fill in your credentials in the
Habitica Creds
node. ID & Client should both be your user ID, and key should be your API key. This information can be found in the API section of your Habitica user settings. - Hit "Deploy," test, and enjoy.
- Create a webhook on a board in your Wekan instance. Set the URL to
- Task difficulty can be set by changing the value of
"priority"
in theBuild create task request
node:
Value | Difficulty |
---|---|
0.1 | Trivial |
1 | Easy |
1.5 | Medium |
2 | Hard |
- Gold reward for completing the task can be set by adding the property
"value"
in theBuild create task request
node and setting to a positive number. - Refer to the Habitics API Docs for more info.