General Magic Texts
The following Magic Texts are available anywhere within a macro or Action Block and do not require a specific trigger to be used.
AM/PM
{am_pm}
Returns AM or PM based on the device's current time.
Android Version
{android_version}
Returns the Android system version installed on the device.
Android Version (SDK Level)
{android_version_sdk}
Returns the Android SDK level. Example: Android 14 corresponds to SDK level 34.
Available RAM
{ram_available}
Amount of available RAM memory at this moment.
Battery Temperature (°C)
{battery_temp}
Current battery temperature in degrees Celsius. Example: 34°.
Cell ID
{cell_id}
Unique identifier of the cellular cell the device is connected to.
Cellular Connection Type
{cell_connection_type}
Current mobile network type (3G, 4G, 5G, LTE, etc.).
Cellular Tower Signal Strength
{cell_signal_strength}
Signal strength received from the nearest cellular tower in dBm (-50 dBm is strong, -110 dBm is weak).
Charging Status (on/off)
{power}
Returns on if the device is charging, off otherwise.
Clipboard Text
{clipboard}
Gets the text currently copied to the clipboard.
Battery Current (mA)
{battery_current_now}
Shows the current electrical current flowing from the battery in milliamps (mA).
Current Battery Level (%)
{battery} or {battery_int}
Remaining battery percentage. Example: 80.
Current Brightness
{current_brightness}
Current screen brightness level.
Current Brightness (Alternative Method)
{current_brightness_alternative}
Alternative method to get brightness on Android 9 or higher.
Current IP Address (IPv4)
{ip}
Current IP address in IPv4 format.
Current IP Address (IPv6)
{ip6}
Current IP address in IPv6 format.
Current Minute
{minute}
Current minute of the hour.
Current Month
{month}
Name of the current month.
Current Second
{second}
Current second of the minute.
Current Speed (km/h)
{last_loc_speed_kmh}
Current speed in kilometers per hour (requires an active navigation app).
Current Speed (mph)
{last_loc_speed_mph}
Current speed in miles per hour (requires an active navigation app).
Current Volume - Alarm
{vol_alarm}
Volume level set for alarms.
Current Volume - Bluetooth
{vol_bt_voice}
Volume level for Bluetooth calls and audio.
Current Volume - Call
{vol_call}
Volume level during a phone call.
Current Volume - Multimedia
{vol_music}
Volume level for music and multimedia content.
Current Volume - Notifications
{vol_notif}
Volume level for notifications.
Current Volume - Ringtone
{vol_ring}
Volume level for the call ringtone.
Current Volume - System Sounds
{vol_system}
Volume level for system sounds (touches, screen lock, etc.).
Current Year
{year}
Current year.
Day of the Month
{dayofmonth}
Day of the month with leading zero
(e.g. 04 or 24).
Day of the Week
{dayofweek}
Full name of the day of the week (e.g. Monday, Friday).
Device Manufacturer
{device_manufacturer}
Name of the device manufacturer (e.g. Samsung, Xiaomi).
Device Model
{device_model}
Exact device model.
Device Serial Number
{device_serial}
Device serial number
(not available on Android 10 or higher).
Device Uptime
{uptime}
Time the device has been powered on in hours:minutes:seconds format.
Dictionary or Array Size
{size=name}
Returns the number of elements in a dictionary or array.
Example: {size=my_array}.
Foreground App Name
{fg_app_name}
Name of the app that is currently in the foreground.
Foreground App Package
{fg_app_package}
Package name of the app that is in the foreground.
Free Storage (External)
{storage_external_free}
Free space available on external storage.
Free Storage (Internal)
{storage_internal_free}
Free space available on internal storage.
GUID
{guid}
Generates a new GUID (globally unique identifier) each time it runs.
Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
Horizontal Resolution (X)
{screen_res_x}
Horizontal screen resolution.
IMEI
{imei}
Device IMEI number
(not available from Android 10).
Language Code
{language_code}
Language code configured on the system
(e.g. es, en).
Last Location - Accuracy
{last_loc_accuracy}
Accuracy of the last known location in meters.
Last Location - Altitude
{last_loc_alt}
Altitude above sea level of the last known location.
Last Location - Date and Time
{last_loc_age_timestamp}
Date and time when the last location was obtained.
Last Location - Google Maps Link
{last_loc_link}
Direct link to Google Maps with the last location.
Last Location - Latitude
{last_loc_lat}
Latitude of the last known location.
Last Location - Latitude and Longitude
{last_loc_latlong}
Latitude and longitude separated by a comma.
Last Location - Longitude
{last_loc_long}
Longitude of the last known location.
Location Area Code (LAC)
{lac}
Code that identifies the location area in the cellular network.
Macro Category
{macro_category}
Name of the category that the running macro belongs to.
Macro ID
{macro_id}
Unique GUID identifier of the macro.
Macro Name
{macro_name}
Name of the macro that is running.
MacroDroid is Pro
{macrodroid_is_pro}
Returns true if you have the Pro version, false otherwise.
MacroDroid Version
{macrodroid_version}
Currently installed version of MacroDroid.
Mobile Country Code (MCC)
{mcc}
Country code of the mobile network.
Mobile Network Code (MNC)
{mnc}
Code that identifies the mobile network operator.
Month (in digits)
{month_digit}
Current month in numeric format.
New Line
\n
Inserts a line break
(does not require curly braces).
Next Sunrise
{next_sunrise_time}
Time of the next sunrise based on your location.
Example: 06:12
Next Sunset
{next_sunset_time}
Time of the next sunset based on your location.
Example: 20:45
Screen Resolution
{screen_res}
Screen resolution in X,Y format (e.g. 1080,2400).
Screen Timeout
{screen_timeout}
Time in seconds before the screen turns off automatically.
SIM 2 Operator Name
{sim2_operator_name}
Name of the second SIM operator.
SIM Operator Name
{sim_operator_name}
Name of the main SIM operator.
Stopwatch - hh:mm
{stopwatchtime_no_secs=name}
Returns the stopwatch time in hours:minutes format (without seconds).
Stopwatch - hh:mm:ss
{stopwatchtime=name}
Returns the total stopwatch time in hours:minutes:seconds format.
Stopwatch - mm:ss
{stopwatchtime_min_secs=name}
Returns the stopwatch time in minutes:seconds format.
Stopwatch - Seconds
{stopwatch=name}
Returns the total stopwatch time in seconds (e.g. 125.5).
System Setting (Global)
{setting_global=key}
Gets the value of a Global system setting.
System Setting (Secure)
{setting_secure=key}
Gets the value of a Secure system setting.
System Setting (System)
{setting_system=key}
Gets the value of a System system setting.
System Time (Unix)
{system_time}
Current Unix time in seconds since 1970.
System Time (Unix milliseconds)
{system_time_ms}
Current Unix time in milliseconds since 1970.
Text Variable Length
{strlen=variable_name}
Returns the number of characters in a text variable.
Time of Day (12h)
{hour12}
Time of Day (24h)
{hour}
Current time in 24-hour format.
Time of Day with leading zero
{hour_0}
Current time in 24h format with a leading zero (e.g. 09).
Total RAM
{ram_total}
Actual total RAM memory of the device.
Total Storage (External)
{storage_external_total}
Total capacity of external storage.
Total Storage (Internal)
{storage_internal_total}
Total capacity of internal storage.
Uptime (seconds)
{uptime_secs}
Time the device has been powered on expressed in seconds.
Vertical Resolution (Y)
{screen_res_y}
Vertical screen resolution.
Webhook Base URL
{webhook_url}
Returns the base URL of your custom webhook.
Week of the Year
{week_of_year}
Current week number of the year.
WiFi Network Name (SSID)
{ssid}
Name of the WiFi network you are currently connected to.
WiFi Signal Strength
{wifi_strength}
WiFi signal strength in dBm (negative values).
Note: Some magic texts require specific permissions or special conditions (such as active location or created stopwatches) to work properly.
