HowTo: Send Alerts to Movil (Android)

Share your own howto's etc. Not for support questions!

HowTo: Send Alerts to Movil (Android)

Postby bester69 » 2018-08-24 13:51

Requirements
- KDE Connect PC: sudo apt install kdeconnect
- KDE Connect Android: https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp
- notify-send: sudo apt install libnotify-bin

1- In Desktop's KDE-connect enable "send notifications".:

Image

2- In Android movile KDE-connect enable "receive notifications".:

Image

3- Use notify-send command to send task alerts to movile.:
notify-send "Title message" "message body" --app-name="NameApp" -i "IconName"

Image

4- Here, I give you some ready scripts for using with sending alerts:

notify.sh
Code: Select all
#!/bin/sh
#
A=0
VARL=/tmp/xxYaS
tiempo="$(cat $VARL/contador.txt)"
cat $VARL/contador.txt && A=1

 if [[ $A = 1 ]]
    then
 notify-send "$tiempo" "$2" --app-name="$1" -i kalarm
 else
 notify-send "::" "$2" --app-name="$1" -i kalarm   
    fi



timerout.sh
Code: Select all
#!/bin/bash
#
VARL=/tmp/xxYaS
rm -rf $VARL
mkdir /tmp/xxYaS
for (( c=1; c>=1; c++ ))
do 
CONT=$(date -d@$c -u +%H:%M:%S)
# clear
#echo -ne "Welcome $CONT times"
sleep 1
  printf "\r%2d $CONT Welcome times"
  echo $CONT > $VARL/contador.txt
done &
bester69 wrote:There is nothing to install in linux, from time to time i go to google searching for something fresh to install in linux, but, there is nothing
User avatar
bester69
 
Posts: 1209
Joined: 2015-04-02 13:15

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable