Add missed text/mail/call text to minimalisitc text (from tasker)

To add missed texts/e-mails/calls to Minimalistic Text from Tasker.
(sorry for the swedish in the screenshots)

taster_minimalistic_text.jpg

Tasker > New > Name it "Newsms"
Event > Phone > Recieved Text
"Type" is set to sms and mms as default, change if you only want notification for one of them
"Done"

Click: New Task
Name: "smscount"

Click: + > Variable > Variable Set
Name; "%SMSCOUNT"
To; "%SMSCOUNT +1"
Check: Do Maths
Click: Done
smscount01.jpg
Click: Done once more to get back out to tasker menu where you see "Newsms"

Click: smscount > Add Task > New task
Name: "Output"

Click: + > Variable > Variable Clear
Name; "%SMSNUMBER"
Done

Click: + > Variable > Variable Clear
Name; "%SMSTEXT"
Done

Click: + > Variable > Variable Set
Name; "%SMSNUMBER"
To; "ONE"
If; "%SMSCOUNT"
Click: ~ and choose Maths: Equals
In nex box toy write; "1"
smscount02.jpg
Done

Click: + > Variable > Variable Set
Name: "%SMSNUMBER"
To "TWO"
If: "%SMSCOUNT"
Click the ~ and choose Maths: Equals
In the box after that you write "2"
Done

..Continue like this until you are happy. I did up to five for sms and phone, and up to ten for mails. Not that it take a lot more system power to do to ten on all, but its just so damn boring :D
So lets say you make "FIVE" the last number in the sequence, then you should input this one AFTER the "FIVE".

Klicka på + > Variable > Variable Set
Name: "%SMSNUMBER"
To "FIVE+"
If: "%SMSCOUNT"
Click the ~ and choose Maths: Greater Than
In the box after that you write "5"
Done
smscount03.jpg

Click + > Variable > Variable Set
Name: "%SMSTEXT"
To "NEW TEXT"
If: "%SMSCOUNT"
Click the ~ and choose Maths: Equals
In the box after that you write "1"
Done

Click + > Variable > Variable Set
Name: "%SMSTEXT"
To "NEW TEXTS"
If: "%SMSCOUNT"
Click the ~ and choose Maths: Greater Than
In the box after that you write "1"
Done

Click + > Plugin > Minimalistic Text variable > Edit
Variable namn: "%MINTSMSNUMBER"
Variabel content: "%SMSNUMBER"
OK
Done

Click + > Plugin > Minimalistic Text variable > Edit
Variable name: "%MINTSMSTEXT"
Variabel content: "%SMSTEXT"
OK
Done
smscount04.jpg

Done once more to get out to the ground menu of tasker where you see "Newsms"

click New
Name it "cleansms"
Now you need to choose when the counter should be resetted. I choose Application > GO SMS. And in that way the counting of new texts will be resetted when I enter that app. Choose what's best for your needs.

Click New task and name it "clean"

Click + > Variable > Variable Clear
Name: "%SMSCOUNT"
Done

Click + > Variable > Variable Clear
Name: "%SMSNUMBER"
Done

Click + > Variable > Variable Clear
Name: "%SMSTEXT"
Done

Click + > Variable > Variable Clear
Name: "%MINTSMSNUMBER"
Done

Click + > Variable > Variable Clear
Name: "%MINTSMSTEXT"
Done

Click + > Plugin > Minimalistic Text variable > Edit
Variabel name: "%MINTSMSNUMBER"
Variabel content: " " (blankspace)
OK
Done
Done once more to get out to the ground menu of tasker where you see "Newsms" and "Cleansms"
Apply

Long-press the background of your homescreen > Widgets > Minimalistic Text 2x1 (Or some other size that suits your layout)
Click Predefined layout > Custom…
Click Custom layout
Remove the three blocks (long-press and drag to garbage can)
Click + > Misc > Locale variable (longpress and drag to the row above).
Click Locale variable
Variable name: "%MINTSMSNUMBER"
Style: Accend
Click Locale variable

Click + > Misc > Static text (longpress and drag to the row above).
Click Static text
Static text: " " (blankspace)
Style: Not-Accend
Click Static text

Click + > Misc > Locale variable (longpress and drag to the row above).
Click Locale variable (the second one)
Variable name: "%MINTSMSTEXT"
Style: Normal
Click Locale variable (the second one) > back-button

Set your layout with the rest of the settings in minimalistic text and then you hit "OK"
Remember that you wont see anything on your screen until you get an sms so the widget might be hard to put in right place. Ask some one to send an text to you or send one to your self, but if you have your sms app as count-clearer you will need to exit the app before you receive the sms ofc :D

smscount10.jpg smscount11.jpg smscount12.jpg smscount13.jpg smscount14.jpg smscount15.jpg smscount16.jpg

To show missed calls you do the same thing as above, but you need to repace
Event, Recieved Text with Event, Missed Call
And then you replace the word "SMS" with "TEL" everywhere!

E-mail is almost the same, but it depends on what mail app you are using.
I use K9 and in the first step where you choose what to make the count trigger, you still choose event but after that you press "3rd Party" > "K9 Email Received"
And then you replace the word "SMS" with "TEL" everywhere!

I hope this help any one

Best regards
/Max

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License