Skip to content

Tasker script to send email alert when the battery percentage is low.

Notifications You must be signed in to change notification settings

pmcfarland/tasker-low-battery-alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

tasker-low-battery-alert

Tasker(https://tasker.joaoapps.com/) script to send email alert when the battery percentage is low.

Description

I wanted to create a simple task to send me an email with the current location as the battery percentage gets low from my son's phone. Usage

I configured a series of profiles to run when the battery is between 5 and 20% but that could easily be adjustable.

Profile Description

Profile: Low Battery 20 (2) Restore: no State: Battery Level [ From:20 To:25 ] State: Not Power [ Source:Any ] Enter: Low Battery Alert (3) A1: Get Location v2 [ Timeout (Seconds):30 Minimum Accuracy (meters): Speed (meters/second): Altitude (meters): Near Location: Enable Location If Needed:Off Last Location If Timeout:Off Min Speed Accuracy (m/s): ] A2: Send email [ Configuration:Send email from user@server.com to user@server.com Timeout (Seconds):0 ] A3: Flash [ Text:Alert, battery is low! %BATT Long:Off ]

Exit: Low Battery Alert (3) A1: Get Location v2 [ Timeout (Seconds):30 Minimum Accuracy (meters): Speed (meters/second): Altitude (meters): Near Location: Enable Location If Needed:Off Last Location If Timeout:Off Min Speed Accuracy (m/s): ] A2: Send email [ Configuration:Send email from user@server.com to user@server.com Timeout (Seconds):0 ] A3: Flash [ Text:Alert, battery is low! %BATT Long:Off ]

Profile: Low Battery 10 (4) Restore: no State: Battery Level [ From:10 To:15 ] State: Not Power [ Source:Any ] Enter: Low Battery Alert (3) A1: Get Location v2 [ Timeout (Seconds):30 Minimum Accuracy (meters): Speed (meters/second): Altitude (meters): Near Location: Enable Location If Needed:Off Last Location If Timeout:Off Min Speed Accuracy (m/s): ] A2: Send email [ Configuration:Send email from user@server.com to user@server.com Timeout (Seconds):0 ] A3: Flash [ Text:Alert, battery is low! %BATT Long:Off ]

Exit: Low Battery Alert (3) A1: Get Location v2 [ Timeout (Seconds):30 Minimum Accuracy (meters): Speed (meters/second): Altitude (meters): Near Location: Enable Location If Needed:Off Last Location If Timeout:Off Min Speed Accuracy (m/s): ] A2: Send email [ Configuration:Send email from user@server.com to user@server.com Timeout (Seconds):0 ] A3: Flash [ Text:Alert, battery is low! %BATT Long:Off ]

Profile: Low Battery 5 (5) Restore: no State: Battery Level [ From:5 To:7 ] State: Not Power [ Source:Any ] Enter: Low Battery Alert (3) A1: Get Location v2 [ Timeout (Seconds):30 Minimum Accuracy (meters): Speed (meters/second): Altitude (meters): Near Location: Enable Location If Needed:Off Last Location If Timeout:Off Min Speed Accuracy (m/s): ] A2: Send email [ Configuration:Send email from user@server.com to user@server.com Timeout (Seconds):0 ] A3: Flash [ Text:Alert, battery is low! %BATT Long:Off ]

Exit: Low Battery Alert (3) A1: Get Location v2 [ Timeout (Seconds):30 Minimum Accuracy (meters): Speed (meters/second): Altitude (meters): Near Location: Enable Location If Needed:Off Last Location If Timeout:Off Min Speed Accuracy (m/s): ] A2: Send email [ Configuration:Send email from user@server.com to user@server.com Timeout (Seconds):0 ] A3: Flash [ Text:Alert, battery is low! %BATT Long:Off ]

NOTE: This task requires the MailTask app/plugin (https://play.google.com/store/apps/details?id=com.balda.mailtask)

Please replace user@server.com with your email address. Also replace with the user's name

Here is an example (redacted) screenshot from what the alert would look like:

example

About

Tasker script to send email alert when the battery percentage is low.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published