First Time Around
First Time Around is a one-disk DVD by Randy Bachman and Burton Cummings recorded in 2006 at CBC Studios in Toronto, Canada, by CBC. It was originally shown on CBC in April 2006, but was later released as a DVD with extended footage of the concert. The concert has 20 tracks of songs by Bachman-Turner Overdrive, Burton Cummings, The Guess Who and cover versions of artists such as Sting and Jimi Hendrix. It was originally shown on CBC in April 2006, but was later released as a DVD with extended footage of the concert. The concert has 20 tracks of songs by Bachman-Turner Overdrive, Burton Cummings, The Guess Who and cover versions of artists such as Sting and Jimi Hendrix Sting and Jimi Hendrix. It was originally shown on CBC in April 2006, but was later released as a DVD with extended footage of the concert. The concert has 20 tracks of songs by Bachman-Turner Overdrive, Burton Cummings, The Guess Who and cover versions of artists such as Sting and Jimi Hendrix Sting and Jimi Hendrix. It was originally shown on CBC in April 2006, but was later released as a DVD with extended footage of the concert. The concert has 20 tracks of songs by Bachman-Turner Overdrive, Burton Cummings, The Guess Who and cover versions of artists such as Sting and Jimi Hendrix.
```
--------------------------------
### Currency formatting with number_to_currency
Source: https://help.trmnl.com/en/articles/10347358-custom-plugin-filters
Examples of number_to_currency with custom currency units, delimiters, separators, and locale-based formatting. Note that named parameters are not supported, so all preceding arguments must be supplied when overriding later defaults.
```liquid
# currency handling
{{ 10420 | number_to_currency }} # => $10,420.00
{{ 152350.69 | number_to_currency: '£' }} # => £152,350.69
# optional 2nd + 3rd args delimit + separate
{{ 1234.57 | number_to_currency: '£', '.', ',' }} # => £1.234,57
# currency handling with locale instead of currency unit
{{ 1234.57 | number_to_currency: 'sv' }} # => 1234.57 kr
{{ 1234.57 | number_to_currency: 'sv', '.', ',' }} # => 1.234,57 kr
{{ 1234.57 | number_to_currency: 'en-GB' }} # => £1234.57
```
--------------------------------
### Notion Database Filter Object Example
Source: https://help.trmnl.com/en/articles/11882090-notion
Notion filter object example for a database query, using a select property with an equals condition. The filter is built after finding the column type and optionally using dynamic timestamps.
```json
{
"property": "Author",
"select": {
"equals": "J. R. R. Tolkien"
}
}
```
--------------------------------
### Debug logs example: await outside async function error
Source: https://help.trmnl.com/en/articles/14130649-serverless
Example error shown when Debug Logs are enabled. It illustrates a SyntaxError from using await outside of an async function.
```javascript
let data = await fetch('https://dummyjson.com/quotes?limit=5')
^^^^^
SyntaxError: await is only valid in async functions and the top level bodies of modules
```
--------------------------------
### Parse lat_lon with Liquid filters
Source: https://help.trmnl.com/en/articles/10513740-custom-plugin-form-builder
Example URL using Liquid 'first' and 'last' filters to split the lat_lon value into separate lat and lon query parameters.
```liquid
https://yoururl.com/?lat={{ lat_lon | split: ',' | first }}&lon={{ lat_lon | split: ',' | last }}
```
--------------------------------
### Node.js v20 Serverless run function with fetch
Source: https://help.trmnl.com/en/articles/14130649-serverless
Node.js (v20) example that uses the built-in fetch module. Define an asynchronous run function and return an object containing the fetched quote.
```javascript
async function run(input) {
const res = await fetch("https://dummyjson.com/quotes?limit=1");
const data = await res.json();
return { quote: data.quotes[0] };
}
```
--------------------------------
### qr_code filter with fixed size options
Source: https://help.trmnl.com/en/articles/10347358-custom-plugin-filters
For backwards compatibility, you can use a fixed width/height. This example uses a larger module_size, lower error correction level, and fixed size.
```liquid
# A larger module_size, lower error correction "level", and fixed size
{{ "https://somewhere.com" | qr_code: 18, "", "fixed" }}
```
--------------------------------
### Authorization URL with PKCE
Source: https://help.trmnl.com/en/articles/17225165-developer-apps
Example authorization URL for TRMNL OIDC with PKCE. The link includes response_type, client_id, redirect_uri, scopes, state, and S256 PKCE parameters. The line breaks are for readability; the actual URL should be a single line.
```text
https://trmnl.com/oidc/authorize?response_type=code
&client_id=YOUR_CLIENT_ID
&redirect_uri=https%3A%2F%2Fexample.com%2Fauth%2Ftrmnl%2Fcallback
&scope=read%20content
&state=abc123
&code_challenge=YOUR_CODE_CHALLENGE
&code_challenge_method=S256
```
--------------------------------
### Code field configuration
Source: https://help.trmnl.com/en/articles/10513740-custom-plugin-form-builder
Defines a code field with a keyname, field type, rows, name, description, placeholder, and help text. The placeholder is a multi-line JSON example.
```yaml
- keyname: json_query
field_type: code
rows: 8
name: JSON Query
description: Provide a raw query
placeholder: |
{ "cannot": "spare a square" }
help_text: Learn how to do this