Unable to get Pebble Notifier+Tasker to send notifications - Pebble

Hey everyone,
I've got my Pebble watch working great with the stock Pebble app and sending Gmail, SMS, Calendar notifications. But I'm unable to get Pebble Notifier to play nicely with Tasker. I've followed these instructions but when manually playing the Task, nothing happens:
Low battery notification
Create a new profile:
Add a context, choose State -> Power -> Battery Level. Set the levels you want it to notify you at, then hit the green check. In the Task, simply choose the plugin "Pebble Notifier" then choose to configure it. Give it a title and the body of the message you want to receive. I set the title: "Phone battery level" and the body to be:
Phone's battery level is %BATT %
which would display: "Phone's battery level is 30 %" If the trigger level was 30.
Click to expand...
Click to collapse
Is anyone having this trouble? I'm using a Nexus 4 running PAC ROM 9/17 (4.3) Nightly and Franco r183 kernel if that matters...
Thanks!
Dave

Not really much help, but works as expected for me. Stock s4
_____
Sent from my GT-i9505 using xda premium

In Pebble Notifier you need to make sure Pebble Notifier is checked in the list of apps or else it won't send it's own notifications (which is what that profile in Tasker is creating) to Pebble.

camolito said:
In Pebble Notifier you need to make sure Pebble Notifier is checked in the list of apps or else it won't send it's own notifications (which is what that profile in Tasker is creating) to Pebble.
Click to expand...
Click to collapse
Tried that but it still didn't work for me.
Ended up doing it the hard way via shell:
am broadcast -a com.getpebble.action.SEND_NOTIFICATION --es messageType PEBBLE_ALERT --es sender MyApp --es notificationData '[{"title":"Phone battery","body":"@ %BATT %"}]'

camolito said:
In Pebble Notifier you need to make sure Pebble Notifier is checked in the list of apps or else it won't send it's own notifications (which is what that profile in Tasker is creating) to Pebble.
Click to expand...
Click to collapse
I didn't need to do that
Here's my settings:
Pebble Notifier
- Notifications only
- Fetch detailed notifications
- Notify when screen is on
Pebble (Settings -> Notifications)
- Always Send notifications
- Send 3rd Party Notifications

Found this thread with a similar issue.
For me it was the fact that Pebble Tasker was installed on the phone though not used.
Once that was uninstalled it all worked.
Just thought I'd add that in case anyone else is looking.

Related

Possible to use Tasker with Active Display?

I posted this in the Themes and Apps subforum a week ago and got no responses. I was wondering if anyone proficient at Tasker knows how to modify Active Display/Notifications.
For instance, is it possible to use Tasker to dictate what notifications will show up on Active Display depending on the time of day? So, when I'm at work, I'd like to disable (i.e., uncheck) all corporate email notifications (but only as they appear in Active Display) since I get those notifications on my PC anyway. If not, maybe I need to just disable corporate email notifications globally during that period of time, which would be a less desirable solution.
I could be wrong, but I think Tasker can only do something like that if the app is setup as a plugin to work with Tasker.
There very well may be an easier/better way to do it, but if you're rooted you can run shell commands to simulate touch input on the device. You could have a task to open the Active Notifications settings, and simulate the input of tapping the checkboxes you wanted to enable/disable, and run different tasks to set/remove them based on time/location/etc.
Like I said, there may be an easier way that I am not aware of, but that comes to mind.
eyc said:
I posted this in the Themes and Apps subforum a week ago and got not responses. I was wondering if anyone that is proficient with Tasker knows how to modify modify Active Display/Notifications.
For instance, is it possible to use Tasker to dictate what notifications will show up on Active Display depending on the time of day? So, when I'm at work, I'd like to disable (i.e., uncheck) all corporate email notifications (but only on Active Display) since I get those notifications on my PC anyway. If not, maybe I need to just disable corporate email notifications globally during that period of time, which would be a less desirable solution.
Click to expand...
Click to collapse
thats actually a genius idea...unsure if we can change the active notification setting, but maybe use tasker to clear the notification from the status bar then maybe bring it back (or a tasker notification with smiliar messaging) about the skipped notification on unlock.
StephenMilone said:
thats actually a genius idea...unsure if we can change the active notification setting, but maybe use tasker to clear the notification from the status bar then maybe bring it back (or a tasker notification with smiliar messaging) about the skipped notification on unlock.
Click to expand...
Click to collapse
Well it could definitely toggle the setting. I've used it to run some actions within apps before (apps that I wanted to "manually" sync on a specific schedule. You define the shell commands as:
Code:
input tap X Y
or
input swipe X1 Y1 X2 Y2
So you'd launch "settings", find the coordinates of the Active Display button, set it to tap there, find and set the coords for "manage notification types", and the associated apps. This could be tough if you add/remove apps a lot, because the coordinates would change if a new app falls in the list ahead of one you have setup to use this method, but it would work.
You could also fire a notification from Tasker when the task is executed to tell you that the selected apps are behind hidden.
This is exactly what I wanted. How and where can I input this shell command? And how can I find the coordinates?

A solution to weak vibration

Working with tasker and AutoNitification, I have found a way to make tasker notify me with a bit more force.
Unfortunately this is not a free solution, but at $1.61 USD to unlock AutoNotification, it's not too bad.
The Notify Vibrate function in tasker has a custom vibration that mirrors on an android wear watch.
Below is the profile and task information I used for my setup.
Tasker Profile:
event->plugin->autoNotification -> on intercept: apps->[hangouts] (this can be changed to be any app you wish)
Tasker Task:
1. Notify Vibrate
Title:New Text
Pattern: 0,500,250,500(these values are milliseconds, numbers in odd positions are periods of silence, even positions are periods of vibration)​2. Wait:
3 seconds.​3. Notify Cancel
If a second notification arrives and the initial notification is still present, the new notification will not play, hence the notify cancel. Also if the notification is canceled before the vibrate pattern is finished notify cancel will cancel the vibrate pattern, hence the wait.
If anyone finds any methods to improve this, let me know and I can update the post.
Thanks! I'm gonna give this a try!
Hi I have just added a "make notifications vibration stronger" in last SWApp Launcher Wear version:
https://plus.google.com/+CyrilPreiss0/posts/CUX1DsHCTTw
hi, personally I use the application (Feel The Wear) live with my gear it can manage the vibrations for each app, I have yet to find better. (Sorry for my English I use google translation I'm French)
COOL~ Is this Real~?

Use Tasker to only get arlo camera notifications at certain times

Is this possible to do through Tasker? If so, how do you code it?
I want my cameras to record but I don't want to get notifications except for after sunset and just after sunrise everyday. So like 6pm to 8am.
Otherwise I want it to record but not notify me.
I posted this on reddit/r/tasker but no one has responded yet.
The time profile is easy. The trigger context is the window of time you want to block notifications.
The task would do the heavy lifting of actually blocking the unwanted notification. You probably could handle that using Notifications Off (Root), assuming of course that you're rooted. Else, AutoNotification can do that for you. Both are tasker integrated.
Get Started With AutoNotification
Use Tasker and AutoNotification to block notifications from certain apps (AutoApps forum)
ktmom said:
The time profile is easy. The trigger context is the window of time you want to block notifications.
The task would do the heavy lifting of actually blocking the unwanted notification. You probably could handle that using Notifications Off (Root), assuming of course that you're rooted. Else, AutoNotification can do that for you. Both are tasker integrated.
Get Started With AutoNotification
Use Tasker and AutoNotification to block notifications from certain apps (AutoApps forum)
Click to expand...
Click to collapse
Unfortunately neither of those are working. I have a pixel that is rooted and an s8+ that is not. So I tried both and I'm still getting notifications. Any ideas?
DudeThatsErin said:
Unfortunately neither of those are working. I have a pixel that is rooted and an s8+ that is not. So I tried both and I'm still getting notifications. Any ideas?
Click to expand...
Click to collapse
I didn't specifically state, but should have, that when using the AutoNotification method, an additional profile trigger needs to be an AutoNotification intercept event.
You could post a export (description) of the profile you've built.
ktmom said:
I didn't specifically state, but should have, that when using the AutoNotification method, an additional profile trigger needs to be an AutoNotification intercept event.
You could post a export (description) of the profile you've built.
Click to expand...
Click to collapse
Stuff (4)
A1: AutoNotification Block [ Configuration:Apps: com.netgear.android
Toggle: Enable Timeout (Seconds):60 ]
I pressed on export and that's what it gave me.
I also took screenshots. Here you go: https://imgur.com/gallery/bAhRY
Lmk if there is anything else you need.
Your profile is currently triggered by the arlo app. So anytime that app opens, your "stuff" task runs. Not what you were shooting for ?
On the left side of that screen, on top of the part that shows an icon and "arlo", do a long press. That will allow you to add a context.
Choose: state -> plugin -> AutoNotification -> Intercept.
Then leave "Event Behaviour" checked.
Tap on "Action type" and select created.
Tapp on "Apps" and check the box next to the Arlo app.
At the top of the screen tap the check mark to accept the configuration. Then on the next screen, the left arrow at the top left to lock in the context.
You will now have two contexts for that one profile.
Long press the original one for the arlo app and select delete.
Again, long press on the context that is remaining (AutoNotification Intercept) and tap add.
Now tap "time" and configure for the window you want this profile to be active.

[Project] Chat Heads For Any App

IMPORTANT: You need these for this to work:
Tasker
AutoNotification
AutoTools
You know how some apps allow you to create floating bubbles (chat heads) when you receive a chat from one of your contacts?
Would you like to have that available for all chat apps?
Check it out!
Import the project from here, enable the profiles and you'll start seeing the bubbles right away! :laugh:
Just imported the project and it's working flawlessly. The default replying from the notification drawer requires a couple of tapping and swiping, but this works in a very easy way and over any app. Thanks!!
niyonsv said:
Just imported the project and it's working flawlessly. The default replying from the notification drawer requires a couple of tapping and swiping, but this works in a very easy way and over any app. Thanks!!
Click to expand...
Click to collapse
May i know the steps you get it done? I have import the project but notification panel showed No profile active.
DanialMus said:
May i know the steps you get it done? I have import the project but notification panel showed No profile active.
Click to expand...
Click to collapse
Yes, the notification panel doesn't show any activities with this project. First I installed the Auto Notification app, gave all permissions. After a few minutes it started giving me the popup messages from WhatsApp and SMS organizer.
niyonsv said:
Yes, the notification panel doesn't show any activities with this project. First I installed the Auto Notification app, gave all permissions. After a few minutes it started giving me the popup messages from WhatsApp and SMS organizer.
Click to expand...
Click to collapse
Thanks, yes , after some time its working now.
How would one expand this to show MMS?
How can I get rid of the vibration when I click on the bubble?
I cant seem to get this working. All the permissions are given and Apps are installed (even Auto Tools since this was needed). Does Autotools need to be the Pro Version for this to work?
Love this project, thanks.
One question: i would like to turn of the toast notifications on the bottom of the screen. Any tips?
Retoki said:
Love this project, thanks.
One question: i would like to turn of the toast notifications on the bottom of the screen. Any tips?
Click to expand...
Click to collapse
Go to Auto Tools, Logs and Alerts, uncheck all boxes under Web Screens.
This looks great. But it doesn't work at all for me. Had it installed for 3 days now and I never have gotten a bubble to show up. I've granted all necessary permissions too.
Didn't work for me either. Imported project and no go. Mine already showed it had the bubble option in messages notifications. Was hoping this would work. Pixel 3 xl android 10 with root. No go.
For those who couldn't get it to work, did you create a task in Tasker adding the plugins?
Is there a way to customize the Avatar in the floating icon? Like in the video shown? Mine just had the generic emoji guy.
I really wanted this to work as well, but it has been a no go on my Pixel 2 XL. Would have do to with being on Pie?
@rafe83 @S8rooted&tooted
I just imported it and it works fine on a pixel 3XL, Pie.
From the description notes when you import the project;
IMPORTANT: Make sure to enable the AutoNotification Notification Listener to make this work. Open Tasker > Menu > More > Android Settings > Notification Listener > Enable AutoNotification.
Click to expand...
Click to collapse
That is the only configuration that is require.
As long as AutoNotification can intercept notifications that have a "reply" action, the chat head should appear. If not, look in your Tasker run log.
@Kwandds
The profile, "Intercept Notifications With Reply Action" contains a default icon for when the notification intercept does not contain an icon that can be used. It's set in A4
A4: Variable Set [
Name:%anicon
To:https://previews.123rf.com/images/metelsky/metelsky1809/metelsky180900233/109815470-man-avatar-profile-male-face-icon-vector-illustration-.jpg
Recurse Variables: Off
Do Maths: Off
Append: Off
Max Rounding Digits: 3
If [ %anicon !Set ]
So should the icon change depending on who is sending the message? Because on mine it's always the same default icon.
Thanks
Kwandds said:
So should the icon change depending on who is sending the message? Because on mine it's always the same default icon.
Thanks
Click to expand...
Click to collapse
The notification intercept is looking for an icon in the notification that triggers the profile. If %anicon is not set, you get the default.
ktmom said:
The notification intercept is looking for an icon in the notification that triggers the profile. If %anicon is not set, you get the default.
Click to expand...
Click to collapse
Sorry for the amateur questions, but hope do you set the %anicon?
Kwandds said:
Sorry for the amateur questions, but hope do you set the %anicon?
Click to expand...
Click to collapse
The AutoNotification event that triggers the profiles scrapes the notification for various information, including an icon. The variable "%anicon" ("an" represents AutoNotification) would contain the path to the icon in the notification if it exists.
Thanks to everyone on here. So I tried again and got it working. Only thing I did was go threw and select in the profile which apps to use. Question, anyone know how to change the color of background and size of pop up that displays. I wanna go a little rounder than the square text input that pops up. And thank you guys for posting different things to try. Finally just kept screwing around and found in each switch in the profile has to be set to package if it can be.

Alarm clock with tasker

Hello everyone i have a huawei mate 20 non root with android 9 and i would like to cancel an alarm with tasker but impossible.
I can activate an alarm at a given time but in the opposite direction impossible. do you have an idea thanks again
cordially
There are several ways to do this. What have you tried that isn't working? Even better, post the profile or task that isn't doing what you want. If you post just the task to snooze/dismiss an alarm, what triggers the task to run?
Before exporting, if you have sensitive information such as logins, api keys or anything else, you might consider setting those values to a variable and use the variable in your tasks so they won't export with the task.
To export a task description for posting, press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Now you'll be able to paste it. Be aware, it easier to use something like pastebin.com / hastebin.com and link to a post here. If you paste in a post here, the forum software will convert semicolons with characters directly after, into emoticons making it very hard to read.
Hello everyone here is what I can do and what does not work.
* What works
Calendar Entry Profile -> Work
Then task -> Set ALARM AM 05 H 45
* What does not work is the reverse task if not working then disable alarm clock
Thanks
Flechg said:
Hello everyone here is what I can do and what does not work.
* What works
Calendar Entry Profile -> Work
Then task -> Set ALARM AM 05 H 45
* What does not work is the reverse task if not working then disable alarm clock
Thanks
Click to expand...
Click to collapse
Posting the profile and task (as described above) is always more illuminating. However, the inverse of that would just be not setting an alarm. If there's no calendar entry the alarm is not set. I'm still missing the problem. Is there a residual alarm that goes off without having been set through tasker?
Edit -
I've been pondering and the only thing I can come up with is that you set an alarm and then the next day you set an alarm... then end up with a clock app full of alarms. If that's the problem, and the goal is to have the alarm only go off on work days, then approaching this problem the other way might be better.
Set the alarm to go of every day at the right time in the clock app, then create a profile that checks if today it's a work day, then set a variable.
In a second profile, use the variable (not a work day) as a context plus an AutoNotification intercept, for the alarm notification. You'll be canceling the alarm on days you don't need it.
On newer Android, there is a pre-notification that shows up some period before the alarm is set to fire (an hour maybe?). That notification has a dismiss button. If you intercept that notification, then the entry task can click on the dismiss button again using an AutoNotification action.
I think the category id is "Upcoming Alarms". This field can be examined by grabbing it in the AutoNotification profile context configured to "get all fields". Then flash %ancategoryid.
There are also clock app intents that can dismiss alarms. I don't use that because it doesn't work on my device. The intent looks like the following:
Code:
Send Intent [
Action:android.intent.action.DISMISS_ALARM
Cat:Default
Mime Type:
Data:
Extra:android.intent.extra.alarm.SEARCH_MODE:android.all
Extra:
Extra:
Package:
Class:
Target:Activity
This intent should only cancel the current occurrence of a repeating alarm.
If this works for you, then you can explore the android developer documentation - alarm clock and discover a variety of intents.
For the sake of completeness, in case this thread is found by others in the future, there is an action system -> cancel alarm.
This can be used to cancel/snooze/disable an alarm. However, it's reliability is dependant on the device/OS and at least in my case doesn't work any better than the intent. Some devices will always get a pop-up menu to confirm which alarm to take action on.
Hello and thank you for your answers
i tried intent as well as other things like cancel alarm but with my huawei it does not work okay is this android 9
I give up thanks again for your help
:crying:
The autoNotification method should work. If you haven't gone through and made sure that all of Huawei's power saving "features" are disabled so the apps can wake up and do their job without being killed by the system.
Read these
https://dontkillmyapp.com/huawei
https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00
If you really want help, then post what isn't working. Instructions to do so were given in post 2.

Categories

Resources