npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

node-red-contrib-lgtv-notify

v1.0.5

Published

Send toast notifications to LG webOS TVs from Node-RED. Works with webOS 10+ (2025 TVs).

Readme

node-red-contrib-lgtv-notify

Send toast notifications to LG webOS Smart TVs from Node-RED.

Works with webOS 10+ (2025 TVs) - Includes built-in SSL handling for newer TV firmware.

Features

  • Simple toast notifications on your LG TV
  • Works with webOS 3.0 and newer (including 2025 models)
  • Automatic SSL certificate handling (no manual configuration needed)
  • Auto-reconnection and message queuing
  • Saves pairing key for seamless future connections

Installation

From Node-RED Palette Manager

  1. Open Node-RED
  2. Go to Menu > Manage palette > Install
  3. Search for node-red-contrib-lgtv-notify
  4. Click Install

From Command Line

cd ~/.node-red
npm install node-red-contrib-lgtv-notify

Then restart Node-RED.

Setup

  1. Drag an LG TV notify node onto your flow
  2. Double-click to configure
  3. Add a new TV configuration with your TV's IP address
  4. Deploy
  5. Important: Check your TV for a pairing prompt and accept it

After accepting the pairing prompt once, the node will remember the connection key.

Usage

Basic Example

[inject] → [lgtv-notify] → [debug]

Set msg.payload to your notification message:

msg.payload = "Someone is at the front door!";
return msg;

Example Flow

Import this flow into Node-RED (Menu → Import):

[{"id":"a1b2c3d4","type":"inject","name":"Send Notification","props":[{"p":"payload"}],"payload":"Hello from Node-RED!","payloadType":"str","repeat":"","crontab":"","once":false,"x":160,"y":100,"wires":[["e5f6g7h8"]]},{"id":"e5f6g7h8","type":"lgtv-notify","name":"LG TV","tv":"","message":"","x":370,"y":100,"wires":[["i9j0k1l2"]]},{"id":"i9j0k1l2","type":"debug","name":"Response","active":true,"tosidebar":true,"complete":"true","x":540,"y":100,"wires":[]}]
  1. Import the flow above
  2. Double-click the "LG TV" node and configure your TV's IP address
  3. Deploy
  4. Accept the pairing prompt on your TV
  5. Click the inject button to send a notification

Home Automation Example

[mqtt in] → [function] → [lgtv-notify]
doorbell      format

Function node:

msg.payload = "Doorbell: " + msg.payload;
return msg;

Requirements

  • LG webOS Smart TV (webOS 3.0 or newer)
  • TV and Node-RED on the same network
  • "LG Connect Apps" enabled on the TV
    • Settings > General > External Device Manager > LG Connect Apps

Troubleshooting

TV not connecting

  1. Make sure the TV is powered on (not in standby)
  2. Check that "LG Connect Apps" is enabled
  3. Verify the IP address is correct
  4. The TV takes ~25 seconds after power-on before the API is available

Pairing prompt not appearing

  • Restart Node-RED and redeploy the flow
  • Try removing and re-adding the TV configuration

Notifications not showing

  • Notifications only appear when the TV is on and displaying content
  • Maximum message length is 60 characters

Support

If you find this useful, consider buying me a coffee:

Buy Me A Coffee

License

MIT

Credits

Built on lgtv2 by Sebastian Raff.