FORUMS

Analysis & Opinion

Top Forum Discussions

[MOD][Xposed] TextInject

75 posts
Thanks Meter: 77
 
By chaimc, Member on 19th May 2015, 03:27 AM
Post Reply Subscribe to Thread Email Thread
Announcement from chaimc: More weather icons + icons mapped to weather codes
The power of Xposed meets the power of Tasker. TextInject allows you to inject custom, dynamic text throughout your system.

Create custom variables using the Text Inject Tasker plugin. Insert those values throughout your rom.
(Tasker is not required to use TextInject but is required to set custom variables.)

Use weather variables to display weather with icons.

Go ahead, make your phone awesome!

What kind of customizations can I do?

You can integrate any dynamic custom text right into the systemui. Some example:
  • Show the weather on your lockscreen or in your statusbar
  • Change the date/time format
  • Show your owner info in place of the carrier text
  • Show how many minutes till your next appointment
  • Get creative...

What parts of my os does this allow me to customize?

You can change the following text on your throughout your system:
  • Lockscreen Clock Time
  • Lockscreen Clock Date
  • Owner Info
  • Carrier Text
  • Statusbar Clock
  • Notification Drawer Date

Lollipop and KitKat supported.

On the Xposed repo: http://repo.xposed.info/module/com.c...kin.textinject

XDA:DevDB Information
TextInject, Xposed for all devices (see above for details)

Contributors
chaimc
Xposed Package Name: com.chaimchaikin.textinject

Version Information
Status: Stable
Current Stable Version: 1.0
Stable Release Date: 2015-07-20

Created 2015-05-19
Last Updated 2015-07-21
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2015-05-17-20-08-06.png
Views:	15678
Size:	59.5 KB
ID:	3320268   Click image for larger version

Name:	Screenshot_2015-05-17-20-08-16.png
Views:	15718
Size:	67.6 KB
ID:	3320269   Click image for larger version

Name:	Screenshot_2015-05-17-20-11-20.png
Views:	15634
Size:	155.2 KB
ID:	3320270   Click image for larger version

Name:	Screenshot_2015-05-18-12-07-14.png
Views:	15380
Size:	116.3 KB
ID:	3320271   Click image for larger version

Name:	Screenshot_2015-05-18-12-09-14.png
Views:	15170
Size:	103.3 KB
ID:	3320273   Click image for larger version

Name:	Screenshot_2015-05-18-12-11-42.png
Views:	14932
Size:	101.9 KB
ID:	3320274   Click image for larger version

Name:	Screenshot_2015-05-17-20-03-12.png
Views:	14906
Size:	69.5 KB
ID:	3320279   Click image for larger version

Name:	Screenshot_2015-05-17-20-02-01.png
Views:	14640
Size:	69.1 KB
ID:	3320281  
Last edited by chaimc; 10th June 2015 at 04:53 AM.
The Following 16 Users Say Thank You to chaimc For This Useful Post: [ View ]
 
 
19th May 2015, 03:27 AM |#2  
OP Member
Thanks Meter: 77
 
More
Tutorial 1: Weather in your statusbar
Tutorial 1: Weather in your statusbar
Required Apps
Step One: Setting up Tasker
  1. Open Weather ACE and choose and save your location
  2. Open Tasker and make a new Time profile. Choose From time to be 00:01 (if you've updated Tasker, choose the time 12:01 am) and un-check the To time to make the profile run until midnight. Choose Repeat and set it to be every 20 minutes. (This will control how often the weather us updated. Set it to update more or less often as you wish.)

  3. Now press back and create a New Task. You can call the task Update Weather (or don't call it anything at all if you are so inclined).
  4. Once you in your Task Edit menu, press the add button (+) at the bottom. Choose Plugin > WeatherACE Tasker Plugin
  5. Press the edit button (the pencil) next to Configuration
  6. Leave the options as selected: Location: "Your Location" (Your actual location or AUTO) and Request: Current Conditions and press the tick

  7. Return to the Task Edit menu.
  8. Press the add button (+) at the bottom. Choose Plugin >TextInject and click edit (next to Configuration)
  9. Set the following options: Name: weather and Value: %weatherace_temp° %weatherace_weather_desc

  10. Press the tick and return to the Task Edit menu.

  11. Run the task once and press back until you are out of Tasker
Step Two: Setting up TextInject
Open TextInject and write the following in the Statusbar Time field: #weather (or if you want to also retain the time #weather #o) [You may need to wait a minute until the time updates to see the changes]


That's it!
Last edited by chaimc; 10th June 2015 at 03:02 AM.
The Following 3 Users Say Thank You to chaimc For This Useful Post: [ View ]
19th May 2015, 03:27 AM |#3  
OP Member
Thanks Meter: 77
 
More
Question Tutorial 1A: Weather with icons
Tutorial 1A: Weather with icons
Inspired by my actual setup this is how to get icons for the weather instead of just text.
This tutorial has been updated to include instructions for using weather icon codes. It's a lot simpler so you might want to try again.

First follow Tutorial 1 for getting the weather in your statusbar.
Then you'll edit the Tasker task that you made to update the weather:
  1. Add a new action (+): Variables > Variable Set
  2. Set it up as follows:
    Name: %weathericon
    To: $wa%weatherace_weather_icon$
  3. Change your Set TextInject Variable action:
    Name: stays the same
    Value: %weatherace_temp° %weathericon
  4. Run the task again once
  5. Make sure you completed all the other steps in the previous tutorial
Last edited by chaimc; 21st July 2015 at 12:55 AM.
The Following 3 Users Say Thank You to chaimc For This Useful Post: [ View ]
19th May 2015, 03:27 AM |#4  
OP Member
Thanks Meter: 77
 
More
Question
Tutorial 2: Date/time Parsing
Required apps:
  • TextInject
  • Xposed

Setting up TextInject:
  1. For this example we'll make two changes: First we'll add seconds to the lockscreen time. Second we'll add the date to the statusbar.
  2. Next to the Lockscreen Time and Statusbar Time fields click the clock icon (this tells TextInject to parse the field as a date/time)
  3. For the Lockscreen Time enter: hh:mm:ss
  4. For the statusbar enter: MM/dd/yyyy #o (the #o retains the original value of this field. In our case the time.)
  5. Press the tick or leave the TextInject app to save your settings

TextInject uses a Java DateFormat to format the date/time. For a full list of characters you can use see: http://docs.oracle.com/javase/7/docs...ateFormat.html
Last edited by chaimc; 15th June 2015 at 05:53 PM.
The Following 2 Users Say Thank You to chaimc For This Useful Post: [ View ]
19th May 2015, 03:27 AM |#5  
OP Member
Thanks Meter: 77
 
More
Question
Variables and Weather Icons Explained

You don't have to read this to get weather icons - you can just follow Tutorials 1 and 1A above but if you want to know how it works or you having difficulties here is a full explanation:

There are three different types of variables we are dealing with:
  • Tasker Variables (e.g. %var)
  • TextInject Variables (e.g. #var)
  • TextInject Weather Variables (e.g. $var$)
The order of the list above is the order they are processed. Tasker Variables and TextInject Variables can be set by the user. (Tasker variables by adding an action Variable > Set Variable and TextInject variables can be set in Tasker using the action Plugins > Set TextInject Variable). TextInject Weather Variables, on the other hand, can not be set. (Yes, they are actually not variables but constants if you want to be technical.)

To be continued...
Last edited by chaimc; 21st July 2015 at 01:08 AM.
The Following 2 Users Say Thank You to chaimc For This Useful Post: [ View ]
19th May 2015, 05:00 AM |#6  
Quote:
Originally Posted by chaimc

The power of Xposed meets the power of Tasker. TextInject allows you to inject custom, dynamic text throughout your system.

Create custom variables using the Text Inject Tasker plugin. Insert those values throughout your rom.
(Tasker is not required to use TextInject but is required to set custom variables.)

Go ahead, make your phone awesome!

What kind of customizations can I do?

You can integrate any dynamic custom text right into the systemui. Some examples:

  • Show the weather on your lockscreen
  • Change the date/time format
  • Show owner info in place of the carrier text
  • Show how many minutes till your next appointment
  • Get creative...


What parts of my os does this allow me to customize?

For now you can change the following text on your lockscreen:
  • Clock Time
  • Clock Date
  • Owner Info
  • Carrier Text
  • Statusbar Clock
  • Notification Drawer Date
Coming soon: you'll be able to change (almost) any text throughout your systemui.

(Android 5 for now, more support coming!)

XDA:DevDB Information
TextInject, Xposed for all devices (see above for details)

Contributors
chaimc
Xposed Package Name: com.chaimchaikin.textinject

Version Information
Status: Beta
Current Beta Version: 0.1
Beta Release Date: 2015-05-18

Created 2015-05-19
Last Updated 2015-05-18

Available at http://repo.xposed.info/module/com.c...kin.textinject

great idea, but it isn't working for me

I don't use a lockscreen so I tried the settings for Statusbar Time and Notification Drawer Date. Created a Tasker action to set a # variable, referenced that variable in the TextInject Xposed module, nothing happens. Rebooted, nothing happens

Can you show some screenshots or specify what devices this has been successfully tested on? I tried this on a Sony D5503
19th May 2015, 09:28 AM |#7  
Senior Member
Flag Bamberg
Thanks Meter: 62
 
More
Awesome idea!
But I was pretty sad that it wouldn't install...
To prevent confusion I suggest pointing out it only supports android 5 ATM in the xposed download section

Looking forward to the KitKat version

Regards
Sent from my Boeffla powered Slim (4.4.4, AOSP based) GT-I9300
19th May 2015, 02:37 PM |#8  
OP Member
Thanks Meter: 77
 
More
Quote:
Originally Posted by wyt18

great idea, but it isn't working for me

I don't use a lockscreen so I tried the settings for Statusbar Time and Notification Drawer Date. Created a Tasker action to set a # variable, referenced that variable in the TextInject Xposed module, nothing happens. Rebooted, nothing happens

Can you show some screenshots or specify what devices this has been successfully tested on? I tried this on a Sony D5503

What rom are you using? Also can you send me a copy of your xposed log and I will look into it.
Last edited by chaimc; 19th May 2015 at 02:42 PM.
19th May 2015, 02:58 PM |#9  
Senior Member
Thanks Meter: 43
 
More
I don't like tweeking much ; but this is so cool I'll give it a try
19th May 2015, 03:21 PM |#10  
Quote:
Originally Posted by chaimc

What rom are you using? Also can you send me a copy of your xposed log and I will look into it.

Thanks, I'm on 5.0.2 stock Sony. Will send you my Xposed log shortly. I also have GravityBox so not sure if that interferes with TI
19th May 2015, 03:56 PM |#11  
Member
Thanks Meter: 8
 
More
It works for me, but not as expected... I set notifcation drawer date to #o-#nextalarm. When I refresh the value it shows the orginal value + nextalarm... Next time it gets refreshed it shows original value + nextalarm + nextalarm... I think the #o variable is now the real original value and the next alarm together. I hope you can fix this

Read More
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes