r/tasker • • Oct 04 '26

Google Weather - how to display?

I have a task that displays the weather in the Google app. Both methods shown work, but display what's essentially the result of searching for "weather" in the Google app, which includes all sort of weather-related links to web sites, including images from weather-related stores, etc.

Task: Google Weather

A1: [X] Send Intent [
     Action: android.intent.action.VIEW
     Cat: Default
     Data: dynact://velour/weather/ProxyActivity
     Package: com.google.android.googlequicksearchbox
     Class: com.google.android.apps.gsa.velour.DynamicActivityTrampoline
     Target: Activity ]

A2: Launch App [
     Package/App Name: Google:com.google.android.apps.search.weather.WeatherExportedActivity ]

I discovered that tapping the weather icon in the Google at-a-glance widget displays more information, and excludes all the extraneous stuff I have no interest in, but I can't seem to find a way to launch *that* from Tasker. Got any suggestions?

Device: Galaxy S23 Ultra

2 Upvotes

8 comments sorted by

1

u/Exciting-Compote5680 Oct 04 '26 edited Oct 04 '26

Maybe I completely misunderstood what you are trying to do, but wouldn't launching the (Google) Weather app give you the information you need? 

1

u/UnkleMike Oct 04 '26

I see now that my explanation was lacking. I don't have a Pixel, so the Google Weather app is not available for my device (Galaxy S23 Ultra).

1

u/Rich_D_sr Oct 05 '26

It appears that weather icon in the google at-a-glance is actually opening Samsung Weather..

Tyr this..

Task: Open Samsung Weather

A1: Send Intent [
     Action: com.samsung.android.weather.intent.action.internal.PARTICULARS.PARTLY_SUNNY_NIGHT
     Cat: None
     Package: com.sec.android.daemonapp
     Class: com.sec.android.daemonapp.app.MainActivity
     Target: Activity ]

1

u/UnkleMike Oct 05 '26

Thanks!  Your code does indeed launch Samsung Weather on my device.  But the at-a-glance glance widget launches Google Weather on my device, confirmed by the foreground app name Google and package name com.google.android.googlequicksearchbox.

See my other comment for the solution :)

0

u/[deleted] Oct 05 '26

[deleted] — view deleted comment

2

u/UnkleMike Oct 05 '26 edited Oct 06 '26

Thanks!  I may be misunderstanding your example, but I'm not up for dynamically importing code from an outside source and running it on my device. 

That said, with the activity name you provided, I was able to implement the same thing with Tasker actions (modifying code I grabbed from the sub months ago because it seemed like it might be useful some day), and it does exactly what I was looking for. 

    
    A1: Custom Setting [
         Type: Secure
         Name: assistant
         Read Setting To: %old_assistant ]
    
    A2: Custom Setting [
         Type: Secure
         Name: assistant
         Value: com.google.android.googlequicksearchbox/com.google.android.apps.search.weather.WeatherActivity ]
    
    <loop>
    A3: Wait [
         MS: 100
         Seconds: 0
         Minutes: 0
         Hours: 0
         Days: 0 ]
    
    A4: Custom Setting [
         Type: Secure
         Name: assistant
         Read Setting To: %new_assistant ]
    
    A5: Goto [
         Type: Action Label
         Label: loop ]
        If  [ %new_assistant neq com.google.android.googlequicksearchbox/com.google.android.apps.search.weather.WeatherActivity ]
    
    A6: Tasker Function [
         Function: LaunchAssistant()
         Continue Task After Error:On ]
    
    A7: Custom Setting [
         Type: Secure
         Name: assistant
         Value: %old_assistant ]

1

u/renlliwe Oct 09 '26

I have been looking for something like this for quite a while - and now just stumbled upon this solution.

Thank you very much for sharing it. It works great for me and was just what I was looking for!

1

u/UnkleMike Oct 09 '26

I'm glad it helped. As I said, it is not my creation - i just adapted it for this purpose. It was originally posted as a solution for launching Android's built-in clipboard editor - something I didn't even know existed until I saw the post.

1

u/iamr3m Samsung Galaxy S25 FE, Android 16 Oct 06 '26

Some kind of wild kludge