Newb: Any way to put the current weather temp and a weather icon in the status bar?

Xander

New member
Subject says it all. That's one little thing I'd love to be able to do but I don't have the slightest idea if it can even be done at all and, if so, how.

Thoughts?

I use "Calendar Notify" which adds the date up there and I quite like it being visible all the time. I'd love to be able to add weather at a glance.
 

RSF

Well-known member
Couple possibilities come to mind:
  • You could use MacroDroid's Notification > Display Notification action to post the current temperature in the notification bar, and the same action to post an additional notification showing an icon of a sun, or cloud, etc. That gives you the most customizability and control. But ... you'd also need to get those values by periodically calling an API like this one. You'll want to be comfortable with sending API calls using MacroDroid's Web Interactions > HTTP Request action and dealing with "JSON"-formatted response data. So, definitely doable but it's a bit complicated.
  • Install a weather app like AccuWeather or NOAA Weather Free. Those two (and probably dozens more similar apps) have options to display a persistent notification showing the current temperature in the notification bar -- for free -- with more weather info when you swipe down on the screen. AccuWeather also has the ability to add more notifications for a premium subscription.
 

Xander

New member
Thanks.
Not sure I'm up to JSON calls.

NOAA isn't available to me in Canada but Accuweather does put the temp in the status bar so that's a win.
 

RSF

Well-known member
Turns out there's a third option, sort of a "light" version of the first option. MacroDroid has a Weather trigger to trigger a macro if the weather has changed at the location stored in MacroDroid's settings (Settings > Trigger Options > Weather Trigger > Weather Location). If you're OK with seeing weather info from a relatively fixed location, the attached macro might work for you.

The macro displays the most recent temperature as a text notification, as well as the current weather condition as an icon notification.

You will need to create a Notification Channel called "FYI" for the notifications, but it's a one-time-only process. Go to Settings > Notification Options > Notification Channels, then tap "+". Once you create the channel, you can configure whether its notifications make a sound, or vibrate, or not, in Android's Notification settings.

The macro displays icons for clear, somewhat cloudy, very cloudy, drizzly or rainy, thunderstorms, or snow, or other. You can change any of the icons. FYI: the list of possible weather conditions is at https://openweathermap.org/weather-conditions; MacroDroid coincidentally uses that same OpenWeatherMap.org API I'd mentioned in my earlier post,

If you travel a lot and need the weather info for the location of your phone to be updated a few times a day (more than you'd want to manually update the MacroDroid Weather Location), I can probably modify the macro pretty easily to utilize the API directly instead of using MacroDroid's Weather trigger.
 

Attachments

  • Weather_trigger_and_notifications.macro
    26.9 KB · Views: 12
Top