yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] wyt18:
Yes, I do have the date for notification panel. I was hoping for time too, but understand it's not available. Thanks for all your work on this module!
[Xposed Framework Modules] chaimc:
You welcome. :)

I'm working on it so you'll probably see it in a near update.
[Xposed Framework Modules] chaimc:
Working on it..
[Xposed Framework Modules] chaimc:
Newest version (0.5) includes an option to parse the statusbar clock as date/time. Enjoy :)
[Xposed Framework Modules] wyt18:
Could you provide an example of how to use the date/time parser ? What should we write in the TextInject module interface, etc
[Xposed Framework Modules] chaimc:
You can use any format that you can use in a Java DateFormat.

Here's an example: "d MMMM yyyy" (enter this into the status bar field [without the quotation marks] and check the parse as date option) will give you 3 June 2015

For a full list of pattern characters you can use check http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html
[Xposed Framework Modules] wyt18:
thank you ... understand how it works now

I was hoping to combine a custom Tasker variable with a parsed original date/time variable (#o) but that doesn't work since the module tries to parse the custom Tasker variable as well
[Xposed Framework Modules] rgawenda:
Working wonderfully. Thank you! :good:
[Xposed Framework Modules] chaimc:
Try surrounding the variable in single quotes like '. For example: '#var' hh:mm
[Xposed Framework Modules] wyt18:
that didn't work for me. once a single quote ' appears in the field, the entire line does not get parsed
[Xposed Framework Modules] evanovici:
'elp!

You know that feeling when you've stumbled to something huge and you can't use it?

Anyone care to make a tutorial on how to make it work? I am trying to get the weather in the lockscreen thingy but I'm completely lost...

TIA
[Xposed Framework Modules] chaimc:
Give me the value you are entering into TextInjext. Also a sample of what the Tasker variable will be set to.
[Xposed Framework Modules] chaimc:
I can try help. Do you have Tasker? Do you have any idea how to use Tasker?
[Xposed Framework Modules] wyt18:
here's what I'm entering into the TextInject field for status bar: EEE d MMM #status

tasker is setting #status to "CHT" which is my wifi ssid
[Xposed Framework Modules] chaimc:
Where are you putting the single quotes? Around the whole value or just the #status like this:

EEE d MMM '#status'
[Xposed Framework Modules] wyt18:
yes, exactly like you have it above: EEE d MMM '#status'

once I put the quotes in however, the EEE d MMM no longer gets parsed

---------- Post added at 01:23 PM ---------- Previous post was at 01:18 PM ----------

carrier text isn't working for me either ... just keeps the original value no matter what i enter in the field. I'm on Xperia Z1C stock 5.0.2 rom
[Xposed Framework Modules] chaimc:
I see the problem. I'll work on a fix for that.

At the moment the carrier text only gets updated when it naturally would be updated i.e. on a network change. (you can turn on and off airplane mode to trigger this). This will be changed in a future version.
[Xposed Framework Modules] wyt18:
makes sense ... thanks!
[Xposed Framework Modules] evanovici:
Hah, got it working after all.

Got confused because I didn't know I had to have a weather update profile in tasker, and then convert the variable in tasker through your app, so it can be called on the lockscreen.
[Xposed Framework Modules] chaimc:
Great you got it working.

I'll add a tutorial for those who can't manage.
[Xposed Framework Modules] chaimc:
Date/time parsing is fixed now.
[Xposed Framework Modules] wyt18:
thank you! status bar date/time parsing works perfectly now. Carrier text still not working though (even after airplane mode toggling)
[Xposed Framework Modules] Realis:
Could you share your settings? This looks awesome.
[Xposed Framework Modules] MarcoPolo78:
It says we need tasker for this module , is it a separate app ? I'm lost lol :confused:

All I really want is the weather in the status bar
[Xposed Framework Modules] chaimc:
Depends what you want to do really.

For the weather you do need a separate app called Tasker (or another similar phone automation app). I'm going to post a tutorial on how to do something like this so keep a look out.

(If that's still too much, long term plans may include built in variables for weather and other common things so stay tuned)
[Xposed Framework Modules] chaimc:
I've added a simple tutorial to the beginning of this thread. Hopefully you can follow. If you have any difficulties let me know and I'll try help.
[Xposed Framework Modules] MarcoPolo78:
Thank you !!! Figured it out , now if we want am or pm behind the time do we just add #pm ?
[Xposed Framework Modules] chaimc:
No. For that you need to use the parse as date/time option. To get am/pm you use: a.

So for example if you wanted the current time with am/pm you would use: #o a (the #o part gives you the original value in this case the time and the a gives you am/pm). Make sure you select the parse as date/time option (in the newest version of TextInject you press the clock icon next to the statusbar field).

If you want to use this in combination with the weather you will need to surround any text that you don't want to be converted to a time with single quotes '. So for example: '#weather' #o a
[Xposed Framework Modules] MarcoPolo78:
Gotcha , much appreciated :good:
[Xposed Framework Modules] Realis:
Nice thanks! I love this xposed module Just one question, how can i get weather icons for the statusbar like in your screen?
[Xposed Framework Modules] MarcoPolo78:
What does it mean if the weather isn't updating like it should ? Its been stuck on 73 degrees but I checked the weather app and its reading 79 degrees :confused:
[Xposed Framework Modules] BehindTheMath:
Did the Tasker action that sets the variable run again since then? If that, that's why it hasn't changed.
[Xposed Framework Modules] Realis:
On touchwiz 5.0.2 only lockscreen settings does not work. I guess you wont add support for that. The carrier label isnt updating by me neither. Everything else works fine! :fingers-crossed: looking for updates :angel:
[Xposed Framework Modules] chaimc:
Check the updated Tutorial 1A in the beginning of this thread.
[Xposed Framework Modules] chaimc:
I wouldn't know how to start fixing this. I don't have a Samsung device and I'm not sure how to go about developing for touchwiz (especially since it's closed source).

Can you pm me your Xposed log?
[Xposed Framework Modules] MarcoPolo78:
Not sure if this is due to the update of tasker but It will not let me set my "From" time at 00 01
[Xposed Framework Modules] chaimc:
That's fine. I think they changed the time format. But 12.01 am is the same thing.

Looks like it's updated in the screenshot? Is it working now or did you update it manually?
[Xposed Framework Modules] MarcoPolo78:
Okay... Well the only time it updates is when I go into tasker and press the "Play" button on the task edit screen .
[Xposed Framework Modules] Realis:
Yes i can do that later. Statusbar is working, thats enough for me :D How can i get the other if clauses for other weather states such as "broken clouds" ?
[Xposed Framework Modules] chaimc:
To get only broken clouds you would input %weatherace_weather_desc ~ broken clouds

But the example I put in the tutorial (%weatherace_weather_desc ~R .*clouds) covers that: the ~R tells it to match a regex pattern and the .* matches anything so together it matches anything that ends in clouds e.g. few clouds, broken clouds, clouds
[Xposed Framework Modules] Realis:
Did not work for me :/ can you add screenshots for the tasker settings like in the first tutorial? :o Thanks for your support :)
[Xposed Framework Modules] chaimc:
I've added screenshots as requested. If you still having trouble maybe you could post screenshots of your task and I'll try troubleshoot for you?
[Xposed Framework Modules] Realis:
Thanks it worked now!
[Xposed Framework Modules] MarcoPolo78:
I still can't get it to update on its own, have to manually update ?
[Xposed Framework Modules] chaimc:
You might be interested in the new feature introduced in v0.8: weather icon variables. I've updated the tutorial explaining how to use them.
[Xposed Framework Modules] rgawenda:
Maybe I'm asking to much, but how's the parsing done? i.e. would I be able to get the time java parsed prepended with a weather icon set by tasker in my status bar? Pleaseeeeee
[Xposed Framework Modules] chaimc:
Yes of course you can. The way it works is: first all TextInject variables are parsed (i.e. #var). Then if selected its parsed as a date/time. And then the weather variables are parsed (e.g. $cloudy$).

So lets say you've set up your Tasker task to set the TextInject varaiable #weather to the correct weather. To get the weather followed by the time you would put: '#weather' hh:mm. Note the single quotes ' around #weather. That tells TextInject not to parse that portion as a date/time which is important otherwise you'll get something like 45unn15 (the s in sunny gets translated as seconds and the y as the year).

Now if you wanted to use the weather icons: in Tasker when you set the #weather variable use the correct $var$ you require. For that you can refer to Tutorial 1A.
[Xposed Framework Modules] wyt18:
the weather icons are a great addition, but can you use a public API such as openweathermap, weatherunderground, forecast.io for your weather icon terms?

benefits to Tasker users

1. Use a HTTP GET instead of downloading another app

2. Avoid the need to create separate tasks to set %weathericon variables to parse the WeatherAce weather descriptions into TextInject's unique weather descriptions

3. Very helpful for those who want multiple weather icons (e.g. 5 day forecast) in the same TextInject line. Otherwise, there will be a need for multiple tasks to parse multiple variables
[Xposed Framework Modules] rgawenda:
Yessss. Just Wow!
[Xposed Framework Modules] wyt18:
Two quick comments on the latest weather icons feature:

1. The weather icons parsing is working for me on Status bar but not Notification date

2. Weather icons lack an important category, which is $snow$
[Xposed Framework Modules] chaimc:
Good point. I'll see about this.

I'll look into this.

Snow is available as $snowy$ is available. (I didn't really think the names through too much :). except more options to be available in a future update)
[Xposed Framework Modules] wserfer:
Awesome module! Can you add tasker option to reload time text (self update once a minute or after screen off) and more icons or custom icons?
[Xposed Framework Modules] chaimc:
More icons will come soon. Not so sure about custom icons.

What do you mean by your first point on the Tasker option to reload time text?
[Xposed Framework Modules] wserfer:
Text such as the status bar is updated every 60 seconds. This is a very long time for some use cases.
[Xposed Framework Modules] Bredal22:
Just what I was about to ask.

I was really glad when I saw this module, because I've always wanted the GPS speed instead of the clock in the status bar, when Google Maps is open. Therefore I also need more frequent updates of the status bar. How to fix this - anyone?
[Xposed Framework Modules] chaimc:
TextInject hooks into the existing time changing method, which is only called once a minute for the statusbar. A possible update may include an option to make this update more frequently.
[Xposed Framework Modules] Bredal22:
Hop you can make such a nice option. Let us know your progress. Thanks a lot for this great module.
[Xposed Framework Modules] supperchym:
:good::good::good::good:
[Xposed Framework Modules] rgawenda:
Feature request

I can change statusbar time and notification drawer date, but, what about notification drawer time?
[Xposed Framework Modules] chaimc:
I'm working on that..
[Xposed Framework Modules] last1left91:
Not Working on Custom Touchwiz Rom, Samsung S5

Hi there,

I've just tried to apply some settings on XtrestoLite custom based Touchwiz Rom and it doesn't work at all.

I've tried to display a custom variable called %Display_Timeout set from a scene in Tasker(number choose element from scene) but it doesn't work at all...I'm still on notification :(...Or I think I'll do the tedious thing and create a custom icon for every value of Display Timeout from 10 to 60 seconds ...bleah . I hoped, Text Inject will save me but NO!
[Xposed Framework Modules] chaimc:
Sorry, I don't understand what you are trying to do, and what is going wrong, at all? What does %Display_Timeout do? Does display timeout update every second? If so are you making sure to set the TextInject variable every second in Tasker? (which sounds pretty tedious!)

Which part of TextInject are you using? Statusbar, lockscreen.. ?
[Xposed Framework Modules] NoName79:
%weathericon problem

Hi chaimc - great tool you have done, thanks for it!!

I have a problem with the weather-icons. They not want to show - the degree is showing and the normal weathertext too.

But the icons will not come up - it´s only showing %weathericon on the lockscreen

I think i have done everything like shown in your tutorial.
[Xposed Framework Modules] chaimc:
You need to set the TextInject variable after you set the Tasker variable for the weather icon (currently the %weathericon is not set when you set the #weather variable so Tasker just returns the name of the variable). Move the Set TextInject Variable action to the end of the task and you should be good to go.
[Xposed Framework Modules] NoName79:
Thanks, this was not the failure, i tried to use the weatherIcons on the lock-screen, that's not working- so i now use the Icons in the statusbar.

I found an easier way to implement the icons - not use the %weatherace_weather_desc - better use the %weatherace_weather_id - because there are to many different names in weather_desc.

the different %weatherace_weather_id (text codes) can be seen here:

Weather ACE application icon codes - %weatherace_weather_id

Format:

"d-code.png" - for day related icons

"n-code.png" - for night related icons

Minimal set of codes (you need to have files for day and for night) for correct weather representation in Weather ACE application:

100 - sky is clear

102 - some clouds

103 - mostly cloudy

104 - overcast

202 - mist

402 - snow

502 - rain

602 - thunderstorm

Full list of codes and descriptions for the codes :

0 - unknown

100 - sky is clear

101 - few clouds

102 - scattered clouds

103 - broken clouds

104 - overcast clouds

200 - sun and fog

201 - fog

202 - mist

211 - smoke

221 - haze

231 - sand/dust whirls

291 - breezy

292 - windy

301 - light intensity drizzle

302 - drizzle

311 - light intensity drizzle rain

312 - drizzle rain

321 - shower drizzle

331 - freezing drizzle

391 - heavy intensity drizzle

392 - heavy intensity drizzle rain

400 - snow and sun

401 - light snow

402 - snow

405 - drowning snow

406 - blowing snow

410 - sleet and sun

411 - sleet

421 - shower snow

491 - heavy snow

492 - blizzard (snowstorm with wing)

500 - rain and sun

501 - light rain

502 - rain

503 - moderate rain

511 - freezing rain

512 - showers in vicinity

521 - light intensity shower rain

522 - shower rain

523 - heavy intensity shower rain

591 - heavy intensity rain

592 - very heavy rain

593 - extreme rain

594 - rain ice pellets

595 - ice pellets

600 - thunderstorm and sun

601 - light thunderstorm

602 - thunderstorm

610 - thunderstorm with snow and sun

611 - thunderstorm with snow

621 - thunderstorm with light drizzle

622 - thunderstorm with drizzle

623 - thunderstorm with heavy drizzle

630 - thunderstorm with sleet and sun

631 - thunderstorm with sleet

640 - thunderstorm with rain and sun

641 - thunderstorm with light rain

642 - thunderstorm with rain

643 - thunderstorm with heavy rain

691 - heavy thunderstorm

692 - ragged thunderstorm

901 - tropical storm

902 - hail

903 - extreme cold

904 - extreme hot

905 - extreme windy

906 - hurricane

907 - tornado

so that´s what i did - beginning in your Tutorial 1A at point 3:

3. Name: %weathericon

To: $sunny$

If: %weatherace_weather_id ~ 100

OR

If: %weatherace_weather_id ~ 101

OR

If: %weatherace_weather_id ~ 2**

4. Name: %weathericon

To: $rainy$

If: %weatherace_weather_id ~ 3**

OR

If: %weatherace_weather_id ~ 5**

5. Name: %weathericon

To: $cloudy$

If: %weatherace_weather_id ~ 102

OR

If: %weatherace_weather_id ~ 103

OR

If: %weatherace_weather_id ~ 104

6. Name: %weathericon

To: $thunder$

If: %weatherace_weather_id ~ 6**

7. Name: %weathericon

To: $snowy$

If: %weatherace_weather_id ~ 4**
[Xposed Framework Modules] chaimc:
Great that seems way better. Coming in (an-extremely-delayed-but-hopefully-soon) update will be a lot more weather icons and variable names that match the weather description and/or code.
[Xposed Framework Modules] last1left91:
You're amazing...I was a fool...this xposed module works on every ROM if you don't have other xposed modules to interfere with!

For example I had FlatStyleBar Indicators which blocked everything...right now I set my current Display Timeout in the statusbar which I set via a number picker element from a scene I execute via GMD Gesture Control.

For example, I need a bigger Display Timeout, I make a gesture, the scene is shown and once you choose a number, that variable is set via TextInject right in your statusbar

Guys, I lost almost 2 days to make my current display timeout appear in the statusbar...I used Alert/Notify with MonthDays Icon Ipack but there weren't enough...only 31 (nr of days in a month :)) ) and I had to decompile de apk, add more icons( lost transparency), recompile, sign and everything worked fine.

And chaimc helped me to achieve everything in less than 15 minutes...Those 3 examples from the beginning knocked sense into me and I thought...This modules should work, stg is blocking it.

Chaimc, My current display timeout appears in the right corner of the statusbar where the clock should've appear...is there any way to control the position of set variables? Thanks and sorry for earlier :)
[Xposed Framework Modules] Bredal22:
Hello last1left91

If you know about decompiling the apk, then I have a question for you: Will it be possible to increase the update frequency of the status bar time? I need my GPS speed in stead of the clock, but now it is only updates every one minute. Once a sec would be nice [emoji3]

Would this be possible in the apk?
[Xposed Framework Modules] last1left91:
Sorry...but I don't know to decompile framework...What I said above was that I decompile an Icon Pack apk ...what you want is up to chaimc...besides, everyone can decompile an apk...and even If i knew to decompile that apk I wouldn't know what to modify in order to get the result you want...sorry :(
[Xposed Framework Modules] Bredal22:
OK, thanks for your answer.
[Xposed Framework Modules] chaimc:
What do you mean by position? Do you want to move the entire clock to elsewhere on the statusbar? That is possibly a feature of Gravity Box or another module. If you are asking if you can keep the clock in the same place and have something else on the statusbar in a different position, then unfortunately that's not possible.
[Xposed Framework Modules] chaimc:
I'm still working on increasing the frequency of the statusbar clock updates. Stay tuned.
[Xposed Framework Modules] Bredal22:
OK, thanks mate. Hoping that it succeeded.
[Xposed Framework Modules] last1left91:
So...there's no hope that in future versions we'll be able to display our custom variable irrespective of clock's position(in the statusbar)? I mean, is there any chance that in the future we'll be able to place that variable's value wherever on the statusbar...for example in the left side where all the notifications(apps) or tasker alert notify appear?

From what I know the only app that allows you to move any of these elements: clock, wifi, data on every place in the statusbar is the module I've just disabled: Flat Style Bar Indicators...would you mind if I post here a catlog in order to observ how these 2 modules, Flat Style Bar Indicators and TextInject interfere?

Your module injects text only in the stock clock(icon) not in any other clock icon created by some module(like FlatStyleBar) ...that's why I thought I have to disable the whole Flat Style module...it was just the clock...If I let the Flat Style module's clock no textinject will appear...if I choose stock clock(Gravitybox's clock), the variable is displayed where the clock is :)...maybe you can do something around this ...thanks :)
[Xposed Framework Modules] chaimc:
For all those quoted below you might be interested in the new version of TextInject (v1.0) which introduces more weather icons and also more importantly: weather icons that are mapped to weather icon codes of popular apis.

At the moment you can use Weather Ace (wa) or Open Weather Map (owm) just use: $wa%code$ (where %code is a Tasker variable containing the weather code) or $owm%code$. Refer to Tutorial 1A or the in-app help for exactly how to implement this.

Mapping the codes was a lot of tedious work and as such there are likely to be mistakes and errors. If you notice any please let me know. Thanks!
[Xposed Framework Modules] wyt18:
thank you for your effort - tried this today but the owm weather codes weren't working for me (or i might have been doing something wrong)

i tried using both the weather icon (01d, 02n, etc. in $owm01d$ format) and weather id codes (200, 201, 500, 501, etc. in $owm200$ format) described in the link below in the TextInject variable, but neither worked:

http://openweathermap.org/weather-conditions

can you let us know (probably best to put in the tutorial) what types of codes you used for your mapping?

EDIT:

if $owm200$ is entered directly into the TextInject settings interface, it works fine.

however, if the "Set TextInject variable" action is used to input the same info using a Tasker variable i.e. $owm%code$, the output is the string of text $owm200$ instead of the icon
[Xposed Framework Modules] out386:
This is awesome! But I was wondering, would it be possible for TI to use custom TextViews too? I mean, someone could decompile SystemUI and put a TextView wherever needed, and TI could be told to put custom text on that TextView, identified by its id? That would make it possible to put different text wherever needed.

I never thought that I needed weather in my statusbar until I found TextInject!

---------- Post added at 03:09 PM ---------- Previous post was at 02:41 PM ----------

It worked for me. Did you try $owm#code$ ? It won't work for all codes, and works when only one icon is being used.
[Xposed Framework Modules] wyt18:
That must be the problem then. I need it to process multiple icons in the same line

Don't understand how one would use $owm#code$? shouldn't it be $owm%code$?
[Xposed Framework Modules] chaimc:
Due to an oversight some owm codes were left out. These have been added in the latest update (v1.1).

Also, I have fixed the bug preventing two icons from displaying on the same field.
[Xposed Framework Modules] chaimc:
You can either put $owm#code$ into the TextInject interface and set #code with Plugins > Set TextInject Variable or you can set a TextInject variable with $owm%code$ where %code is a Tasker variable. They'll both work. Which is better depends on your particular setup. You can just follow the tutorial to keep it simple.
[Xposed Framework Modules] chaimc:
Sorry but unfortunately it is unlikely I will ever add this as a feature. It is far more complicated than targeting TextViews by id. For each TextView you need to hook into a specific method that modifies that TextView.
[Xposed Framework Modules] wyt18:
Thanks! The 1.1 version solved my issue, works perfectly now
[Xposed Framework Modules] Alahdal:
Could we have an option fo Notification drawer time as well..
[Xposed Framework Modules] rgawenda:
Is there any debug method available? It worked for me until these two versions. Now all I can get as my status bar weather icon is the same empty rectangle that replaces a character your font doesn't have.
[Xposed Framework Modules] chaimc:
Yes. It's something I'm working on. Just got to find the right method to hook into.