TRMNL Firefox Extension
A Firefox browser extension that displays images from your TRMNL device in new tab pages with automatic refresh functionality.
Install from the official Add-ons library here: https://addons.mozilla.org/en-US/firefox/addon/trmnl-new-tab-display/
About
This extension brings TRMNL's calm, distraction-free environment directly to your Firefox new tab page. It connects to your TRMNL account and displays the current screen from your selected device, automatically refreshing at configurable intervals.
Note: This extension was originally designed for Chrome but adopts these changes to work with Firefox-native APIs.
Requirements
- Firefox browser
- TRMNL account with a physical device or BYOD license
Features
- ๐ผ๏ธ Display TRMNL images in new tab pages
- ๐ Automatic image refresh with configurable intervals
- ๐ฑ Device selection for users with multiple TRMNL devices
- ๐ Automatic login flow - no manual API key entry required
- ๐ ๏ธ Developer tools panel for environment switching
- ๐พ Offline-friendly caching
- ๐ Dark mode support
- ๐ช Logout & reset functionality to clear all extension data
Installation
Development Installation
-
Clone this repository:
git clone git@github.com:usetrmnl/trmnl-firefox.git cd trmnl-firefox -
Open Firefox and navigate to
about:debugging -
Click "This Firefox" in the left sidebar
-
Click "Load Temporary Add-on..." and select the
manifest.jsonfile from thecodedirectory
Production Package
To create a packaged extension for distribution:
ruby pack.rb
This will create trmnl-firefox.xpi which can be installed in Firefox.
Setup
- After installation, open a new tab or click the TRMNL extension icon
- Click "Login to TRMNL" to open the TRMNL website in a new tab
- Complete your login on the TRMNL website
- The extension will automatically detect your login and fetch your devices
- Your TRMNL device screen will appear in new tabs automatically
Usage
First Time Setup
- Login: Click "Login to TRMNL" when prompted
- Authenticate: Complete login on the TRMNL website
- Automatic Setup: Extension automatically fetches your devices and API keys
Daily Use
- New Tab: Open a new tab to see the current TRMNL image
- Settings: Click the TRMNL toolbar icon to access device settings and refresh options
- Device Selection: Choose between multiple devices if you have them
- Manual Refresh: Use the "Refresh Now" button in settings or on the new tab page
Advanced Options
- Manual API Key: Advanced users can still enter API keys manually via the settings
- Logout: Clear all extension data and reset to initial state:
- Click the TRMNL toolbar icon and use the "Logout & Reset" button, or
- Use the "Logout" button in the bottom overlay of any new tab page
- Developer Mode: Use the Firefox Developer Tools to access the TRMNL panel for environment switching
Development
The extension uses:
- Firefox WebExtensions APIs (Manifest V3)
- Vanilla JavaScript
- Native Firefox storage and messaging APIs
- CSS with dark mode support
Contributing
Pull requests are welcome. Please ensure all changes maintain Firefox compatibility and follow Firefox extension best practices.