Node-Red Flow Samples/Sharing

.
Fun little flow I put together tonight to pull data from the Trakt.TV API


.

I use the first row of nodes to send a telegram message to myself that has the link and the device code

Once the code is entered there, Node-RED will pull the generated token and that is good for 3 months from that point. So obviously I am using the persistent storage option for my flow variables to store that to survive reboots. Setting that up is the only thing special needed.

I was thinking of storing the date the token was generated and checking that once a day and if it's close to expiring shoot off that message to Telegram to renew the token.
.

An example of what to do with the data retrieved.

2 Likes