Automating API calls with Rig
-
Hello, right now I am using the trial version of Templater Rig. Is it possible to create a template that has Templater make an API call to get data every x number of minutes and generate an image?
-
@gjkoble Yes this is absolutely possible by enabling Bot. The trial actually gives you all features from all editions of Templater. So, technically, you could not acheive what you are asking with Templater Rig, you would need Templater Bot. However, since you are still within your trial period, you could still do this.
You can point to any URL that responds with JSON object arrays. Each object in the array would effectively be a new video. It’s up to you how you want to setup the server that Templater requests data from at regular intervals. You can see Bot in action by watching the following video:
However, that video shows a Google Sheet as a Templater data source. You can do the same thing except instead of using a Google Sheet, you can use a URL feed. Learn more about using URL feeds with Templater on our support site. Note the following from that article, however:
When using a URL feed, The Bot cannot update the value of the “render-status” key because the data source is specific to the user’s system. Therefore, users should register custom scripts to update “render-status” values at appropriate events to avoid re-rendering “ready” data.
Hopefully this helps, and please do not hesitate to ask any more questions!
Thank you for giving Templater a spin!