Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HowTo: Send Alerts to Movil (Android)

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

HowTo: Send Alerts to Movil (Android)

#1 Post by bester69 »

Requirements
- KDE Connect PC: sudo apt install kdeconnect
- KDE Connect Android: https://play.google.com/store/apps/deta ... connect_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:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

Post Reply