hareeshmu / TVOverlay

Python package for TVOverlay to send notifications to your TV.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TVOverlay Notifications

Python API for TVOverlay Notification

TvOverlay

Source: https://github.com/gugutab/TvOverlay

Usage

  • Install the application on your TV
  • Get the IP of the TV unit
from tvoverlay import Notifications
notify = Notifications("192.168.1.10")

try:
    await notify.async_connect()
expect ConnectError:
    return False
await notify.async_send(
    "message text",
    title="Title text",
)

Optional parameters

{
    "message": "Message",
    "title": "Title",
    "id": "test1",
    "appTitle": "Postman",
    "appIcon": "mdi:unicorn",
    "color": "#FFC107",
    "image": "https://picsum.photos/200/100",
    "smallIcon": "mdi:bell",
    "largeIcon": "mdi:home-assistant",
    "corner": "bottom_end",
    "seconds": 20
}

About

Python package for TVOverlay to send notifications to your TV.

License:MIT License


Languages

Language:Python 100.0%