
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
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.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.