With NodeRED

NodeRED is an extremely powerful tool with an impressive number of connectors:

This makes NodeRDE the best possible meditation tool.

Here are some possible usage with Nunux Keeper:

  • Automatically tweet new documents
  • Archive in Nunux Keeper tweets from a timeline or a search
  • Send a notification to your mobile phone when a document is created (for example with Pushbullet or Pushover)
  • Send links from your devices via a push system and archive them in Nunux Keeper
  • Etc.

Use the API from NodeRED

Using the API from NodeRED requires the usage of the node-red-contrib-openid module. This module will support the authentication and refreshing of API access tokens.

First, you must declare a new API client in Nunux Keeper. Please refer to the section of this documentation.

Once the customer ID and secret obtained, you can return to NodeRED, open an OIDC node and enter the following information:

Then simply connect a standard HTTP node to make API call.

Example:

[{"id":"51c3a06f.0cad88","type":"inject","z":"c9fcbc16.4ac74","name":"Post fake","topic":"documents","payload":"{\"origin\":\"https://tuhrig.de/generating-pdfs-with-java-flying-saucer-and-thymeleaf/\"}","payloadType":"json","repeat":"","crontab":"","once":false,"x":160,"y":260,"wires":[["45864a8.d01f2b4"]]},{"id":"45864a8.d01f2b4","type":"function","z":"c9fcbc16.4ac74","name":"POST","func":"msg.method = 'POST';\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":260,"wires":[["85076194.6abfd"]]},{"id":"85076194.6abfd","type":"openid","z":"c9fcbc16.4ac74","name":"","openid":"","x":420,"y":260,"wires":[["35455354.1972ec"]]},{"id":"35455354.1972ec","type":"http request","z":"c9fcbc16.4ac74","name":"","method":"use","ret":"obj","url":"https://api.nunux.org/keeper/v2/{{{topic}}}","tls":"","x":570,"y":260,"wires":[["ebc7f4a1.c6843"]]},{"id":"ebc7f4a1.c6843","type":"debug","z":"c9fcbc16.4ac74","name":"","active":true,"console":"false","complete":"false","x":730,"y":260,"wires":[]}]

Push notifications to NodeRED

You can also use Webhooks to push documents to NodeRED.