
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
notifications-android-tv
Advanced tools
Python package that interfaces with Notifications for Android TV and Notifications for Fire TV to send notifications to your TV.
from notifications_android_tv import Notifications
notify = Notifications("192.168.1.10")
# validate connection
try:
await notify.async_connect()
expect ConnectError:
return False
await notify.async_send(
"message text",
title="Title text",
)
title
: Notification titleduration
: Display the notification for the specified period. Default is 5 secondsfontsize
: Text font size. Use FontSizes
class to set the fontsize. Default is FontSizes.MEDIUM
position
: Notification position. Use Positions
class to set position. Default is Positions.BOTTOM_RIGHT
.bkgcolor
: Notification background color. Use BkgColors
class to set color. Default is BkgColors.GREY
.transparency
: Background transparency of the notification. Use Transparencies
class. Default is Transparencies._0_PERCENT
.interrupt
: Setting it to True
makes the notification interactive and can be dismissed or selected to display more details. Default is False
icon
: Can be str
represnting the file path or an ImageUrlSource
that includes the url and authentication params to fetch the image from a url.image_file
: Can be str
represnting the file path or an ImageUrlSource
that includes the url and authentication params to fetch the image from a url.Refer to the example file for setting these parameters directly or from a data dictionary (as documented in https://www.home-assistant.io/integrations/nfandroidtv)
FAQs
Python API for sending notifications to Android/Fire TVs
We found that notifications-android-tv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.