Setting up the Redirect plugin lets you configure a server that responds to your TRMNL device as if it were the core web application.
Use Cases
You already use the Alias plugin, but want to avoid refreshing your screen (flicker) if the content hasn't changed. the
filename
attribute is used as the "diff" parameter.You want a more dynamic rotation of content. Instead of the default minutes interval set from your Playlist > Playlist Group preferences, you may now instruct a device to wait 3 mins, versus 20 mins, and so on, based on the content being returned.
Your server is generating fresh content (images), which live at other locations, where the URL is not predictable. Either because it is hashed (e.g. S3 bucket) or otherwise needs to be unique. The Alias plugin requires a static endpoint, whereas Redirect allows you to pass back a different URL on each request.
Step 1 - Configure Plugin
From the Plugins directory, select the Redirect plugin. Provide a URL endpoint from your server.
Your server should respond with the below JSON data.
{ filename: 'get-coffee', url: 'https://myserver.com/get-coffee.bmp', refresh_rate: 3000 }
Step 2 - You're Done!
Based on your device's refresh settings, TRMNL will begin forwarding your content requests to the Web Address specified above.
Stay focused.
Credits:
Redirect by Alex Bickov from Noun Project (CC BY 3.0)