trmnl
Generate content for TRMNL e-ink display devices using the TRMNL CSS framework. Use when the user wants to display information on their TRMNL device, send messages to an e-ink display, create dashboard content, show notifications, or update their terminal display. Supports rich
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Generate content for TRMNL e-ink display devices using the TRMNL CSS framework. Use when the user wants to display information on their TRMNL device, send messages to an e-ink display, create dashboard content, show notifications, or update their terminal display. Supports rich layouts with the TRMNL framework (flexbox, grid, tables, progress bars, typography utilities) and sends content via webhook API.
How to use
Zainstaluj lub zaktualizuj CLI TRMNL, uruchamiając w terminalu
npm install -g trmnl-cli@latest.Sprawdź dostępne pluginy poleceniem
trmnl plugin. Jeśli lista jest pusta, dodaj plugin webhook za pomocątrmnl plugin add nazwa-pluginu "https://trmnl.com/api/custom_plugins/{uuid}", gdzie {uuid} to identyfikator twojego urządzenia.Opisz użytkownikowi, jaką treść chce wyświetlić na ekranie (dashboard, powiadomienie, dane, itp.) oraz potwierdź typ urządzenia (domyślnie TRMNL OG, 2-bit, 800x480).
Wygeneruj HTML używając klas frameworku TRMNL (layout, item, value, title_bar, gap--space-between itp.) i zapisz zawartość do pliku tymczasowego, np.
/tmp/trmnl-content.html.Wyślij treść na urządzenie poleceniem
trmnl send --file /tmp/trmnl-content.html. Jeśli masz wiele pluginów, możesz wysłać do konkretnego z nich dodając--plugin nazwa-pluginu.Potwierdź użytkownikowi, że zawartość została wysłana na wyświetlacz, bez echowania kodu HTML z powrotem do czatu.