Kodi Community Forum

Full Version: Send notification to mobile with Android
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.
I need to make announcements (on screen Kodi below right) also show up on your mobile phone with Android.
Conversely it works well, phone calls and SMS from mobile phones are displayed on the screen Kodi. I use to supplement Pushbullet, but it works only in the inbout mode "Sync/Mirroring: View notifications of others devices (inbound mode)".
I would need to show notifications on your mobile phone with Android. The announcement comes from my own bash scripts.

For example:

#!/bin/bash
.
.
.
.
kodi-send -a "Notification(The first line,Second row)"
exit 0

Up above script will appear on Kodi notice. I want to make this notification is also mobile Android.

Does anyone know how to do it?

Thanks.

Translated by Google.
I solved the problem.
Pushbullet used apps (free) - Pro version is not required.
Pushbullet installs on a mobile phone with Android.
Pushbullet installs on Google Chrome.
On Kodi (Openelec) Pusbullet not need to be installed.

On the PC, Chrome sign in to my Google account (Gmail).
Settings - Account - Acces Tokens - Create


You see a string of about 32 characters that is copied into the code below.



Message_content=$(sed -n "1p" "/root/Zprava.txt")
Name=$(sed -n "2p" "/root/Zprava.txt")

curl --header 'Access-Token: copy here acces token' \
--header 'Content-Type: application/json' \
--data-binary '{"body":"'"$Message_content"'","title":"'"$Name"'","type":"note"}' \
--request POST \
https://api.pushbullet.com/v2/pushes



before and after the variable must be quotation marks apostrophe quotation marks
If there is not a variable, so only one quote.



Translated by Google.