Python package that interfaces with Notifications for Android TV and Notifications for Fire TV to send notifications to your TV.
- Install the application on your TV
- Get the IP of the TV unit
from notifications_android_tv import Notifications
notify = Notifications("192.168.1.10")
notify.send(
"message text",
title="Title text",
fontsize="medium",
bkgcolor="green"
)
title
: Notification titleduration
: Display the notification for the specified period. Default is 5 secondsfontsize
: Text font size. Can be one of (small
,medium
,large
,max
)position
: Notification position. Can be one of (bottom-right
,bottom-left
,top-right
,top-left
,center
). Default isbottom-right
.bkgcolor
: Notification background color. Can be one of (grey
,black
,indigo
,green
,red
,cyan
,teal
,amber
,pink
). Default isgrey
.transparency
: Background transparency of the notification. Can be one of (0%
,25%
,50%
,75%
,100%
). Default is0%
.interrupt
: Setting it toTrue
makes the notification interactive and can be dismissed or selected to display more details. Default isFalse
icon
: Attach icon to notification. Type must bebytes
.image_file
: Attach image to notification. Type must bebytes
.